Vite — Design System
The full decoded design system for Vite: color roles, type scale, spacing, radii and paste-ready DESIGN.md / Tailwind / CSS exports.
This is a static, crawlable rendering for search & AI engines. The interactive version — filters, live decode console, copy & export — is at https://mozaika.design/ds/vite.
Tokens
Vite's decoded design system: background #16171D, text #ECECEE, accent #FFFFFF, link #2C1D22, primary #313641; type scale h1 60px / h2 48px / body 14px; 4px 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 | #222329 |
| border | #36363C |
| text | #ECECEE |
| text_muted | #9A9B9E |
| primary | #313641 |
| accent | #FFFFFF |
| link | #2C1D22 |
| secondary | #FEBDC5 |
| button_bg | #FFFFFF |
| button_text | #16171D |
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: 14px
Spacing
- base unit: 4px
- scale: 2px, 4px, 6px, 8px, 12px, 16px, 24px, 32px
Radii
- base: 4px
- button: 8px
Per-section tokens (9)
Export: DESIGN.md
# Vite — Design System > dark, modern, medium, custom ## Colors | Role | Value | |------|-------| | bg | `#16171D` | | surface | `#222329` | | border | `#36363C` | | text | `#ECECEE` | | text_muted | `#9A9B9E` | | primary | `#313641` | | accent | `#FFFFFF` | | link | `#2C1D22` | | secondary | `#FEBDC5` | | button_bg | `#FFFFFF` | | button_text | `#16171D` | **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. ## 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: 4px - scale: 2px, 4px, 6px, 8px, 12px, 16px, 24px, 32px - section rhythm: 112px top/bottom padding per section (measured) ## Radius - base: 4px - button: 8px - card: 6px ## Primary button - bg `#FFFFFF` · text `#16171D` · radius 8px ## 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.
Export: Tailwind v4 (@theme)
@theme {
/* action color #FFFFFF — the one interactive color; buttons/links/emphasis only, never large fills. */
--color-bg: #16171D;
--color-surface: #222329;
--color-border: #36363C;
--color-text: #ECECEE;
--color-text-muted: #9A9B9E;
--color-primary: #313641; /* a brand color — but the call-to-action uses #FFFFFF, not this. */
--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. */
--color-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). */
--color-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. */
--color-button-bg: #FFFFFF; /* primary-button fill — the main call-to-action color. */
--color-button-text: #16171D;
/* fonts: Inter — free, on Google. */
--font-heading: "Inter", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-body: "Inter", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-mono: "KH Teka Mono", ui-monospace, monospace;
/* measured weights: 400, 500 — use these, not 400/600 */
--text-hero: 60px; --font-weight-hero: 500; --leading-hero: 67px; --tracking-hero: -3px;
--text-h2: 48px; --font-weight-h2: 500; --leading-h2: 48px; --tracking-h2: -1.2px;
--text-h3: 40px; --font-weight-h3: 500; --leading-h3: 53px; --tracking-h3: -1px;
--text-body: 18px; --font-weight-body: 400; --leading-body: 28px;
--text-small: 16px; --font-weight-small: 400; --leading-small: 26px;
--text-eyebrow: 12px; --font-weight-eyebrow: 400; --tracking-eyebrow: 0.3px;
--radius-base: 4px;
--radius-button: 8px;
--radius-card: 6px;
--section-y: 112px; /* per-section vertical padding (measured) */
--spacing-1: 2px;
--spacing-2: 4px;
--spacing-3: 6px;
--spacing-4: 8px;
--spacing-5: 12px;
--spacing-6: 16px;
--spacing-7: 24px;
--spacing-8: 32px;
}Export: CSS variables
:root {
/* action color #FFFFFF — the one interactive color; buttons/links/emphasis only, never large fills. */
--bg: #16171D;
--surface: #222329;
--border: #36363C;
--text: #ECECEE;
--text-muted: #9A9B9E;
--primary: #313641; /* a brand color — but the call-to-action uses #FFFFFF, not this. */
--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. */
--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. */
--button-bg: #FFFFFF; /* primary-button fill — the main call-to-action color. */
--button-text: #16171D;
--font-heading: "Inter", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-body: "Inter", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-mono: "KH Teka Mono", ui-monospace, monospace;
--text-hero: 60px; --weight-hero: 500; --leading-hero: 67px; --tracking-hero: -3px;
--text-h2: 48px; --weight-h2: 500; --leading-h2: 48px; --tracking-h2: -1.2px;
--text-h3: 40px; --weight-h3: 500; --leading-h3: 53px; --tracking-h3: -1px;
--text-body: 18px; --weight-body: 400; --leading-body: 28px;
--text-small: 16px; --weight-small: 400; --leading-small: 26px;
--text-eyebrow: 12px; --weight-eyebrow: 400; --tracking-eyebrow: 0.3px;
--radius: 4px;
--radius-button: 8px;
--radius-card: 6px;
--section-y: 112px;
}
/* fonts: Inter — free, on Google. */