Developer Tools & IDEs Dark theme No. 040 / 134

Vite

Frontend build tool. Dark hairline-ruled cells, grainy electric-violet texture

#16171d #6b1eb9 22 colors 25 type styles 11px radius
vite/design Dark theme
Vite ProductCompanyPricing Get started
Developer Tools & IDEs
Tools that disappear into the work.

Frontend build tool. Dark hairline-ruled cells, grainy electric-violet texture

Start building Documentation
Type specimenDisplay
Aa
APK Protocol60px
#6b1eb9 22 color tokens 25 type styles 11px radius
01

Color

Palette & roles.

22 tokens extracted from the file. Ratios shown against the dark canvas.

Aa 2.1:1
Primary #6b1eb9 Brand · primary
Aa 17.9:1
On Primary #ffffff Text · on-primary
Aa 3.9:1
Sponsor Pink #db2777 Text · sponsor-pink
Aa 1.0:1
Canvas #16171d Surface · canvas
Aa 1.0:1
Surface #14121a Surface · surface
Aa 1.5:1
Hairline #3b3440 Border · hairline
Aa 1.3:1
Hairline Soft #2e2e32 Border · hairline-soft
Aa 17.9:1
Ink #ffffff Text · ink
Aa 9.1:1
Ink Soft #b9b9bb Text · ink-soft
Aa 4.6:1
Ink Muted #867e8e Text · ink-muted
Aa 6.2:1
Ink Subtle #98989f Text · ink-subtle
Aa 17.9:1
Docs Canvas #ffffff Surface · docs-canvas
Aa 16.6:1
Docs Surface #f6f6f7 Surface · docs-surface
Aa 15.7:1
Docs Callout #eff0f3 Token · docs-callout
Aa 13.9:1
Docs Note #eadff5 Token · docs-note
Aa 16.0:1
Docs Sponsor Tile #f2f2f2 Token · docs-sponsor-tile
Aa 13.8:1
Docs Hairline #e2e2e3 Border · docs-hairline
Aa 14.1:1
Docs Header Line #e5e4e7 Token · docs-header-line
Aa 10.1:1
Docs Control Line #c2c2c4 Token · docs-control-line
Aa 1.2:1
Docs Ink #000000 Text · docs-ink
Aa 1.6:1
Docs Ink Soft #3c3c43 Text · docs-ink-soft
Aa 3.2:1
Docs Ink Muted #67676c Text · docs-ink-muted
02

Typography

The type ramp.

Families, sizes, weights and tracking exactly as specified. Local faces fall back to the closest system stack.

APK ProtocolLocalInterGoogleKH Teka MonoLocal
Display APK Protocol · 60px · 500 / 67.2px · -3px

Build something worth remembering.

Heading Section APK Protocol · 48px · 500 / 48px · -1.2px

Clarity at every scale.

Body Inter · 16px · 400 / 28px · 0

The quick brown fox jumps over the lazy dog.

Body Lg Inter · 18px · 400 / 28px · 0

The quick brown fox jumps over the lazy dog.

Tab Label Inter · 14px · 500 / 48px · 0

A small detail, considered.

Mono Handle KH Teka Mono · 14px · 400 / 20px · 0

const system = "design";

Heading Page APK Protocol · 48px · 500 / 56px · -0.5px

Clarity at every scale.

Heading Sub APK Protocol · 40px · 500 / 53.33px · -1px

Clarity at every scale.

Docs H1 APK Protocol · 32px · 600 / 40px · -0.64px

Build something worth remembering.

03

Shape & space

Radii & rhythm.

The geometry and spacing scale that give the system its physical feel.

Corner radii

None0px
Xs4px
Sm8px
Md11px
Lg12px
Full9999px

Spacing scale

4px Xxs
8px Xs
12px Sm
16px Md
24px Lg
32px Xl
40px Xxl
112px Section
04

The source

Read the file.

The complete DESIGN.md behind Vite, rendered for reading — or copy the raw Markdown for your agent.

Download

Overview#

Vite's site is two products in one frame. The home page is a dark, engineered poster: a #16171d canvas ruled into cells by 1px plum-grey hairlines, small tick marks where the rules cross, and generous empty space between centred APK Protocol statements such as "Redefining developer experience" and "A shared foundation to build upon". Color is almost absent from the chrome. It arrives only as a grainy, light-streaked electric-violet texture that fills feature media panels, rings the hero "Get Started" button and floods the closing "Start building with Vite" band.

The documentation, team and blog pages switch to a white VitePress shell with the same header geometry. Here the system is pure reading: black Inter body at 16/28, APK Protocol headings divided by hairlines, pale grey code and callout panels at 8px radius, and a single deep violet that marks every link, active nav item and blog title. The team page adds grey member cards with round avatars and a pink "Sponsor" strip.

Density is low on marketing and medium on docs. Headlines are medium weight with tight negative tracking; supporting copy is muted to 70% white or a warm grey, so the display type always dominates. Mono type (KH Teka Mono) labels sections, quotes handles and runs inside terminal and code samples, keeping the developer-tool identity present without decoration.

Key Characteristics:

  • A ruled grid of hairline-framed sections on {colors.canvas}, never cards floating on a void.
  • Violet on the home page is a grainy image texture (see Decorative Depth), never a flat button fill.
  • Buttons are 38px, {rounded.sm}, Inter 500: dark with a violet ring, outlined, or white on violet.
  • APK Protocol for every headline and nav label, Inter for reading, KH Teka Mono for eyebrows and code.
  • Docs pages use one accent, {colors.primary}, for links, active states and titles.
  • Rhythm on the home page: dark hero, logo strip, statement, two-column feature cells with violet media, testimonials, sponsor grid, violet CTA band, dark footer.

Colors#

Brand & Accent#

  • Vite Violet ({colors.primary} — #6b1eb9): docs links, the active "Guide" nav item, the active sidebar item, blog post titles, pager titles, "Suggest changes" and inline code text.
  • On Violet ({colors.on-primary} — #ffffff): text set on the violet texture and violet fills.
  • Sponsor Pink ({colors.sponsor-pink} — #db2777): the heart icon and "Sponsor" label at the foot of team member cards.

Surface#

  • Canvas ({colors.canvas} — #16171d): the marketing page, header and footer background, and the dark fill of the hero button.
  • Surface ({colors.surface} — #14121a): testimonial cards, the hero install tabs and code body, and the dark search button.
  • Hairline ({colors.hairline} — #3b3440): every section rule, cell divider, header bottom border, card border and button outline on the dark page.
  • Hairline Soft ({colors.hairline-soft} — #2e2e32): the border of the "⌘ K" key cap inside search.
  • Docs Canvas ({colors.docs-canvas} — #ffffff): the page background of guide, team and blog pages.
  • Docs Surface ({colors.docs-surface} — #f6f6f7): code blocks, code-group tab bars, docs search, table headers and team member cards.
  • Docs Callout ({colors.docs-callout} — #eff0f3): the Scrimba tip, collapsible details, inline code and the appearance switch track.
  • Docs Note ({colors.docs-note} — #eadff5): violet-tinted "Compatibility Note" and "Dependencies using Vite" blocks.
  • Docs Sponsor Tile ({colors.docs-sponsor-tile} — #f2f2f2): the sponsor logo tiles in the docs and blog right rail.
  • Docs Hairline ({colors.docs-hairline} — #e2e2e3): h2 rules, table borders, blog row dividers, pager card borders.
  • Docs Header Line ({colors.docs-header-line} — #e5e4e7): the bottom border of the white header.
  • Docs Control Line ({colors.docs-control-line} — #c2c2c4): the 1px border of the appearance switch.

Text#

  • Ink ({colors.ink} — #ffffff): headlines, nav labels, footer links and button labels on the dark page.
  • Ink Soft ({colors.ink-soft} — #b9b9bb): the 70% white hero subtitle, community intro and testimonial quotes.
  • Ink Muted ({colors.ink-muted} — #867e8e): feature descriptions, stat labels, testimonial names, copyright and the docs "On this page" title.
  • Ink Subtle ({colors.ink-subtle} — #98989f): footer column headers, inactive install tabs, search label and social icons.
  • Docs Ink ({colors.docs-ink} — #000000): docs body copy, headings and blog dates.
  • Docs Ink Soft ({colors.docs-ink-soft} — #3c3c43): callout text, sidebar group headings and the active code tab label.
  • Docs Ink Muted ({colors.docs-ink-muted} — #67676c): sidebar links, outline links, team subtitles and code-block language labels.

Typography#

Font Family#

APK Protocol carries headlines, nav labels and docs headings. Inter is the reading and UI face: body, buttons, tabs, search. KH Teka Mono sets uppercase eyebrows, testimonial handles and every code sample.

Hierarchy#

TokenSizeWeightLine heightLetter spacingUse
display60px50067.2px-3px"The Build Tool for the Web"
heading-section48px50048px-1.2pxCentred statements, stats, CTA band
heading-page48px50056px-0.5px"Meet the Team"
heading-sub40px50053.33px-1px"Loved by the community", "Free & open source"
docs-h132px60040px-0.64pxDocs and blog page titles
heading-feature24px50028px0Feature cell titles
docs-h224px60032px-0.48pxDocs section headings
post-title22px60032px-0.44pxBlog list titles
member-name20px60028px0.15pxTeam member names
nav-link16px40024px0Header links
sidebar-heading14px70024px0Sidebar group titles
lead20px50028px0.15pxTeam page intro
body-lg18px40028px0Hero subtitle, feature descriptions
body16px40028px0Docs body
quote16px40026px0Testimonial quotes
button16px50022.4px0Buttons
ui-sm14px50024px0Sidebar links, Sponsor, pager title
tab-label14px50048px0Package-manager tabs
search14px40014px0Search buttons
outline-link13px40028px0"On this page" links
caption12px50020px0"Next page", language labels
eyebrow12px40016px0.3pxUppercase mono labels
mono-handle14px40020px0Testimonial names and handles
code14px40023.8px0Docs code
code-hero16px40022.4px0Hero install command

Principles#

Headlines stay at weight 500 on marketing and 600 in docs, never bold display, with tracking tightened in proportion to size, from -3px at 60px down to zero at 24px. Hierarchy comes from size and color contrast: white heads over 70% white or warm-grey copy. Mono is reserved for labels, handles and code, set uppercase only on 12px eyebrows.

Note on Font Substitutes#

APK Protocol and KH Teka Mono are commercial faces. Inter Tight at 500 is a close open alternative for APK Protocol headlines; JetBrains Mono at 400 stands in for KH Teka Mono. Inter is open and used as is.

Layout#

Spacing System#

  • Base unit: 8px with 4px and 12px steps; component padding sits at 8px 16px for buttons and 40px 32px for cards.
  • Section padding: {spacing.section} (112px) vertical with 40px sides on statement sections; 120px on testimonial and sponsor sections.

Grid & Container#

The marketing page is a full-width frame with 1px vertical side rules, split into two equal columns for feature cells and a three-column masonry for testimonials. Docs use a 272px sidebar, a 688px content column and a 191px outline rail.

Whitespace Philosophy#

Each statement section is mostly empty: one centred headline in a 361px-tall cell. Space, not cards, separates ideas, and hairlines show where one cell ends.

Responsive Strategy#

Breakpoints#

NameWidthBehavior
Wide1440pxFull frame, side rules visible
Desktop1280pxDocs show sidebar, content and outline
Laptop1024pxOutline rail drops in docs
Tablet960px / 768pxSidebar becomes a drawer; feature cells stack
Mobile640px / 375pxSingle column, gutters to 20px

Touch Targets#

Buttons and search are 38px tall; nav links are 40px; code tabs 49px and the Sponsor strip 52px.

Collapsing Strategy#

Two-column feature rows stack with media below copy; the testimonial masonry falls to one column; header links fold into a menu.

Image Behavior#

Violet media panels bleed edge to edge inside their cell; avatars stay fixed squares or circles.

Elevation & Depth#

LevelTreatmentUse
0Flat, 1px {colors.hairline} rulesMarketing sections, cells, cards
1Inset 0 -1px 0 lineCode-group tab bars
20 12px 32px rgba(0,0,0,0.1) + 0 2px 6px rgba(0,0,0,0.08)Team avatars

Decorative Depth#

Depth on the home page comes from isometric diamond illustrations with violet glow and from one grainy, diagonally light-streaked electric-violet image: bright at the top, fading to a deep indigo below. It fills the feature media panels and the closing cta-band edge to edge and forms the 3px ring of button-primary-glow. It is a photographic texture, not a flat color, and never sits behind docs text.

Shapes#

Border Radius Scale#

TokenValueUse
{rounded.none}0pxSections, cells, bands, tables
{rounded.xs}4pxInline code, testimonial avatars, key caps
{rounded.sm}8pxButtons, search, cards, code blocks, callouts
{rounded.md}11pxViolet button ring, appearance switch
{rounded.lg}12pxTeam cards, docs sponsor rail
{rounded.full}9999pxTeam avatars

Photography Geometry#

Testimonial avatars are 48px squares at {rounded.xs}; team avatars are 96px circles with a soft shadow. Sponsor logos sit monochrome in square grid cells.

Components#

Buttons#

button-primary-glow — "Get Started" in the hero, the main call to action.

  • {colors.canvas} fill, {colors.ink} label in {typography.button}, {rounded.sm}, padding 8px 16px, 38px tall. A 3px violet-texture ring at {rounded.md} surrounds it, the only glowing control on the page.

button-outline — "View on GitHub" beside the hero button and "Become a Sponsor" in the open-source section.

  • {colors.canvas} fill behind a 1px {colors.hairline} outline, {colors.ink} label in {typography.button}, {rounded.sm}, padding 8px 16px, 38px tall; no ring or icon.

button-white — "Get Started" centred in the violet closing band.

  • {colors.ink} fill, {colors.canvas} label in {typography.button}, {rounded.sm}, padding 8px 16px, 38px tall. It is the only solid light button on the site.

button-search — "Search ⌘ K" in the dark header.

  • {colors.surface} fill, {colors.ink-subtle} label in {typography.search}, {rounded.sm}, padding 8px 12px, 38px tall, 135px wide, magnifier left, key cap with a 1px {colors.hairline-soft} border.

button-search-docs — "Search ⌘ K" in the white docs header.

  • {colors.docs-surface} fill, {colors.docs-ink-muted} label in {typography.search}, {rounded.sm}, padding 8px 12px, 38px tall; otherwise identical to button-search.

button-sponsor — "Sponsor" across the bottom of a team member card.

  • {colors.docs-surface} fill, {colors.sponsor-pink} label and heart icon in {typography.ui-sm}, square corners clipped by the card, padding 16px, 52px tall, full card width, separated by a white line.

toggle-appearance — the light/dark switch in the docs header.

  • {colors.docs-callout} track with a 1px {colors.docs-control-line} border, {rounded.md}, 40px wide and 22px tall, a white knob holding a sun icon at the left.

Cards & Containers#

feature-cell — "Instant Server Start", "Lightning Fast HMR" and the other feature halves.

  • {colors.canvas} fill, {colors.ink} title in {typography.heading-feature}, square corners, padding 40px, description in {typography.body-lg} {colors.ink-muted}. Cells meet on 1px {colors.hairline} rules, two per row.

feature-media-panel — the violet panels under feature copy holding terminal and code mockups.

  • Filled edge to edge with the grainy violet texture from Decorative Depth, square corners, full cell width. A near-black window mockup with mono text floats centred inside.

testimonial-card — quotes in the "Loved by the community" masonry.

  • {colors.surface} fill, 1px {colors.hairline} border, {rounded.sm}, padding 40px 32px, quote in {typography.quote} {colors.ink-soft}, then a 48px avatar, name in {typography.mono-handle} {colors.ink-muted} and handle in {colors.ink}.

stat-block — "80k+ Github Stars" and "80m+ Weekly NPM downloads" beside the community heading.

  • {colors.ink} number in {typography.heading-section}, label below in {typography.body-lg} {colors.ink-muted}, a GitHub icon before "Github Stars"; two blocks side by side, no frame.

sponsor-grid-cell — logo cells under "IN PARTNERSHIP WITH", "PLATINUM SPONSORS" and "GOLD SPONSORS".

  • {colors.canvas} fill, square corners, 1px {colors.hairline} dividers; tier labels in {typography.eyebrow} {colors.ink-subtle} uppercase. Partners sit three per row, gold five per row in shorter cells.

cta-band — "Start building with Vite" above the footer.

  • The violet texture from Decorative Depth as its fill, {colors.ink} headline in {typography.heading-section}, square corners, padding 120px 0px, centred; a two-line {typography.body-lg} subtitle and a button-white follow.

team-member-card — each person on "Meet the Team".

  • {colors.docs-surface} fill, {colors.docs-ink} name in {typography.member-name}, {rounded.lg}, padding 48px 32px, centred: team-avatar, role in {colors.docs-ink-muted}, bio, social icons, button-sponsor. Three per row; advisors and emeriti are smaller.

team-avatar — the portrait at the top of each member card.

  • A 96px circle at {rounded.full} with the level 2 double shadow, centred above the name. Emeriti cards use the same circle at a smaller size.

pager-card — "Next page Philosophy" at the end of a guide page.

  • {colors.docs-canvas} fill, 1px {colors.docs-hairline} border, {rounded.sm}, padding 11px 16px 13px, 66px tall, right-aligned "Next page" in {typography.caption} muted above a {colors.primary} title in {typography.ui-sm}.

callout-tip — "Learn Vite through interactive tutorials on Scrimba".

  • {colors.docs-callout} fill, {colors.docs-ink-soft} text in {typography.button}, {rounded.sm}, padding 16px 20px, 60px tall, a violet play icon before an underlined {colors.primary} link.

callout-note — "Compatibility Note" and "Dependencies using Vite".

  • {colors.docs-note} fill, {colors.docs-ink-soft} text in {typography.ui-sm}, {rounded.sm}, padding 16px 16px 8px, a 16px weight-600 title line above body with underlined violet links.

details-block — "Using create vite with command line options".

  • {colors.docs-callout} fill, {colors.docs-ink-soft} text in {typography.ui-sm}, {rounded.sm}, padding 16px 16px 8px, a bold 14px summary with a disclosure triangle; collapsed it is 58px tall.

aside-sponsor-tile — the logo tiles in the docs and blog right rail.

  • {colors.docs-sponsor-tile} fill, 96px tall, stacked inside a group clipped to {rounded.lg}, each holding one centred monochrome sponsor logo.

docs-table — the template presets table on Getting Started.

  • {colors.docs-canvas} cells with {colors.docs-ink} text in {typography.ui-sm}, square corners, padding 8px 16px, 1px {colors.docs-hairline} borders; header cells and even rows take {colors.docs-surface}; cell entries are underlined violet links.

blog-post-row — each entry on "Latest From the Vite Blog".

  • {colors.docs-canvas} row, {colors.primary} title in {typography.post-title}, square corners, a 14px {colors.docs-ink} date above and a 1px {colors.docs-hairline} rule below; rows are about 78px tall.

Inputs & Forms#

code-block-docs — fenced code in guide pages.

  • {colors.docs-surface} fill, {colors.docs-ink-muted} base text in {typography.code}, {rounded.sm}, padding 0px 24px per line, a {typography.caption} language label top-right; syntax colors are content.

inline-code — index.html, vite and other code words in prose.

  • {colors.docs-callout} fill, {colors.primary} text in {typography.code}, {rounded.xs}, padding 3px 6px, 24px tall within the 28px body line.

top-bar-dark — the home header: VITE wordmark, "Guide", "Config", "Plugins", "Resources", "v8.4.0".

  • {colors.canvas} fill, {colors.ink} links in {typography.nav-link}, padding 20px 24px, 81px tall, 1px {colors.hairline} bottom rule; button-search, a language menu and five social icons sit right.

top-bar-docs — the same header on guide, team and blog pages.

  • {colors.docs-canvas} fill, {colors.canvas} links in {typography.nav-link}, padding 20px 24px, 81px tall, 1px {colors.docs-header-line} bottom rule; the current section turns {colors.primary}; adds toggle-appearance.

docs-sidebar — "Introduction" and "Guide" link groups at the left of docs.

  • {colors.docs-canvas} fill, {colors.docs-ink-muted} links in {typography.ui-sm}, padding 20px 32px 96px, 272px wide; group titles in {typography.sidebar-heading}, the current page in {colors.primary}.

docs-outline — "ON THIS PAGE" at the right of docs.

  • {colors.docs-ink-muted} links in {typography.outline-link}, 191px wide, title in 12px uppercase Inter with 0.3px tracking in {colors.ink-muted}; sponsor tiles stack beneath.

footer — columns "VITE", "RESOURCES", "VERSIONS", "SOCIAL" under the CTA band.

  • {colors.canvas} fill, {colors.ink} links in {typography.body}, headers in {typography.eyebrow} {colors.ink-subtle}; the copyright row has padding 20px 96px, a top hairline and 14px {colors.ink-muted} text.

Signature Components#

install-tabs — the npm, Yarn, pnpm, Bun, Deno switcher under the hero buttons.

  • {colors.surface} tab bar, {colors.ink} active label in {typography.tab-label}, {rounded.sm} top corners, padding 0px 12px, 49px tall, a violet underline on the active tab, inactive labels {colors.ink-subtle}; the command below sets in {typography.code-hero}.

section-frame — the ruled container behind every home section.

  • {colors.canvas} fill, {colors.ink} centred statement in {typography.heading-section}, padding 112px 40px, 1px {colors.hairline} top border and side rules, with small tick marks where rules cross.

logo-strip — "Trusted by the world's best software teams" under the hero.

  • {colors.canvas} fill, {colors.ink} label in {typography.body}, padding 32px 40px, then a row of six monochrome logos (OpenAI to Wiz) in equal cells split by {colors.hairline} rules.

edit-link — "Suggest changes to this page" at the end of docs content.

  • {colors.primary} text in {typography.ui-sm}, 32px tall, a pencil icon before the label, no underline, above a {colors.docs-hairline} rule and the pager-card.

Do's and Don'ts#

Do#

  • Frame every home section with 1px {colors.hairline} rules on {colors.canvas}, as section-frame does, and leave the interior mostly empty.
  • Use the grainy violet texture for feature-media-panel, the cta-band and the ring of button-primary-glow only.
  • Keep all buttons 38px tall at {rounded.sm} with {typography.button}.
  • Set headlines in APK Protocol at weight 500 with negative tracking, copy in Inter, labels in uppercase {typography.eyebrow}.
  • Mute supporting text to {colors.ink-soft} or {colors.ink-muted} so white headlines lead.
  • In docs, use {colors.primary} for every link, active nav item, inline-code text and blog-post-row title.
  • Put docs asides in callout-tip, callout-note or details-block at {rounded.sm}.

Don't#

  • Don't fill a button with flat violet; the brand violet is a texture or a docs text color.
  • Don't float rounded cards on the dark canvas without hairlines; only testimonial-card carries a radius there.
  • Don't add drop shadows to marketing elements; elevation is reserved for team-avatar.
  • Don't use {colors.sponsor-pink} anywhere but button-sponsor.
  • Don't set body copy in APK Protocol or mono; Inter at {typography.body} reads in docs.
  • Don't mix the white docs palette into the dark home page; docs-* tokens belong to the VitePress shell.
  • Don't round sections or bands; cta-band and feature-media-panel stay square.