# DESIGN.md: Hugging Face-style design system

Measured from https://huggingface.co/ on 2026-10-15 by PikSpec (https://www.pikspec.com). An independent measurement of the rendered page, not Hugging Face's official design system, and not affiliated with Hugging Face.

Use it to build your own product in this design language: put this file in your project root and tell your AI tool (Claude Code, Cursor, Codex, Lovable, v0) to follow DESIGN.md. Never use the original's name, logo, copy or images; licensed fonts are replaced with the closest free Google Fonts.

To capture any other page, or get a ready project for your tool: https://www.pikspec.com/build-with-ai

HOW IT SHOULD LOOK
Build it in the design language of huggingface.co, measured from the live site: it should feel designed by the same team as huggingface.co — the same temperament, colour, type and density — for a different product. Never use huggingface.co's name, logo, words or images.

Stack: use the one your project already has. Starting fresh: React + Vite + TypeScript + Tailwind CSS v4, with no UI kit (no shadcn/ui, MUI or Chakra) — their defaults would override this system. In a chat that shows one file (an artifact or canvas), build one HTML file instead, with the tokens below in its <style> block.
Use every value exactly as written. Do not round, rename, approximate or substitute a colour, size, radius, shadow or easing (fonts: see section 1). Anything not listed here does not exist in this system.

THE WEBSITE THIS SYSTEM COMES FROM
- Reference page: https://huggingface.co/ — "huggingface.co" (home page).
- Page frame: a top navigation bar and a footer.
- Content is grouped in cards (9 on the page, up to 2 side by side). Keep cards for grouped content only, not for every section.
- It uses 12 images, 4 of them large. Large, real product imagery is part of the look — leave clearly labelled image slots at those sizes rather than stock photos or abstract 3D shapes.
- Interaction: 2 buttons and 1 form field on one page.
- The page runs about 7 screens long at 1440px wide.
- Density is low: few elements per screen, generous space around each one.

HOW IT LOOKS (WHAT MAKES IT LOOK LIKE ITSELF, BEYOND THE VALUES)
- Almost entirely neutral: 99% of the page is painted in #FFFFFF and #0B0F19.
- #973C00 is an accent: under 0.1% of the page, used for text only. Don't fill large areas with it.
- #A3004C is an accent: under 0.1% of the page, used for text only. Don't fill large areas with it.
- The largest type (48px Source Sans Pro) is bold (700).
- Open: text covers 7% of the page.
- Structure comes from thin grid lines, not from shadows or filled cards.
- Share of the painted page: #FFFFFF 91.1% (dominant, backgrounds); #0B0F19 4.1% (supporting, backgrounds); #000000 1.1% (supporting, text); #6A7282 0.9% (supporting, text); #86898F 0.6% (detail, drawings); #F9FAFB 0.5% (detail, backgrounds); #99A1AF 0.5% (detail, text); #4A4E57 0.4% (detail, drawings). Keep accents at these proportions; do not promote them to fills.
- Hairline grid: 1px lines in #F3F4F6 run both across and down the page (91 across, 36 down), dividing it into cells instead of cards.
- Illustrations: 3 large illustrations in filled shapes, in #86898F, #4A4E57 and #FFFFFF.
- Type as set (size, weight and tracking measured together; use these pairs): 48px weight 700; 30px weight 700; 24px weight 600; 20px weight 700; 18px weight 400; 16px weight 400.

1. DESIGN TOKENS — PASTE INTO YOUR GLOBAL CSS
Allowed colours, with how the original uses each. Use no other colour, including in hover states:
- #FFFFFF — 91.1% · backgrounds (var(--color-action))
- #0B0F19 — 4.1% · backgrounds (var(--color-background))
- #000000 — 1.1% · text (var(--color-surface))
- #6A7282 — 0.9% · text
- #86898F — 0.6% · drawings (var(--color-86898f))
- #F9FAFB — 0.5% · backgrounds (var(--color-f9fafb))
- #99A1AF — 0.5% · text (var(--color-text))
- #4A4E57 — 0.4% · drawings (var(--color-4a4e57))
- #E5E7EB — 0.3% · text, lines
- #F3F4F6 — 0.2% · lines
- #4A5565 — hairlines and grid lines (var(--color-text-muted))
- #7CCF00 — Positive (var(--color-positive))
- #FB2C36 — Negative (var(--color-negative))
- #FD9A00 — Warning (var(--color-warning))
Fonts — put these first in your global CSS (one import per font, so one that fails cannot stop the others):
```css
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap");
```
Source Sans Pro and IBM Plex Mono are on Google Fonts and loaded from there.
Keep every size, weight, line height and tracking exactly as listed whichever font renders.
```css
:root {
  --color-background: #0B0F19; /* Background */
  --color-surface: #000000; /* Surface */
  --color-text: #99A1AF; /* Text */
  --color-text-muted: #4A5565; /* Text muted */
  --color-action: #FFFFFF; /* Action */
  --color-on-action: #000000; /* On action */
  --color-positive: #7CCF00; /* Positive */
  --color-negative: #FB2C36; /* Negative */
  --color-warning: #FD9A00; /* Warning */
  --color-86898f: #86898F; /* 0.6% of the page, as drawings */
  --color-f9fafb: #F9FAFB; /* 0.5% of the page, as fills */
  --color-4a4e57: #4A4E57; /* 0.4% of the page, as drawings */
  --font-body: "Source Sans Pro", sans-serif; /* Source Sans Pro */
  --font-code: "IBM Plex Mono", monospace; /* IBM Plex Mono */
  --type-display: 48px; /* Display, weight 700 */
  --type-display-leading: 48px;
  --type-headline-large: 30px; /* Headline Large, weight 700 */
  --type-headline-large-leading: 36px;
  --type-headline-small: 24px; /* Headline Small, weight 600 */
  --type-headline-small-leading: 32px;
  --type-title-large: 20px; /* Title Large, weight 700 */
  --type-title-large-leading: 25px;
  --type-title-small: 18px; /* Title Small, weight 400 */
  --type-title-small-leading: 28px;
  --type-body-large: 16px; /* Body Large, weight 400 */
  --type-body-large-leading: 24px;
  --type-body-medium: 15.04px; /* Body Medium, weight 400 */
  --type-body-medium-leading: 22.56px;
  --type-body-small: 14px; /* Body Small, weight 400 */
  --type-body-small-leading: 17.5px;
  --type-label-large: 13.4px; /* Label Large, weight 400 */
  --type-label-large-leading: 18.4px;
  --type-label-small: 12px; /* Label Small, weight 600 */
  --type-label-small-leading: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-28: 112px;
  --space-32: 128px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-3xl: 25px;
  --radius-full: 9999px;
  --elevation-1: 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, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  --elevation-2: 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, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 2px 4px 0px inset;
  --elevation-3: 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, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px;
  --elevation-4: 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, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.1) 0px 8px 10px -6px;
  --duration-1: 0.15s;
  --duration-2: 0.2s;
  --ease-1: cubic-bezier(0.4, 0, 0.2, 1);
}
```
Tailwind CSS v4 (the default for new projects): put this after `@import "tailwindcss";`. It removes Tailwind's own palette, so only these colours exist as utilities:
```css
@theme {
  --color-*: initial;
  --color-background: #0B0F19;
  --color-surface: #000000;
  --color-text: #99A1AF;
  --color-text-muted: #4A5565;
  --color-action: #FFFFFF;
  --color-on-action: #000000;
  --color-positive: #7CCF00;
  --color-negative: #FB2C36;
  --color-warning: #FD9A00;
  --color-86898f: #86898F;
  --color-f9fafb: #F9FAFB;
  --color-4a4e57: #4A4E57;
  --font-body: "Source Sans Pro", sans-serif;
  --font-code: "IBM Plex Mono", monospace;
  --text-display: 48px;
  --text-display--line-height: 48px;
  --text-headline-large: 30px;
  --text-headline-large--line-height: 36px;
  --text-headline-small: 24px;
  --text-headline-small--line-height: 32px;
  --text-title-large: 20px;
  --text-title-large--line-height: 25px;
  --text-title-small: 18px;
  --text-title-small--line-height: 28px;
  --text-body-large: 16px;
  --text-body-large--line-height: 24px;
  --text-body-medium: 15.04px;
  --text-body-medium--line-height: 22.56px;
  --text-body-small: 14px;
  --text-body-small--line-height: 17.5px;
  --text-label-large: 13.4px;
  --text-label-large--line-height: 18.4px;
  --text-label-small: 12px;
  --text-label-small--line-height: 12px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-3xl: 25px;
  --radius-full: 9999px;
  --shadow-e1: 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, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  --shadow-e2: 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, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 2px 4px 0px inset;
  --shadow-e3: 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, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px;
  --shadow-e4: 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, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.1) 0px 8px 10px -6px;
  --ease-1: cubic-bezier(0.4, 0, 0.2, 1);
}
```
Tailwind CSS v3 only: extend the theme with these instead, and use no other palette:
```js
// tailwind.config — theme.extend
{
  colors: { "background": "var(--color-background)", "surface": "var(--color-surface)", "text": "var(--color-text)", "text-muted": "var(--color-text-muted)", "action": "var(--color-action)", "on-action": "var(--color-on-action)", "positive": "var(--color-positive)", "negative": "var(--color-negative)", "warning": "var(--color-warning)" },
  fontFamily: { "body": ["var(--font-body)"], "code": ["var(--font-code)"] },
  borderRadius: { "sm": "var(--radius-sm)", "md": "var(--radius-md)", "lg": "var(--radius-lg)", "xl": "var(--radius-xl)", "3xl": "var(--radius-3xl)", "full": "var(--radius-full)" },
  boxShadow: { "e1": "var(--elevation-1)", "e2": "var(--elevation-2)", "e3": "var(--elevation-3)", "e4": "var(--elevation-4)" },
}
```

2. BASE STYLES
```css
html { background: var(--color-background); }
body { margin: 0; font-family: var(--font-body); font-size: var(--type-body-large); line-height: var(--type-body-large-leading); color: var(--color-text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3 { font-family: var(--font-body); margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-action); outline-offset: 2px; }
```

3. COMPONENTS — MATCH THESE EXACTLY
```css
.card { /* Default */
  background: var(--color-action);
  border-radius: var(--radius-xl);
  padding: 0px 8px 0px 8px;
  min-height: 482px;
  box-shadow: var(--elevation-1);
  color: var(--color-on-action);
  font-family: var(--font-body);
  font-size: var(--type-body-large);
  font-weight: 400;
  line-height: 24px;
}
.link { /* Inline */
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--type-body-large);
  font-weight: 400;
  line-height: 24px;
  /* recorded states: hover */
}
.link-2 { /* Strong */
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 8px 16px 8px 16px;
  min-height: 38px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: var(--type-body-small);
  font-weight: 600;
  line-height: 20px;
  /* recorded states: hover */
}
.link-3 { /* Inline 2 */
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 4px 14px 4px 14px;
  min-height: 34px;
  font-family: var(--font-body);
  font-size: var(--type-body-large);
  font-weight: 400;
  line-height: 24px;
  /* recorded states: hover */
}
.input { /* Default */
  background: var(--color-action);
  border-radius: var(--radius-lg);
  padding: 8px 12px 8px 32px;
  min-height: 36px;
  box-shadow: var(--elevation-2);
  color: var(--color-on-action);
  font-family: var(--font-body);
  font-size: var(--type-body-large);
  font-weight: 400;
  line-height: 24px;
  /* recorded states: focus */
}
.button { /* Primary */
  background: var(--color-action);
  border-radius: var(--radius-full);
  padding: 4px 10px 4px 8px;
  min-height: 30px;
  font-family: var(--font-body);
  font-size: var(--type-body-small);
  font-weight: 400;
  line-height: 20px;
  /* recorded states: collapsed, hover */
}
```
Where a component lists recorded states, write those states using only the colours above; the capture saw that the state exists, not its values. Never invent a state colour.

4. PAGE COMPOSITION
- Dark interface on #0B0F19. Keep that ground; do not add a light mode or alternate section backgrounds the system does not have.
- The opening screen carries a large image or video on the right. Leave a [content: hero image or video] slot there, at least half the screen wide; the opening is not text alone.
- #FFFFFF is the action colour. Fill the primary action with it and little else — at most one #FFFFFF-filled element per screen; other accents keep to the uses listed above.
- Type: Source Sans Pro for body; IBM Plex Mono for code. Hierarchy comes from size and weight, not colour or decoration.
- Everything sits on a 4px grid.
- Corner radii are 4px, 6px, 8px, 12px, 25px, fully round (pill) — nothing else.
- Body text uses Source Sans Pro at around 16px, weights 400, 600, 700.
- Headings use the same family as body text; the largest heading is 48px.
- Primary buttons are #FFFFFF, 8px radius, weight 400.
- Cards use 25px corners.
- Corner radii in use: 8px, 4px, 9999px (pill), 25.6px, 12px.

HOW THE ORIGINAL PACES ITS PAGE (BORROW THE RHYTHM — THE OPENING, THE COLOURED BANDS, THE CARD GRIDS — NOT THE LIST; BUILD THE SECTIONS YOUR PRODUCT NEEDS)
1. Hero — 676px tall, left-aligned 48px heading (weight 700) set mid-band, artwork on the right.
2. Text — 640px tall, left-aligned 20px heading (weight 700).
3. Statement — 192px tall, centred 30px heading (weight 700) set low in the band.
4. Text — 872px tall, left-aligned 20px heading (weight 600), artwork on the left.
5. Statement — 264px tall, centred 30px heading (weight 700).
6. Split — 1255px tall, split 4 / 8, 32px gap, left-aligned 24px heading (weight 600), artwork on the right.
7. Statement — 224px tall, centred 30px heading (weight 700).
8. Text — 712px tall, left-aligned 20px heading (weight 700).
9. Full-bleed image — 249px tall, artwork behind the content.
10. Footer — 405px tall, split 3 / 3 / 2 / 2 / 2, 32px gap, left-aligned 18px heading (weight 600).
- Content sits in a 1280px container, 96px from the edge at 1440px wide.
- A 65px header scrolls away, transparent over the first section.
- The hero is 676px (0.8 screens): left-aligned 48px heading (weight 700) set mid-band, artwork on the right.
- Column splits on a 12-column grid: 4/8, 3/3/2/2/2; gaps of 32px.
- Headings align left (6 of 9 sections); centre only the occasional statement.
- Sections share one background; they are separated by space and lines, not colour bands.
- A typical section is about 640px tall.

COPY SHAPE (MATCH THE LENGTH AND CASE; WRITE YOUR OWN WORDS)
- The main heading is 6 words long.
- Section headings are short: typically 3 words.
- Headings are in sentence case (only the first word capitalised).
- The page describes itself in about 16 words; keep your intro paragraph to about that length.

5. MOTION
Interactive elements change colour, background, border and opacity with the measured timing. Animate nothing else.
```css
a, button, [role="button"], input { transition: color var(--duration-1) var(--ease-1), background-color var(--duration-1) var(--ease-1), border-color var(--duration-1) var(--ease-1), opacity var(--duration-1) var(--ease-1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
```
No scroll-triggered fade-ins, parallax, typewriter text or bouncing elements.

6. RESPONSIVE
- The design was measured at 1440px wide. Lay it out for that width first, then let it reflow down to 360px.
- Content sits in a column at most 406px wide, centred, with var(--space-4) (16px) side padding on small screens.
- The largest heading scales fluidly: font-size: clamp(24px, 3.3vw, 48px). Every other size stays fixed.
- Break on composition, not device names: a row of columns drops a column when any column would be narrower than 240px; side-by-side splits stack when either side would be narrower than 320px.
- Spacing steps never change between sizes; use smaller steps from the same list where space is tight.
- On touch screens, every link and button has a hit area of at least 44 × 44px without changing its drawn size.

7. ACCESSIBILITY
- Text pairs that pass for body copy: Text on Background (7.4:1), Action on Background (19.2:1), Positive on Background (9.8:1), Negative on Background (5:1), Text on Surface (8.1:1), Action on Surface (21:1), Positive on Surface (10.8:1), Negative on Surface (5.5:1) and On action on Action (21:1).
- Use no other text-on-background pairing.
- One h1 per page, headings in order, landmarks (header, nav, main, footer), real buttons and links, a label on every field, alt text on every image, an aria-label on icon-only buttons.
- Every interactive element shows the :focus-visible outline above.

8. DO NOT (THESE ARE WHAT MAKE AI-BUILT SITES LOOK GENERIC)
- No gradients: not in backgrounds, text, buttons or borders. (No gradient was measured.)
- Only these colours: #FFFFFF, #0B0F19, #000000, #6A7282, #86898F, #F9FAFB, #99A1AF, #4A4E57, #E5E7EB, #F3F4F6, #4A5565, #7CCF00, #FB2C36, #FD9A00. No new tints, no Tailwind defaults (slate, indigo, violet). (They are every colour that covers a measurable part of the page, and the colours its lines and drawings use.)
- #973C00 only for text — never as a section background or a large panel. (It covers under 0.1% of the page.)
- #A3004C only for text — never as a section background or a large panel. (It covers under 0.1% of the page.)
- Only the fonts in the tokens: Source Sans Pro for body; IBM Plex Mono for code. No other typeface, and no Inter, Roboto or system UI font unless it is one of these. (The page is set in Source Sans Pro and IBM Plex Mono; the tokens carry what stands in for them.)
- Headings and large text never heavier than weight 700. Do not make headlines bold to add emphasis. (Every size from 24px up is set at weight 700 or lighter.)
- No stock photography or AI-generated photos. (Photographs cover almost none of the page.)
- No icon above every feature, no emoji, no decorative blobs, sparkles or glows. (None of these is part of the captured design; they are a coding model's defaults.)
- The hero is left-aligned. Do not centre it. (The captured hero sets its heading on the left.)
- Build the sections your product needs, not the original's list. Give each one this system's look: its kinds of section (hero, text, statement, split, image, footer), its colours, type, shapes and spacing. (The style carries to any kind of site; the original's page was for a different product.)
- No glassmorphism, backdrop blur, glowing orbs, noise blobs or neon outlines.
- No row of three identical feature cards as the default section. Vary the layout from section to section: a split, a list, a single large statement, a table.
- No centred-everything hero with a pill badge, a gradient headline and two buttons. Lead with the most specific thing about the product.
- No filler copy: no "Unlock your potential", "Revolutionize", "Seamless", "Elevate", "Supercharge", "Next-gen" or lorem ipsum. Write plain, specific sentences a real company would publish.
- No made-up statistics, testimonials or customer logos. Leave a clearly marked [content: …] slot instead.
- No radius larger than the largest one listed.
- No shadows other than the levels listed.
- Do not use huggingface.co's name, logo, copy or images. This is its design system, not its content.

BEFORE YOU FINISH
- Search your code for every colour, font size, spacing value, radius, shadow and easing, and replace anything that is not a variable above.
- Check that no [content: …] slot has been filled with invented facts.
- Search your CSS for gradient(. There should be none.
- Every colour value in your CSS is one of the allowed colours. Nothing else, including in hover states.
- #973C00 covers about 0.1% of the page or less, as on the original.
- #A3004C covers about 0.1% of the page or less, as on the original.
- No text 24px or larger has a font-weight above 700.
- Every section, including ones the original does not have, uses only this system's colours, type, shapes and spacing.
- Content sits in a 1280px container with 96px side margins at 1440px.
- There is no placeholder copy (lorem ipsum, "Feature one", "Your headline here"). Every word is real.
- Take a screenshot at 1440px and put it beside the original. List every difference in colour, weight, spacing, alignment and imagery, and fix each before finishing. Then check 390px wide: nothing scrolls sideways and no heading runs off the screen.
