MozaikaDesign system

Hugging Face — Design System

light · modern · medium · tailwind · confidence 90%

The full decoded design system for Hugging Face: color roles, type scale, spacing, radii and paste-ready DESIGN.md / Tailwind / CSS exports.

Open in Mozaika →

This is a static, crawlable rendering for search & AI engines. The interactive version — filters, live decode console, copy & export — is at https://mozaika.design/ds/hugging-face.

Tokens

Hugging Face's decoded design system: background #FFFFFF, text #000000, accent #E5E7EB, link #6A7282, primary #101828; type scale h1 60px / h2 20px / body 18px; 8px spacing base; 0px base radius. The single interactive/action color is #E5E7EB — used only on interactive or must-notice elements (buttons, links, key highlights), never on large fills.

Color roles

RoleValue
bg#FFFFFF
surface#EFEFEF
border#D8D8D8
text#000000
text_muted#606060
primary#101828
accent#E5E7EB
link#6A7282
secondary#141C2E
button_bg#E5E7EB
button_text#101828

Using these colors

Typography

Spacing

Radii

Per-section tokens (8)

Export: DESIGN.md

# Hugging Face — Design System

> light, modern, medium, tailwind

## Colors

| Role | Value |
|------|-------|
| bg | `#FFFFFF` |
| surface | `#EFEFEF` |
| border | `#D8D8D8` |
| text | `#000000` |
| text_muted | `#606060` |
| primary | `#101828` |
| accent | `#E5E7EB` |
| link | `#6A7282` |
| secondary | `#141C2E` |
| button_bg | `#E5E7EB` |
| button_text | `#101828` |

**Using these colors**

- **Action color** `#E5E7EB` — the single interactive color; it appears only on things you click or must notice (buttons, key highlights), never on large fills or backgrounds.
- `primary` `#101828`, `secondary` `#141C2E` are visually the same color (Δ14) — treat as one role.
- `accent`, `button_bg` are all `#E5E7EB` — one role, not several (your action color).
- **accent** `#E5E7EB` — THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed.
- **link** `#6A7282` — reads as a neutral UI color, not a link accent — verify against the reference (action = #E5E7EB).

## Typography

- Heading: **Source Sans Pro** _(free fallback: Newsreader)_
- Body: **Source Sans Pro** _(free fallback: Newsreader)_
- h1: 60px
- h2: 20px
- body: 18px

> **Fonts —** Source Sans Pro may be proprietary — safe free fallback: Newsreader (Google Fonts).

## Spacing
- base unit: 8px
- scale: 4px, 8px, 12px, 16px, 24px, 32px, 48px, 64px

## Radius
- base: 0px
- button: 8px

## Primary button
- bg `#E5E7EB` · text `#101828` · radius 8px

## How to apply
Paste the Tailwind `@theme` (or CSS variables) as your base, then build each
section to its spec — verify every color, radius, and font against these tokens.

Export: Tailwind v4 (@theme)

@theme {
  /* action color #E5E7EB — the one interactive color; buttons/links/emphasis only, never large fills. */
  --color-bg: #FFFFFF;
  --color-surface: #EFEFEF;
  --color-border: #D8D8D8;
  --color-text: #000000;
  --color-text-muted: #606060;
  --color-primary: #101828;  /* a brand color — but the call-to-action uses #E5E7EB, not this. */
  --color-accent: #E5E7EB;  /* THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed. */
  --color-link: #6A7282;  /* reads as a neutral UI color, not a link accent — verify against the reference (action = #E5E7EB). */
  --color-secondary: #141C2E;  /* optional secondary accent — LOW decode confidence; use rarely (a status color or a single decorative moment) or omit it entirely. Prefer one accent unless the reference clearly shows two. */
  --color-button-bg: #E5E7EB;  /* primary-button fill — the main call-to-action color. */
  --color-button-text: #101828;
  /* fonts: Source Sans Pro may be proprietary — safe free fallback: Newsreader (Google Fonts). */
  --font-heading: "Source Sans Pro", "Newsreader", system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: "Source Sans Pro", "Newsreader", system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-h1: 60px;
  --text-h2: 20px;
  --text-body: 18px;
  --radius-base: 0px;
  --radius-button: 8px;
  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-5: 24px;
  --spacing-6: 32px;
  --spacing-7: 48px;
  --spacing-8: 64px;
}

Export: CSS variables

:root {
  /* action color #E5E7EB — the one interactive color; buttons/links/emphasis only, never large fills. */
  --bg: #FFFFFF;
  --surface: #EFEFEF;
  --border: #D8D8D8;
  --text: #000000;
  --text-muted: #606060;
  --primary: #101828;  /* a brand color — but the call-to-action uses #E5E7EB, not this. */
  --accent: #E5E7EB;  /* THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed. */
  --link: #6A7282;  /* reads as a neutral UI color, not a link accent — verify against the reference (action = #E5E7EB). */
  --secondary: #141C2E;  /* optional secondary accent — LOW decode confidence; use rarely (a status color or a single decorative moment) or omit it entirely. Prefer one accent unless the reference clearly shows two. */
  --button-bg: #E5E7EB;  /* primary-button fill — the main call-to-action color. */
  --button-text: #101828;
  --font-heading: "Source Sans Pro", "Newsreader", system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: "Source Sans Pro", "Newsreader", system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 0px;
  --radius-button: 8px;
}
/* fonts: Source Sans Pro may be proprietary — safe free fallback: Newsreader (Google Fonts). */