---
version: alpha
name: CodeSandbox
description: "Dark interface measured from codesandbox.io: TWK Everett type with Inter, lime accents, tonal surfaces and 10px corners."
colors:
  background: "#161616"
  surface: "#161616"
  on-surface: "#F0F0F0"
  on-background: "#F0F0F0"
  on-surface-strong: "#F5FFCB"
  on-surface-variant: "#A3A3A3"
  on-surface-muted: "#858585"
  surface-container-low: "#0E0E0E"
  surface-container: "#1D1D1D"
  surface-container-high: "#252525"
  primary: "#DCFF50"
  on-primary: "#000000"
  inverse-surface: "#FFFFFF"
  secondary: "#EAFF96"
  tertiary: "#B0A0FF"
typography:
  headline-display:
    fontFamily: TWK Everett
    fontSize: 120px
    fontWeight: 500
    lineHeight: 1
    letterSpacing: -0.05em
  headline-lg:
    fontFamily: TWK Everett
    fontSize: 96px
    fontWeight: 500
    lineHeight: 1
    letterSpacing: -0.05em
  headline-md:
    fontFamily: TWK Everett
    fontSize: 88px
    fontWeight: 500
    lineHeight: 1
    letterSpacing: -0.05em
  headline-sm:
    fontFamily: TWK Everett
    fontSize: 56px
    fontWeight: 500
    lineHeight: 1
    letterSpacing: -0.05em
  title-lg:
    fontFamily: Inter
    fontSize: 28px
    fontWeight: 500
    lineHeight: 1.4
    letterSpacing: -0.025em
  body-md:
    fontFamily: Inter
    fontSize: 16px
    fontWeight: 400
  body-lg:
    fontFamily: Inter
    fontSize: 18px
    fontWeight: 400
    lineHeight: 1.4
    letterSpacing: -0.025em
  body-sm:
    fontFamily: Inter
    fontSize: 12px
    fontWeight: 400
  label-md:
    fontFamily: Inter
    fontSize: 16px
    fontWeight: 500
    lineHeight: 1
  label-sm:
    fontFamily: Inter
    fontSize: 12px
    fontWeight: 500
    lineHeight: 1
  headline-display-mobile:
    fontFamily: TWK Everett
    fontSize: 48px
    fontWeight: 500
    lineHeight: 1.1
    letterSpacing: -0.05em
  headline-md-mobile:
    fontFamily: TWK Everett
    fontSize: 48px
    fontWeight: 500
    lineHeight: 1.1
    letterSpacing: -0.05em
rounded:
  sm: 4px
  md: 6px
  lg: 10px
  full: 9999px
spacing:
  base: 4px
  xs: 4px
  sm: 8px
  md: 16px
  lg: 32px
  xl: 48px
  gutter: 16px
  section: 128px
components:
  button-primary:
    backgroundColor: "{colors.secondary}"
    textColor: "#343434"
    typography: "{typography.label-sm}"
    rounded: "{rounded.sm}"
    padding: 8px 12px
    height: 28px
  button-primary-hover:
    backgroundColor: "{colors.on-surface-strong}"
  button-outline:
    backgroundColor: "{colors.surface-container}"
    textColor: "#E3FF73"
    typography: "{typography.label-sm}"
    rounded: "{rounded.sm}"
    padding: 8px 12px
    height: 28px
  button-outline-hover:
    backgroundColor: "#292929"
    textColor: "{colors.inverse-surface}"
  card:
    backgroundColor: "#D6FB41"
    textColor: "{colors.on-surface}"
    typography: "{typography.body-md}"
    rounded: "{rounded.lg}"
    padding: 48px
  link:
    textColor: "{colors.on-surface-muted}"
---

# CodeSandbox Design System

## Overview

CodeSandbox describes itself as: “CodeSandbox is a cloud development platform that empowers developers to code, collaborate and ship projects of any size from any device in record time.” The interface is dark, built on **Charcoal (#161616)** with **Mist (#F0F0F0)** text, and **Lime (#DCFF50)** as the main accent.

Type is set in **TWK Everett** and **Inter**. Headlines run large with tight negative tracking; body text is 16px. The surface language is flat. Corners are mostly 10px.

Measured from [codesandbox.io](https://codesandbox.io/) on November 29, 2026 at 1440×900 and 390×844 from 296 rendered elements. Values are computed styles from the live page, not the original source files.

## Colors

The palette has 13 roles.

- **Charcoal (#161616):** Page background, seen 1 time. Token `background`.
- **Mist (#F0F0F0):** Primary text and headings, seen 20 times. Token `on-surface`, CSS `--colors-text`.
- **Pale Lime (#F5FFCB):** Headings and emphasis, seen 13 times. Token `on-surface-strong`.
- **Gray (#A3A3A3):** Secondary text, seen 18 times. Token `on-surface-variant`.
- **Gray (#858585):** Muted text and metadata, seen 20 times. Token `on-surface-muted`, CSS `--colors-foreground700`.
- **Charcoal (#0E0E0E):** Raised areas one step from the page, seen 4 times. Token `surface-container-low`.
- **Charcoal (#1D1D1D):** Cards and panels, seen 1 time. Token `surface-container`.
- **Graphite (#252525):** Hover and pressed fills, seen 1 time. Token `surface-container-high`, CSS `--colors-neutral500`.
- **Lime (#DCFF50):** Brand color in the header, seen 1 time. Token `primary`, CSS `--colors-lime700`.
- **Near Black (#000000):** Text and icons on primary. Token `on-primary`.
- **White (#FFFFFF):** High-contrast fills, seen 2 times. Token `inverse-surface`, CSS `--colors-foreground100`.
- **Light Lime (#EAFF96):** Secondary buttons, seen 4 times. Token `secondary`.
- **Light Indigo (#B0A0FF):** Accent in text, fills and borders, seen 6 times. Token `tertiary`.

## Typography

**TWK Everett** and **Inter** share the interface. Fallback stack: `TWK Everett, Inter, Hevetica Neue, Helvetica`. Other loaded fonts: Material Symbols Outlined, __Inter_f367f3.

- **headline-display:** TWK Everett 120px at weight 500, line height 1, tracking -0.05em (48px on mobile). Page title (h1).
- **headline-lg:** TWK Everett 96px at weight 500, line height 1, tracking -0.05em. Section headings (h2).
- **headline-md:** TWK Everett 88px at weight 500, line height 1, tracking -0.05em (48px on mobile). Sub-section headings.
- **headline-sm:** TWK Everett 56px at weight 500, line height 1, tracking -0.05em. Card and feature titles.
- **title-lg:** Inter 28px at weight 500, line height 1.4, tracking -0.025em. Small titles.
- **body-md:** Inter 16px at weight 400. Body text.
- **body-lg:** Inter 18px at weight 400, line height 1.4, tracking -0.025em. Lead paragraphs.
- **body-sm:** Inter 12px at weight 400. Secondary and small text.
- **label-md:** Inter 16px at weight 500, line height 1. Buttons, navigation and labels.
- **label-sm:** Inter 12px at weight 500, line height 1. Small labels and badges.

## Layout

Spacing follows a 4px grid: 98% of measured gaps and paddings are multiples of 4px.

- **Scale:** xs 4px, sm 8px, md 16px, lg 32px, xl 48px.
- **Sections:** 128px vertical padding between major sections.
- **Gaps:** 16px is the most common gap in flex and grid layouts.
- **Breakpoints:** 420px, 640px, 734px, 1068px, 1441px, 1921px.

## Elevation & Depth

The design is flat: no shadows were measured. Hierarchy comes from tonal surface steps (#0E0E0E → #1D1D1D → #252525).

## Shapes

Most elements use 10px corners. Measured radii, most used first:

- **lg (10px):** 56 elements.
- **md (6px):** 12 elements.
- **sm (4px):** 8 elements.
- **full (9999px):** 4 elements.

## Components

Measured from the rendered page. Token values reference the tokens above.

- **button-primary (“Try for free”):** #EAFF96 fill, #343434 text, 12px/500, 4px radius, padding 8px 12px.
- **button-primary-hover:** background #F5FFCB, text #343434 on hover.
- **button-outline (“Learn more”):** #1D1D1D fill, #E3FF73 text, 12px/500, 4px radius, padding 8px 12px.
- **button-outline-hover:** background #292929, text #FFFFFF on hover.
- **card:** #D6FB41 fill, #F0F0F0 text, 16px/400, 10px radius, padding 48px.
- **link:** transparent fill, #858585 text, padding 0px.

## Do's and Don'ts

- Do use #161616 for the page and lift surfaces in small steps: #0E0E0E, #1D1D1D, #252525.
- Do keep text in 4 levels: #F0F0F0, #F5FFCB, #A3A3A3, #858585.
- Do use #DCFF50 as the brand accent: header, logo and key highlights.
- Do set headlines in TWK Everett with tight tracking (-0.05em).
- Do keep spacing on the 4px grid.
- Do use 10px corners on most elements; larger surfaces also use 6px and 4px.
- Don't add drop shadows for depth; use tonal surfaces.
- Don't introduce new font families beyond TWK Everett and Inter.
- Don't use #DCFF50 for large backgrounds or body text.
- Don't make interface transitions slower than 0.6s.

## Motion

Interface transitions are quick: 0.15s, 0.3s, 0.2s, 0.6s. Longer ambient animations run 2s, 1s.

- **Easing:** `ease-in-out`, `ease`.
- **Reduced motion:** the page responds to `prefers-reduced-motion`.

Generated by [Sitepeel](https://sitepeel.dev/design-md/codesandbox.io/), the free DESIGN.md generator (engine 2026.10.29+f0c146f7cdfd).
