H

Hugging Face

AI & Machine Learning · Bright yellow and approachable — open source AI with community warmth.

Color Palette

Primary

#FFD21E

Secondary

#1A1A1A

Accent 1

#FF9D00

Typography

Source Sans Pro

The quick brown fox

jumps over the lazy dog

ABCDEFGHIJKLMNOPQRSTUVWXYZ

Component Preview

Navigation Bar

Hugging Face · Features · Pricing

#FF9D00 — accent

Spacing Scale (4px base)

4

8

16

24

32

48

.cursorrules
# Hugging Face Design System — .cursorrules
# Generated by StyleExtract · styleextract.com/vault/huggingface

You are a senior frontend developer building UI that matches the Hugging Face design system exactly.
Read this entire file before writing any component.

## Brand Identity
Company    : Hugging Face
Primary    : #FFD21E
Secondary  : #1A1A1A
Accent     : #FF9D00
Font       : Source Sans Pro, system-ui
Radius     : 8px
Voice      : Bright yellow and approachable — open source AI with community warmth.

## CSS Custom Properties
```css
:root {
  --color-primary:   #FFD21E;
  --color-secondary: #1A1A1A;
  --color-accent:    #FF9D00;
  --color-text:      #FFFFFF;
  --color-surface:   #1C1C1E;
  --color-border:    #2C2C2E;
  --font-sans:       "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --radius:          8px;
}
```

## Tailwind Config
```js
// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        primary:   "#FFD21E",
        secondary: "#1A1A1A",
        accent:    "#FF9D00",
      },
      fontFamily: {
        sans: ["Source Sans Pro", "system-ui", "sans-serif"],
      },
      borderRadius: {
        brand: "8px",
      },
    },
  },
};
```

## Typography
```
heading-font:    Source Sans Pro, system-ui
heading-weight:  700
heading-tracking: -0.02em
body-font:       Source Sans Pro, system-ui
body-size:       16px
body-line-height: 1.6
```

## Spacing Scale
Base: 4px  |  Scale: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96px
Never use arbitrary values like 13px, 22px, or 50px.

## Component Rules

### Primary Button
background-color: #FFD21E
color: #1D1D1F
border-radius: 8px
padding: 12px 24px
font-weight: 600
font-size: 14px
transition: opacity 0.15s
&:hover { opacity: 0.88 }

### Secondary Button
background-color: transparent
border: 1.5px solid #FFD21E
color: #FFD21E
border-radius: 8px
padding: 11px 23px

### Card
background: #1C1C1E
border: 1px solid #2C2C2E
border-radius: 16px
padding: 24px
box-shadow: 0 1px 3px rgba(0,0,0,0.08)

### Navigation
background: #1A1A1A
color: #FFFFFF
height: 60px
padding: 0 24px
```

## Rules
DO:
- Use the exact hex values defined in CSS Custom Properties
- Maintain Hugging Face's aesthetic: Bright yellow and approachable — open source AI with community warmth.
- Apply 4px base-unit spacing throughout
- Use Source Sans Pro for all text elements
- Meet WCAG AA contrast (4.5:1 minimum for body text)

DON'T:
- Invent colors outside the defined palette
- Use system-default blue (#0000EE) for links — use var(--color-primary)
- Apply border-radius values not on the brand scale
- Use font-weight below 400 or above 900

2,639 characters

STYLE.mdAI Agent File
---
brand:
  name: "Hugging Face"
  category: "AI & Machine Learning"
  primary: "#FFD21E"
  secondary: "#1A1A1A"
  accent: "#FF9D00"
typography:
  heading: "Source Sans Pro, system-ui"
  headingWeight: 700
  headingTracking: "-0.02em"
  body: "Source Sans Pro, system-ui"
  bodySize: "16px"
  lineHeight: 1.6
spacing:
  base: 4
  scale: [4, 8, 12, 16, 24, 32, 48, 64, 96]
shape:
  radiusSm: "4px"
  radiusMd: "8px"
  radiusLg: "16px"
  radiusXl: "24px"
---

# Hugging Face Design System
> AI Agent Context — read this entire file before generating any UI for Hugging Face
> Source: StyleExtract Vault · styleextract.com/vault/huggingface

## Brand Overview
Bright yellow and approachable — open source AI with community warmth.

## Color System

| Role      | Hex       | Usage                          |
|-----------|-----------|-------------------------------|
| Primary   | `#FFD21E` | CTAs, links, key accents  |
| Secondary | `#1A1A1A` | Backgrounds, headings    |
| Accent    | `#FF9D00` | Highlights, badges, icons |
| Surface   | `#1C1C1E` | Card backgrounds |
| Border    | `#2C2C2E` | Dividers, outlines |

ALWAYS use `#FFD21E` for primary interactive elements and CTAs.
NEVER invent colors outside the palette above.

## Typography

- **Heading font**: Source Sans Pro, system-ui
- **Heading weight**: 700 / letter-spacing −0.02em
- **Body font**: Source Sans Pro, system-ui
- **Body size**: 16px / line-height 1.6

## Spacing System

Base unit is **4px**. Allowed values: 4, 8, 12, 16, 24, 32, 48, 64, 96px.
Never use arbitrary values.

## Component Patterns

### Buttons
```
Primary:   bg #FFD21E  · text #1D1D1F  · rounded-[8px]  · px-6 py-3  · font-semibold
Secondary: transparent    · border-[#FFD21E]       · text-[#FFD21E]      · px-6 py-3
```

### Cards
```
bg white (dark: #1C1C1E) · border #E5E5E7 (dark: #2C2C2E) · rounded-2xl · p-6 · shadow-sm
```

### Navigation
```
bg #1A1A1A · text #FFFFFF · h-[60px] · px-6 · logo-left · links-right
```

## Accessibility
- All text WCAG AA (4.5:1 minimum)
- Interactive targets: 44×44px minimum
- Never convey state via color alone

## Brand Voice
Bright yellow and approachable — open source AI with community warmth.

2,182 characters

How to use these files

  1. 1.Copy .cursorrules and paste it as a new file named .cursorrules in your project root.
  2. 2.Copy STYLE.md as STYLE.md in your repo root for Claude, Bolt.new, or any agent that reads Markdown context.
  3. 3.All subsequent AI-generated components will automatically match the Hugging Face design system.

Need a custom brand?

Extract any live website in 30 seconds.

Get a custom .cursorrules, STYLE.md, 17-page PDF brand book, CSS variables, Tailwind config, Figma tokens, and AI brand voice — all generated from the live site.

Extract a brand →