CodeSandbox — decoded design system
CodeSandbox'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/codesandbox.io.
Decoded design system
CodeSandbox's decoded design system: background #0E0E0E, text #F0F0F0, accent #EAFF96, link #858585, primary #EAFF96; type scale h1 96px / h2 88px / body 18px; 8px spacing base; 4px base radius. The single interactive/action color is #EAFF96 — used only on interactive or must-notice elements (buttons, links, key highlights), never on large fills.
Color roles
| Role | Value |
|---|---|
| bg | #0E0E0E |
| surface | #1B1B1B |
| border | #2F2F2F |
| text | #F0F0F0 |
| text_muted | #9A9A9A |
| primary | #EAFF96 |
| accent | #EAFF96 |
| link | #858585 |
| button_bg | #EAFF96 |
| button_text | #343434 |
Using these colors
- Action color
#EAFF96— the single interactive color; only on things you click or must notice, never large fills. primary,accent,button_bgare all#EAFF96— one role, not several (the action color).- accent
#EAFF96— 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
#858585— reads as a neutral UI color, not a link accent — verify against the reference (action = #EAFF96).
Typography
- Heading: Inter
- Body: Inter
- h1: 96px
- h2: 88px
- body: 18px
Spacing
- base unit: 8px
- scale: 4px, 7px, 8px, 10px, 12px, 13px, 16px, 24px, 32px, 48px
Radii
- base: 4px
- button: 4px
Shadows (elevation)
- card:
rgba(0, 0, 2, 0.3) 0px 10px 30px 0px
Motion
Micro-interactions run at 150ms (dominant) with ease.
- durations: 150ms · 1000ms · 2000ms
- easings:
ease·ease-in-out - animated properties: opacity, color, background-color, border-color
Native design tokens
| Token | Value |
|---|---|
--cc-link-color | #30363c |
--cc-bg | #fff |
--cc-primary-color | #2c2f31 |
--cc-secondary-color | #5e6266 |
--cc-btn-primary-bg | #30363c |
--cc-btn-primary-color | #fff |
--cc-btn-primary-border-color | #30363c |
--cc-btn-primary-hover-bg | #000 |
--cc-btn-primary-hover-color | #fff |
--cc-btn-primary-hover-border-color | #000 |
…and 110 more measured on the page.
Button states (measured)
- primary hover: background
#F5FFCB - primary focus: outline
2px solid rgb(176, 160, 255)
Layout (measured)
- container max-width:
1200px - nav: 48px relative
- common grid: 4 columns
Motion choreography (measured)
Load order: div.cm--box → div.cm--box → div.cm--box → div.rfm-marquee×12 → span.c-PJLV×24 → span.c-PJLV×24
Overlay recipe (measured)
dialog panel: #333333 · radius 5px
Responsive (measured)
- breakpoints: 420px · 640px · 734px · 1068px · 1441px
- mobile (390px): hero 48px · nav inline
Install it
Drop this measured system into any shadcn/Tailwind project in one command:
npx shadcn add mozaika.design/r/decode/codesandbox.io
registry item · or query it over MCP: get_design_system("CodeSandbox")
Export: DESIGN.md
# CodeSandbox — Design System > dark, modern, high, custom — deep decode (measured live) ## Colors | Role | Value | |------|-------| | bg | `#0E0E0E` | | surface | `#1B1B1B` | | border | `#2F2F2F` | | text | `#F0F0F0` | | text_muted | `#9A9A9A` | | primary | `#EAFF96` | | accent | `#EAFF96` | | link | `#858585` | | button_bg | `#EAFF96` | | button_text | `#343434` | **Using these colors** - **Action color** `#EAFF96` — the single interactive color; it appears only on things you click or must notice (buttons, key highlights), never on large fills or backgrounds. - `primary`, `accent`, `button_bg` are all `#EAFF96` — one role, not several (your action color). - **accent** `#EAFF96` — 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** `#858585` — reads as a neutral UI color, not a link accent — verify against the reference (action = #EAFF96). - **Page coverage** (full-page screenshot pixels): `#161616` 68.3% · `#F4FFC2` 10.2% · `#2E2E2E` 9% · `#D9EB92` 7.7% ## Typography - Heading: **Inter** - Body: **Inter** | Role | Size / weight · line-height · tracking | |------|------------------------------------------| | hero | 96px / 500 · lh 96px · tracking -4.8px | | h2 | 88px / 500 · lh 88px · tracking -4.4px | | h3 | 56px / 500 · lh 56px · tracking -2.8px | | body | 18px / 400 · lh 25px · tracking -0.45px | | small | 17px / 600 · lh 19px | - Weight ladder: 200 · 400 · 500 · 600 — 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, 7px, 8px, 10px, 12px, 13px, 16px, 24px, 32px, 48px — snap all gaps/padding to these - section rhythm: 128px top/bottom padding per section (measured) ## Radius - base: 4px - button: 4px - card: 10px - pill: 9999px ## Buttons | Button | Fill / text | Border | Radius | Padding | Font | Shadow | |--------|-------------|--------|--------|---------|------|--------| | primary | `#EAFF96` / `#343434` | none | 4px | 8px 12px 8px 12px | 500 12px | none | | secondary | `#333333` / `#E5E5E5` | 1px solid rgb(82, 82, 82) | 4px | 6.56px 23.616px 6.56px 23.616px | 600 13.12px | none | **States (measured, not guessed)** - primary hover: background `#F5FFCB` - primary focus: outline `2px solid rgb(176, 160, 255)` - secondary hover: background `rgba(255, 255, 255, 0.1)` - transition: `background-color 0.3s ease` ## Shadows (elevation) - card: `rgba(0, 0, 2, 0.3) 0px 10px 30px 0px` ## Motion - durations: 150ms (dominant) · 1000ms · 2000ms - easings: `ease` (dominant) · `ease-in-out` - animated properties: opacity, color, background-color, border-color 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 | |-------|-------| | `--cc-link-color` | `#30363c` | | `--cc-bg` | `#fff` | | `--cc-primary-color` | `#2c2f31` | | `--cc-secondary-color` | `#5e6266` | | `--cc-btn-primary-bg` | `#30363c` | | `--cc-btn-primary-color` | `#fff` | | `--cc-btn-primary-border-color` | `#30363c` | | `--cc-btn-primary-hover-bg` | `#000` | | `--cc-btn-primary-hover-color` | `#fff` | | `--cc-btn-primary-hover-border-color` | `#000` | | `--cc-btn-secondary-bg` | `#eaeff2` | | `--cc-btn-secondary-color` | `#2c2f31` | _…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 1200px · common grid: 4-col - nav: 48px relative | Section (y) | Height | Cols | Gap | Pad y | Split | |---|---|---|---|---|---| | 901 | 1130 | 6 | — | 128/128 | — | | 2031 | 820 | 4 | — | 128/128 | — | | 4144 | 248 | 4 | — | 0/0 | — | | 4392 | 769 | — | — | 80/0 | — | ## Motion choreography (measured) Load order: `div.cm--box` @0ms → `div.cm--box` @0ms → `div.cm--box` @0ms → `div.rfm-marquee`×12 @79ms → `span.c-PJLV`×24 @210ms → `span.c-PJLV`×24 @210ms - overlay dialog (auto-opened): panel #333333 · r 5px · shadow rgba(0, 0, 2, 0.3) 0px 10px 30px 0px Rebuild the timeline, not just the durations — order, delays and staggers above are the choreography. ## Components (measured) - link: #CCCCCC · no underline — hover #FFFFFF ## Responsive (measured) - breakpoints: 420px · 640px · 734px · 1068px · 1441px - mobile (390px): hero 48px · body 16px · nav: inline ## 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 CodeSandbox's publicly-visible CSS (colors, fonts, spacing, motion) — not affiliated with codesandbox.io. No screenshots stored. Removal requests: hello@mozaika.design.