Sitepeel
21st website (21st.dev) as measured on December 2, 2026

DESIGN.md · measured December 2, 2026

21st design system

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.

  • #FAFAFB
  • #FFFFFF
  • #0F0F12
  • #0033FF
Download DESIGN.md

From 21st.dev ↗ · 456 elements at 1440×900 and 390×844 Independent analysis, not affiliated with 21st

21st color palette

15 colors with hex codes, grouped by where each one is used on the page.

Surfaces

Snow#FAFAFBbackgroundPage background · 4×
White#FFFFFFsurface-container-low · --color-primary-foregroundRaised areas one step from the page · 6×
Mist#F1F1F3surface-containerCards and panels · 3×
Charcoal 5%#0F0F120DoverlayTranslucent fill for cards and controls · 32×
Charcoal 10%#0F0F121Aoverlay-strongStronger translucent fill · 1×
Near Black#050506inverse-surfaceHigh-contrast fills · 1×

Text

Charcoal#0F0F12on-surfacePrimary text and headings · 40×
Graphite#434345on-surface-variantSecondary text · 7×
Slate#505053on-surface-mutedMuted text and metadata · 3×
Cool Slate#626269on-surface-subtleSubtle text and placeholders · 31×
White#FFFFFFon-primaryText and icons on primary

Accents

Vivid Indigo#0033FFprimaryPrimary buttons and calls to action · 4×
Light Violet#CBA6F7secondaryAccent · 1×

Borders

Charcoal 8%#0F0F1214outlineBorders and dividers · 9×
White 9%#FFFFFF17outline-variantSecondary dividers · 1×

Gradients

21st fonts and type scale

3 families.

AaInterWeights 450, 500, 700Inter, Inter Fallback, system-ui, sans-serif
AaGeneral SansWeights 450, 600General Sans, system-ui, sans-serif
Aasystem-uiWeights 450-apple-system, SF Pro Text, Inter, system-ui
headline-displayPage title (h1)21st85px · 700 · 1 · -0.05em
mobile 40px
headline-lgSection headings (h2)The quick brown fox jumps over the lazy dog46px · 700 · 1.02 · -0.045em
mobile 30px
body-mdBody textThe quick brown fox jumps over the lazy dog16px · 450 · 1.5 · -0.011em
body-lgLead paragraphsThe quick brown fox jumps over the lazy dog17px · 600 · 1.5 · -0.01em
body-smSecondary and small textThe quick brown fox jumps over the lazy dog13px · 450 · 1.5 · -0.014em
captionCaptions and fine printThe quick brown fox jumps over the lazy dog11.5px · 450 · 1.5 · -0.015em
label-lgLarge buttons and tabsThe quick brown fox jumps over the lazy dog16px · 450 · 1.5 · -0.011em
label-mdButtons, navigation and labelsThe quick brown fox jumps over the lazy dog15px · 500 · 1.5
label-smSmall labels and badgesThe quick brown fox jumps over the lazy dog14px · 500 · 1.5 · -0.013em

Contrast

Text on #FAFAFB

AaAAA18.3:1
AaAAA9.4:1
AaAAA7.7:1
AaAA5.8:1

Spacing

No strict grid · 58% are multiples of 4px

xs2px
sm8px
md10px
lg24px
xl48px
gutter10px
section115.2px

Breakpoints: 359px 360px 420px 439px 719px 720px 1280px 1536px

Shapes

Corner radii, most used first.

md10px · 168×
sm8px · 136×
xl20px · 28×
full9999px · 20×
lg12px · 12×

Depth

Box shadows from other sites

Inset
Inset
Ring
Ring

21st UI components

Rebuilt from the measured CSS. Buttons from other sites

Get 21st free
button-primaryFilled button
Library
button-ghostText button
Card
cardCard
Inline link
linkInline link

Motion

Interface transitions

0.12s0.18s0.15s0.2s
easecubic-bezier(0.4, 0, 0.2, 1)

Do’s and don’ts

Rules written from the measurements, so a coding agent stays on style.

  • Use #FAFAFB for the page and lift surfaces in small steps: #FFFFFF, #F1F1F3.
  • Keep text in 4 levels: #0F0F12, #434345, #505053, #626269.
  • Reserve #0033FF for primary actions and key highlights.
  • Set headlines in Inter with tight tracking (-0.05em).
  • Reuse the measured spacing steps (8px, 10px, 24px).
  • Use 10px corners on most elements; larger surfaces also use 8px, 20px and 12px.
  • Use heavy drop shadows; keep depth to hairline rings and tonal surfaces.
  • Introduce new font families beyond Inter, General Sans and system-ui.
  • Use #0033FF for large backgrounds or body text.
  • Make interface transitions slower than 0.26s.
21st DESIGN.md226 lines

Fonts

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.

  • AaInter · 450, 500, 700
  • AaGeneral Sans · 450, 600
  • Aasystem-ui · 450
Find every font on 21st.dev with Font finder →

Colors

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 snowrgb(250, 250, 251) · hsl(240, 11%, 98%)
  • #0F0F12 charcoalrgb(15, 15, 18) · hsl(240, 9%, 6%)
  • #434345 graphitergb(67, 67, 69) · hsl(240, 1%, 27%)
  • #505053 slatergb(80, 80, 83) · hsl(240, 2%, 32%)
  • #626269 cool slatergb(98, 98, 105) · hsl(240, 3%, 40%)
  • #FFFFFF whitergb(255, 255, 255) · hsl(0, 0%, 100%)
  • #F1F1F3 mistrgb(241, 241, 243) · hsl(240, 8%, 95%)
  • #0033FF vivid indigorgb(0, 51, 255) · hsl(228, 100%, 50%)
Get 21st.dev’s palette as CSS or Tailwind with Colors →

Tech stack

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
Check 21st.dev live with Tech stack →

What you can build with it

Landing pages, pricing tables, dashboards: your AI coding agent builds them in this style, with these colors, fonts, spacing and buttons instead of its defaults.

Download DESIGN.md, put it in your project’s root folder, then ask your agent for a page.

Prompt · DESIGN.md attached

Build a landing page for my product. Follow for every color, font, spacing value, corner and button.

Need a page behind a login?

The DESIGN.md generator Chrome extension makes one from any page you have open, including dashboards and pages behind a login.

See the Chrome extension

FAQ

21st design system questions

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.