DESIGN.md · Analysis

21st

21st.dev · 3 Nov 2026 · 47 colors · Inter, General Sans

21st

21st is a marketplace and library of 12,000+ hand-crafted React and Tailwind CSS components, templates, and shadcn themes, built for developers and AI agents that ship polished UI. The interface is a dark, near-black canvas with a saturated cobalt accent and a liquid-blue hero field.

Colors

surface#0f1011
surface-dim#0b0b0c
surface-bright#1e2022
surface-container-lowest#0b0b0c
surface-container-low#0f1011
surface-container#16171a
surface-container-high#1c1d21
surface-container-highest#26272c
on-surface#f7f8f8
on-surface-variant#8a8f98
inverse-surface#f7f8f8
inverse-on-surface#0f1011
outline#62666d
outline-variant#2a2c31
surface-tint#0034ff
primary#0034ff
on-primary#ffffff
primary-container#0045ff
on-primary-container#e8ecff
inverse-primary#6f8fff
secondary#828fff
on-secondary#0b0b0c
secondary-container#1f2a5c
on-secondary-container#e8ecff
tertiary#d97757
on-tertiary#0b0b0c
tertiary-container#3a2219
on-tertiary-container#f6e1d7
error#ff5f57
on-error#0b0b0c
error-container#3d1614
on-error-container#ffd9d6
primary-fixed#6f8fff
primary-fixed-dim#4b73ff
on-primary-fixed#111111
on-primary-fixed-variant#e8ecff
secondary-fixed#aab3ff
secondary-fixed-dim#828fff
on-secondary-fixed#0b0b0c
on-secondary-fixed-variant#1f2a5c
tertiary-fixed#e8834a
tertiary-fixed-dim#d97757
on-tertiary-fixed#0b0b0c
on-tertiary-fixed-variant#3a2219
background#0f1011
on-background#f7f8f8
surface-variant#1c1d21

Typography

display
fontFamily: Inter · fontSize: 75.52px · fontWeight: 700 · lineHeight: 75.52px · letterSpacing: -3.776px
headline-lg
fontFamily: Inter · fontSize: 44px · fontWeight: 500 · lineHeight: 48.4px · letterSpacing: -0.022em
headline-md
fontFamily: Inter · fontSize: 44px · fontWeight: 500 · lineHeight: 48.4px · letterSpacing: -0.968px
title-lg
fontFamily: Inter · fontSize: 20px · fontWeight: 500 · lineHeight: 28px · letterSpacing: -0.01em
body-lg
fontFamily: General Sans · fontSize: 18px · fontWeight: 500 · lineHeight: 28px
body-md
fontFamily: General Sans · fontSize: 16px · fontWeight: 500 · lineHeight: 24px
label-md
fontFamily: Inter · fontSize: 15px · fontWeight: 500 · lineHeight: 22.5px
label-sm
fontFamily: Inter · fontSize: 13px · fontWeight: 500 · lineHeight: 19.5px

Design guidance

Overview

21st is a component marketplace and design-engineering library: 12,000+ React and Tailwind CSS components, templates and shadcn themes, each previewable live and installable with one command. The brand sits in a Dark-Mode Developer Minimalism aesthetic: a near-black canvas (#0f1011) carries the interface, a cobalt accent (#0034ff) marks every action, and a liquid blue hero field supplies the only atmospheric energy. Emotionally the UI reads as precise, confident and tool-like, closer to a craft workbench than a storefront.

The voice is terse, declarative and imperative, addressed to the builder: "Just copy-paste real designs." Vocabulary leans on shipping verbs (ship, copy, install, preview) and craft language (hand-crafted, real design engineers). Sentences are short and unhedged. Example: "Preview it live, copy the prompt, ship it today."

Colors

Primary (#0034ff) is the signature action color: the Get 21st free CTA, the header sign-up pill and the Browse components emphasis all resolve to this cobalt, with hover lifting to #4b73ff. Secondary (#828fff) is a softer periwinkle used for links, focus rings and secondary highlights on dark surfaces. Tertiary (#d97757) is a warm clay accent reserved for Claude-adjacent and illustrative moments, never for actions.

The surface stack steps upward in small luminance increments: page at #0f1011, cards at #16171a (surface-container), raised panels at #1c1d21, and the deepest well at #0b0b0c for inset previews. Text is #f7f8f8 for headings and #8a8f98 for body and captions. Borders are hairline rgba white at roughly 8% opacity, never solid grey. Gradients appear only in hero imagery, not in UI

Typography

The type system pairs Inter (headings, buttons, UI labels) with General Sans (body copy and descriptive text). Display headlines run at 75.52px / 700 with -0.05em tracking so the hero reads as a dense, compressed block. Section headlines drop to 44px / 500 with -0.022em, and sub-heads sit at 32px. Body copy uses General Sans 16px / 500 with 24px leading for legibility on dark grounds. Small labels use Inter 13px / 500 with 19.5px leading. Apply tight negative tracking only to Inter at 20px and above; keep body at 0em.

Layout

The layout is a fluid grid capped at a 1280px container with a 12-column model and 16px gutters. Section rhythm uses the 8px spacing family: md (8px) between tightly related items, lg (10px) inside cards, and xl (12px) between controls. Large vertical gaps between hero and content sections are set by the surrounding section wrappers rather than a single token. The page favours dense information density inside cards and generous negative space around the hero.

Elevation & Depth

Elevation is conveyed mostly by luminance steps between surface tiers rather than shadow. Where a shadow is needed it uses 0 4px 12px #0000001a for floating menus and toasts, and adds a 2px ring 0 0 0 2px #0003 on focus-visible. Modal and drawer surfaces sit on the #1c1d21 tier with the same soft shadow. Avoid heavy drop shadows on cards; separation comes from the hairline border and the surface step.

Shapes

The shape language is Soft-Technical: moderate rounding that feels engineered but not sharp. Buttons and inputs use 10px (rounded.lg) for a crisp, tool-like feel; feature cards and preview frames use 14px (rounded.xl) and 20px for the largest hero containers; tags and avatars use full pill rounding (9999px). Small inline elements such as kbd hints and tooltips use 6px.

Components

Action Elements The primary button is a solid #0034ff fill with white Inter 15px / 500 text, 48px high, 10px radius and 22px horizontal padding. On hover it lifts to #4b73ff over a 150ms ease transition. Secondary buttons use a #1c1d21 fill with #f7f8f8 text and shift to #26272c on hover. Keep button labels in sentence case.

Containers & Surfaces Cards sit on #16171a with a 1px solid rgba(255,255,255,0.08) border and 14px radius. Padding is 10px to 16px. The card hover state raises the surface to #1c1d21 and reveals a live preview; transition timing is 200ms ease-out.

Inputs & Interaction Inputs use the #0f1011 well with a 1px border of rgba(255,255,255,0.1), 8px radius and 16px internal padding. Focus draws a 2px ring of #828fff at 40% opacity with no outline. Keyboard short

Do's and Don'ts

**Do**

  • Use #0034ff only for the primary action and key interactive emphasis so the cobalt keeps its signal value.
  • Build depth with surface tier steps (#0f1011 to #16171a to #1c1d21) instead of heavy shadows.
  • Keep headline tracking tight (-0.05em at display, -0.022em at headline) to match the compressed hero.
  • Pair Inter for UI labels with General Sans for body copy at 16px / 24px leading.

**Don't**

  • Don't introduce additional saturated accents beyond cobalt, periwinkle and clay; the palette stays restrained.
  • Don't use pure black #000 as a page background; the canvas is #0f1011.
  • Don't apply drop shadows to cards; rely on hairline borders and surface steps.
  • Don't use sentence-case-violating button labels or all-caps body text.

Made by Sokosumi: AI coworkers for marketing

This tool is free. Sokosumi gives marketing teams AI coworkers that deliver finished work as files: research, briefings, reports and content.

Start free

*No Credit Card required