---
version: alpha
name: 21st
description: "Light interface measured from 21st.dev: Inter type with General Sans, vivid indigo accents, tonal surfaces and 10px corners."
colors:
  background: "#FAFAFB"
  surface: "#FAFAFB"
  on-surface: "#0F0F12"
  on-background: "#0F0F12"
  on-surface-variant: "#434345"
  on-surface-muted: "#505053"
  on-surface-subtle: "#626269"
  surface-container-low: "#FFFFFF"
  surface-container: "#F1F1F3"
  overlay: "#0F0F120D"
  overlay-strong: "#0F0F121A"
  outline: "#0F0F1214"
  outline-variant: "#FFFFFF17"
  primary: "#0033FF"
  on-primary: "#FFFFFF"
  inverse-surface: "#050506"
  secondary: "#CBA6F7"
typography:
  headline-display:
    fontFamily: Inter
    fontSize: 85px
    fontWeight: 700
    lineHeight: 1
    letterSpacing: -0.05em
  headline-lg:
    fontFamily: Inter
    fontSize: 46px
    fontWeight: 700
    lineHeight: 1.02
    letterSpacing: -0.045em
  body-md:
    fontFamily: General Sans
    fontSize: 16px
    fontWeight: 450
    lineHeight: 1.5
    letterSpacing: -0.011em
  body-lg:
    fontFamily: General Sans
    fontSize: 17px
    fontWeight: 600
    lineHeight: 1.5
    letterSpacing: -0.01em
  body-sm:
    fontFamily: Inter
    fontSize: 13px
    fontWeight: 450
    lineHeight: 1.5
    letterSpacing: -0.014em
  caption:
    fontFamily: system-ui
    fontSize: 11.5px
    fontWeight: 450
    lineHeight: 1.5
    letterSpacing: -0.015em
  label-lg:
    fontFamily: Inter
    fontSize: 16px
    fontWeight: 450
    lineHeight: 1.5
    letterSpacing: -0.011em
  label-md:
    fontFamily: Inter
    fontSize: 15px
    fontWeight: 500
    lineHeight: 1.5
  label-sm:
    fontFamily: Inter
    fontSize: 14px
    fontWeight: 500
    lineHeight: 1.5
    letterSpacing: -0.013em
  headline-display-mobile:
    fontFamily: Inter
    fontSize: 40px
    fontWeight: 700
    lineHeight: 1
    letterSpacing: -0.05em
  headline-lg-mobile:
    fontFamily: Inter
    fontSize: 30px
    fontWeight: 700
    lineHeight: 1.02
    letterSpacing: -0.045em
rounded:
  sm: 8px
  md: 10px
  lg: 12px
  xl: 20px
  full: 9999px
spacing:
  xs: 2px
  sm: 8px
  md: 10px
  lg: 24px
  xl: 48px
  gutter: 10px
  section: 115.2px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.body-sm}"
    rounded: "{rounded.md}"
    padding: 0px 12px
    height: 32px
  button-ghost:
    typography: "{typography.label-sm}"
    rounded: "{rounded.sm}"
    padding: 0px 12px
  card:
    typography: "{typography.body-md}"
    rounded: "{rounded.xl}"
    padding: 0px
  link:
    textColor: "#0F0F1299"
---

# 21st Design System

## Overview

21st describes itself as: “12,000+ hand-crafted React and Tailwind CSS components, templates, and shadcn themes by real design engineers. Preview live, install with one command — for you and your AI agent.” The interface is light, built on **Snow (#FAFAFB)** with **Charcoal (#0F0F12)** text, and **Vivid Indigo (#0033FF)** as the main accent.

Type is set in **Inter** and **General Sans**. Headlines run large with tight negative tracking; body text is 16px. Depth comes from hairline borders and inset highlights rather than drop shadows. Corners are mostly 10px.

Measured from [21st.dev](https://21st.dev/) on December 2, 2026 at 1440×900 and 390×844 from 456 rendered elements. Values are computed styles from the live page, not the original source files.

## Colors

The palette has 15 roles, plus gradient stops #F4FF7A, #D6F000.

- **Snow (#FAFAFB):** Page background, seen 4 times. Token `background`.
- **Charcoal (#0F0F12):** Primary text and headings, seen 40 times. Token `on-surface`.
- **Graphite (#434345):** Secondary text, seen 7 times. Token `on-surface-variant`.
- **Slate (#505053):** Muted text and metadata, seen 3 times. Token `on-surface-muted`.
- **Cool Slate (#626269):** Subtle text and placeholders, seen 31 times. Token `on-surface-subtle`.
- **White (#FFFFFF):** Raised areas one step from the page, seen 6 times. Token `surface-container-low`, CSS `--color-primary-foreground`.
- **Mist (#F1F1F3):** Cards and panels, seen 3 times. Token `surface-container`.
- **Charcoal 5% (#0F0F120D):** Translucent fill for cards and controls, seen 32 times. Token `overlay`.
- **Charcoal 10% (#0F0F121A):** Stronger translucent fill, seen 1 time. Token `overlay-strong`.
- **Charcoal 8% (#0F0F1214):** Borders and dividers, seen 9 times. Token `outline`.
- **White 9% (#FFFFFF17):** Secondary dividers, seen 1 time. Token `outline-variant`.
- **Vivid Indigo (#0033FF):** Primary buttons and calls to action, seen 4 times. Token `primary`.
- **White (#FFFFFF):** Text and icons on primary. Token `on-primary`.
- **Near Black (#050506):** High-contrast fills, seen 1 time. Token `inverse-surface`.
- **Light Violet (#CBA6F7):** Accent, seen 1 time. Token `secondary`.

## Typography

**Inter**, **General Sans** and **system-ui** share the interface. Fallback stack: `Inter, Inter Fallback, system-ui, sans-serif`. Other loaded fonts: Nunito.

- **headline-display:** Inter 85px at weight 700, line height 1, tracking -0.05em (40px on mobile). Page title (h1).
- **headline-lg:** Inter 46px at weight 700, line height 1.02, tracking -0.045em (30px on mobile). Section headings (h2).
- **body-md:** General Sans 16px at weight 450, line height 1.5, tracking -0.011em. Body text.
- **body-lg:** General Sans 17px at weight 600, line height 1.5, tracking -0.01em. Lead paragraphs.
- **body-sm:** Inter 13px at weight 450, line height 1.5, tracking -0.014em. Secondary and small text.
- **caption:** system-ui 11.5px at weight 450, line height 1.5, tracking -0.015em. Captions and fine print.
- **label-lg:** Inter 16px at weight 450, line height 1.5, tracking -0.011em. Large buttons and tabs.
- **label-md:** Inter 15px at weight 500, line height 1.5. Buttons, navigation and labels.
- **label-sm:** Inter 14px at weight 500, line height 1.5, tracking -0.013em. Small labels and badges.

## Layout

Spacing does not follow a strict grid: 58% of measured values are multiples of 4px, so match the measured steps rather than rounding to a grid.

- **Scale:** xs 2px, sm 8px, md 10px, lg 24px, xl 48px.
- **Sections:** 115.2px vertical padding between major sections.
- **Gaps:** 10px is the most common gap in flex and grid layouts.
- **Breakpoints:** 359px, 360px, 420px, 439px, 719px, 720px, 1280px, 1536px.

## Elevation & Depth

Depth comes mostly from hairline rings and inset highlights on tonal surfaces (#FFFFFF → #F1F1F3):

- `oklch(0.17 0.005 286 / 0.06) 0px 0px 0px 1px inset`
- `rgba(255, 255, 255, 0.22) 0px 1px 0px 0px inset`
- `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, oklab(0.999994 0.0000455678 0.0000200868 / 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0) 0px 0px 0px 0px`

A few raised panels add a soft drop shadow: `rgba(0, 0, 0, 0.7) 0px 12px 48px 0px`.

## Shapes

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

- **md (10px):** 168 elements.
- **sm (8px):** 136 elements.
- **xl (20px):** 28 elements.
- **full (9999px):** 20 elements.
- **lg (12px):** 12 elements.

## Components

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

- **button-primary (“Get 21st free”):** #0033FF fill, #FFFFFF text, 13px/500, 10px radius, padding 0px 12px, shadow `rgba(255, 255, 255, 0.22) 0px 1px 0px 0px inset`.
- **button-ghost (“Library”):** transparent fill, 14px/500, 8px radius, padding 0px 12px.
- **card:** transparent fill, 16px/450, 20px radius, padding 0px.
- **link:** transparent fill, #0F0F1299 text, padding 0px.

## Do's and Don'ts

- Do use #FAFAFB for the page and lift surfaces in small steps: #FFFFFF, #F1F1F3.
- Do keep text in 4 levels: #0F0F12, #434345, #505053, #626269.
- Do reserve #0033FF for primary actions and key highlights.
- Do set headlines in Inter with tight tracking (-0.05em).
- Do reuse the measured spacing steps (8px, 10px, 24px).
- Do use 10px corners on most elements; larger surfaces also use 8px, 20px and 12px.
- Don't use heavy drop shadows; keep depth to hairline rings and tonal surfaces.
- Don't introduce new font families beyond Inter, General Sans and system-ui.
- Don't use #0033FF for large backgrounds or body text.
- Don't make interface transitions slower than 0.26s.

## Motion

Interface transitions are quick: 0.12s, 0.18s, 0.15s, 0.2s.

- **Easing:** `ease`, `cubic-bezier(0.4, 0, 0.2, 1)`, `cubic-bezier(0.2, 0.8, 0.2, 1)`.
- **Reduced motion:** the page responds to `prefers-reduced-motion`.

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