Vite — decoded design system
Vite's design system, decoded live by Mozaika: measured color roles, type scale, buttons with real hover/focus states, motion and the brand's own tokens.
This is a static, crawlable rendering for search & AI engines. The interactive version — filters, live decode console, copy & export — is at https://mozaika.design/decode/vitejs.dev.
Decoded design system
Vite's decoded design system: background #16171D, text #FFFFFF, accent #FFFFFF, link #2C1D22, primary #313641; type scale h1 60px / h2 48px / body 18px; 8px spacing base; 4px base radius. The single interactive/action color is #FFFFFF — used only on interactive or must-notice elements (buttons, links, key highlights), never on large fills.
Color roles
| Role | Value |
|---|---|
| bg | #16171D |
| surface | #23242A |
| border | #38393E |
| text | #FFFFFF |
| text_muted | #A6A6A9 |
| primary | #313641 |
| accent | #FFFFFF |
| link | #2C1D22 |
| secondary | #FEBDC5 |
| button_bg | #FFFFFF |
| button_text | #FFFFFF |
Using these colors
- Action color
#FFFFFF— the single interactive color; only on things you click or must notice, never large fills. accent,button_bgare all#FFFFFF— one role, not several (the action color).- accent
#FFFFFF— THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed. - primary
#313641— a brand color — but the call-to-action uses #FFFFFF, not this. - link
#2C1D22— fails contrast on the background (~1.1:1) — this is a dark UI color, NOT a readable link; use the text or action color for links (verify against the reference). - secondary
#FEBDC5— optional secondary accent — LOW decode confidence; use rarely (a status color or a single decorative moment) or omit it entirely. Prefer one accent unless the reference clearly shows two.
Typography
- Heading: Inter
- Body: Inter
- Mono: KH Teka Mono
- h1: 60px
- h2: 48px
- body: 18px
Spacing
- base unit: 8px
- scale: 4px, 8px, 12px, 16px, 20px, 24px, 28px, 32px, 40px, 60px
Radii
- base: 4px
- button: 8px
Motion
Micro-interactions run at 150ms (dominant) with cubic-bezier(0.4, 0, 0.2, 1).
- durations: 150ms · 250ms · 500ms
- easings:
cubic-bezier(0.4, 0, 0.2, 1)·ease - animated properties: opacity, color, transform, translate
Native design tokens
| Token | Value |
|---|---|
--twoslash-border-color | #3c3f44 |
--twoslash-underline-color | #8888 |
--twoslash-highlighted-border | #c37d0d50 |
--twoslash-highlighted-bg | #c37d0d20 |
--twoslash-popup-bg | #16171d |
--twoslash-popup-color | #fff |
--twoslash-popup-shadow | #00000014 0px 1px 4px |
--twoslash-docs-color | #fff |
--twoslash-matched-color | #b39aff |
--twoslash-unmatched-color | #98989f |
…and 110 more measured on the page.
Layout (measured)
- container max-width:
1440px - nav: 81px relative
- common grid: 2 columns
Motion choreography (measured)
Load order: a.button → div.testimonial-card×9 → svg.shrink-0 → a.button → a.button×5 → label×5
Responsive (measured)
- mobile (390px): hero 36px · nav hamburger
Install it
Drop this measured system into any shadcn/Tailwind project in one command:
npx shadcn add mozaika.design/r/decode/vitejs.dev
registry item · or query it over MCP: get_design_system("Vite")
Export: DESIGN.md
# Vite — Design System > dark, modern, medium, custom — deep decode (measured live) ## Colors | Role | Value | |------|-------| | bg | `#16171D` | | surface | `#23242A` | | border | `#38393E` | | text | `#FFFFFF` | | text_muted | `#A6A6A9` | | primary | `#313641` | | accent | `#FFFFFF` | | link | `#2C1D22` | | secondary | `#FEBDC5` | | button_bg | `#FFFFFF` | | button_text | `#FFFFFF` | **Using these colors** - **Action color** `#FFFFFF` — the single interactive color; it appears only on things you click or must notice (buttons, key highlights), never on large fills or backgrounds. - `accent`, `button_bg` are all `#FFFFFF` — one role, not several (your action color). - **accent** `#FFFFFF` — THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed. - **primary** `#313641` — a brand color — but the call-to-action uses #FFFFFF, not this. - **link** `#2C1D22` — fails contrast on the background (~1.1:1) — this is a dark UI color, NOT a readable link; use the text or action color for links (verify against the reference). - **secondary** `#FEBDC5` — optional secondary accent — LOW decode confidence; use rarely (a status color or a single decorative moment) or omit it entirely. Prefer one accent unless the reference clearly shows two. - **Page coverage** (full-page screenshot pixels): `#16171D` 89.5% · `#2F173D` 7.1% · `#6D5D63` 3.3% ## Typography - Heading: **Inter** - Body: **Inter** - Mono: **KH Teka Mono** _(measured)_ | Role | Size / weight · line-height · tracking | |------|------------------------------------------| | hero | 60px / 500 · lh 67px · tracking -3px | | h2 | 48px / 500 · lh 48px · tracking -1.2px | | h3 | 40px / 500 · lh 53px · tracking -1px | | body | 18px / 400 · lh 28px | | small | 16px / 400 · lh 26px | | eyebrow | 12px / 400 · tracking 0.3px | - Weight ladder: 400 · 500 — use these exact measured weights, not the 400/600 defaults. > **Fonts —** Inter — free, on Google. ## Spacing - base unit: 8px (inferred from the measured scale) - measured scale: 4px, 8px, 12px, 16px, 20px, 24px, 28px, 32px, 40px, 60px — snap all gaps/padding to these - section rhythm: 112px top/bottom padding per section (measured) ## Radius - base: 4px - button: 8px - card: 6px ## Buttons | Button | Fill / text | Border | Radius | Padding | Font | Shadow | |--------|-------------|--------|--------|---------|------|--------| | primary | `rgba(0, 0, 0, 0)` / `#FFFFFF` | none | 8px | 8px 16px 8px 16px | 500 16px | none | | secondary | `#14121A` / `#98989F` | none | 8px | 8px 12px 8px 12px | 400 14px | none | **States (measured, not guessed)** - transition: `transform 0.15s cubic-bezier(0.4, 0, 0.2, 1)` ## Motion - durations: 150ms (dominant) · 250ms · 500ms - easings: `cubic-bezier(0.4, 0, 0.2, 1)` (dominant) · `ease` - animated properties: opacity, color, transform, translate Micro-interactions use the dominant duration + easing; nothing on the page animates slower than the longest duration above — don't invent springier motion. ## Their own tokens (verbatim from :root) | Token | Value | |-------|-------| | `--twoslash-border-color` | `#3c3f44` | | `--twoslash-underline-color` | `#8888` | | `--twoslash-highlighted-border` | `#c37d0d50` | | `--twoslash-highlighted-bg` | `#c37d0d20` | | `--twoslash-popup-bg` | `#16171d` | | `--twoslash-popup-color` | `#fff` | | `--twoslash-popup-shadow` | `#00000014 0px 1px 4px` | | `--twoslash-docs-color` | `#fff` | | `--twoslash-matched-color` | `#b39aff` | | `--twoslash-unmatched-color` | `#98989f` | | `--twoslash-cursor-color` | `#b39aff` | | `--twoslash-error-color` | `#d45656` | _…and 108 more measured on the page._ Prefer these names when extending their system — it's the brand's actual vocabulary. ## Layout (measured) - container max 1440px · common grid: 2-col - nav: 81px relative · border-bottom 1px solid rgb(59, 52, 64) · bg #16171D | Section (y) | Height | Cols | Gap | Pad y | Split | |---|---|---|---|---|---| | 995 | 361 | — | — | 112/112 | — | | 1356 | 1110 | 2 | — | 0/0 | — | | 2466 | 321 | — | — | 112/112 | — | | 2787 | 1055 | 2 | — | 0/0 | — | | 3842 | 321 | — | — | 112/112 | — | | 4163 | 277 | — | — | 64/64 | — | ## Motion choreography (measured) Load order: `a.button` @0ms → `div.testimonial-card`×9 @0ms → `svg.shrink-0` @39ms → `a.button` @213ms → `a.button`×5 @216ms → `label`×5 @216ms Rebuild the timeline, not just the durations — order, delays and staggers above are the choreography. ## Responsive (measured) - mobile (390px): hero 36px · body 16px · nav: hamburger ## How to apply Paste the Tailwind `@theme` (or CSS variables) as your base, then build each section to its spec — verify every color, radius, and font against these tokens. Hover/focus states, shadows and motion timings above are measured from the live page — match them exactly, don't re-guess them.
An automated reading of Vite's publicly-visible CSS (colors, fonts, spacing, motion) — not affiliated with vitejs.dev. No screenshots stored. Removal requests: hello@mozaika.design.