# 21st design system

> 21st design system measured from 21st.dev: Inter font, #0033FF primary on #FAFAFB, 15 color hex codes, type scale, spacing and a free DESIGN.md.

Canonical page: https://sitepeel.dev/design-md/21st.dev/

21st’s website (21st.dev) uses the Inter font and #0033FF as its main color on a #FAFAFB background. Measured by Sitepeel on December 2, 2026.

## What font does 21st use?

21st uses Inter (weights 450, 500 and 700) and General Sans (weights 450 and 600) on 21st.dev. Page titles are 85px at weight 700 (40px on phones) and body text is 16px. Measured on December 2, 2026.

- Inter (weights 450, 500, 700)
- General Sans (weights 450, 600)
- system-ui (weights 450)

## 21st colors: palette and hex codes

21st’s main colors are #FAFAFB (snow) for the background, #0F0F12 (charcoal) for text and #0033FF (vivid indigo) as the main accent, with #CBA6F7 (light violet) as another accent. Measured on December 2, 2026.

- #FAFAFB: snow (rgb(250, 250, 251), hsl(240, 11%, 98%))
- #0F0F12: charcoal (rgb(15, 15, 18), hsl(240, 9%, 6%))
- #434345: graphite (rgb(67, 67, 69), hsl(240, 1%, 27%))
- #505053: slate (rgb(80, 80, 83), hsl(240, 2%, 32%))
- #626269: cool slate (rgb(98, 98, 105), hsl(240, 3%, 40%))
- #FFFFFF: white (rgb(255, 255, 255), hsl(0, 0%, 100%))
- #F1F1F3: mist (rgb(241, 241, 243), hsl(240, 8%, 95%))
- #0033FF: vivid indigo (rgb(0, 51, 255), hsl(228, 100%, 50%))

## What is 21st built with?

21st’s website (21st.dev) is built with Next.js, React, Tailwind CSS, Vercel and Cloudflare. Measured on December 2, 2026.

- JavaScript framework: Next.js 16.3.4, React 18.3.1
- Analytics: Meta Pixel 2.9.441, X Pixel, Google Analytics, Google Tag Manager
- Hosting & CDN: Vercel, Cloudflare
- UI & CSS: Tailwind CSS 4.x
- Fonts & icons: Lucide

## Questions and answers

### What font does 21st use?

21st’s website uses Inter (weights 450, 500 and 700) and General Sans (weights 450 and 600). Page titles are 85px at weight 700 (40px on phones) and body text is 16px. Measured on December 2, 2026.

### What are the 21st colors and hex codes?

On 21st.dev: #FAFAFB (snow) for the background, #0F0F12 (charcoal) for text and #0033FF (vivid indigo) as the main accent, with #CBA6F7 (light violet) as another accent. The color palette above lists all 15 colors with their hex codes and where each one is used.

### What is the 21st design system?

The design system on this page is 21st.dev’s, as measured on December 2, 2026: Inter type, #0033FF as the main color and 10px corners, written down as a DESIGN.md. It is not 21st’s own documentation.

### What is 21st built with?

21st’s website (21st.dev) is built with Next.js, React, Tailwind CSS, Vercel and Cloudflare. The full tech stack Sitepeel found: Next.js, React, Meta Pixel, Vercel, X Pixel, Cloudflare, Tailwind CSS, Lucide, Google Analytics and Google Tag Manager. Measured on December 2, 2026.

### What is the 21st DESIGN.md?

A plain-text file with 21st’s measured colors, type, spacing, corners and components as tokens, plus short rules, in the DESIGN.md format Google published with Stitch. Your AI coding agent reads it and builds in this style. More about DESIGN.md.

### How do I use it with Claude Code or Cursor?

Download the file and put it in your project’s root folder, then ask your agent to follow DESIGN.md. Step-by-step guides: Claude Code, Cursor, Codex, GitHub Copilot.

### Is this 21st’s official design system?

No. Sitepeel measured it from 21st.dev’s public page on December 2, 2026. It is an independent analysis, not made or approved by 21st.

### Can I use 21st’s style in my own product?

Use it to learn, prototype and compare. For a real product, make the style your own, and never copy 21st’s logo, name, pictures or text.

### How accurate are the values?

Each value was measured on the rendered page after it fully loaded, on desktop and mobile: colors where they appear, type with tracking, spacing, corners, shadows and hover states. Sites change, so check the date at the top.

## Files

- [DESIGN.md](https://sitepeel.dev/design-md/21st.dev/DESIGN.md): the plain file to put in your project.
- [All brand DESIGN.md files](https://sitepeel.dev/design-md/examples/index.md)

Independent analysis by Sitepeel (sitepeel.dev), not affiliated with 21st.

## The DESIGN.md file

```markdown
---
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).

```
