Back to Discover

Hugging Face

The AI community building the future

huggingface.co
14 colors
19 components
Source Sans, Source Code Pro
Apr 29, 2026
Website Preview
Hugging Face screenshot
Colors
Primary
#FFD21E

Brand highlight, hero accents

#FF9D00

CTAs, links, active states

#3B82F6

External links, dataset indicators

Neutral
#1C1C1C

Headings, body

#6B7280

Metadata, captions

#9CA3AF

Placeholders

#FFFFFF

Page background

#F9FAFB

Cards, sidebar

#FFF9E6

Highlighted model cards

#E5E7EB

Dividers, card borders

Semantic
#10B981

Download success, passing tests

#EF4444

Errors, broken models

#F59E0B

Deprecated models

#FFD21E

New model indicators

Typography
Source Sans
Role
SizeWeightHeight
H1
36px7001.2
H2
26px6001.3
H3
20px6001.4
Body
16px4001.6
Small
14px4001.5
Source Code Pro
Role
SizeWeightHeight
Code
14px4001.6

Design System Inspired by Hugging Face

1. Visual Theme & Atmosphere

Hugging Face is the GitHub of AI — a warm, community-first ML platform built around model cards, datasets, and collaborative research. The emoji mascot and yellow-orange palette give it a distinctly friendly personality that sets it apart from corporate AI. The design scales from simple model cards to complex code notebooks.

Key Characteristics:

  • Yellow-orange on white — warm and welcoming
  • Community-first: stars, likes, downloads front and center
  • Source Sans for approachable readability
  • Open-source personality in every design decision

2. Color Palette & Roles

Primary

  • Brand Yellow (#FFD21E): Brand highlight, hero accents
  • Orange (#FF9D00): CTAs, links, active states

Accent Colors

  • Blue (#3B82F6): External links, dataset indicators

Neutral Scale

  • Text Primary (#1C1C1C): Headings, body
  • Text Secondary (#6B7280): Metadata, captions
  • Text Muted (#9CA3AF): Placeholders

Surface & Borders

  • Background (#FFFFFF): Page background
  • Surface (#F9FAFB): Cards, sidebar
  • Surface Warm (#FFF9E6): Highlighted model cards
  • Border (#E5E7EB): Dividers, card borders

Semantic / Status

  • Success (#10B981): Download success, passing tests
  • Error (#EF4444): Errors, broken models
  • Warning (#F59E0B): Deprecated models
  • New (#FFD21E): New model indicators

3. Typography Rules

Font Family

Primary: Source Sans 3, fallback: system-ui, sans-serif. Code: Source Code Pro

Hierarchy

RoleFontSizeWeightLine HeightLetter SpacingNotes
H1Source Sans36px7001.2-0.01emPage titles
H2Source Sans26px6001.30Section headings
H3Source Sans20px6001.40Card headings
BodySource Sans16px4001.60Model card prose
SmallSource Sans14px4001.50Metadata, tags
CodeSource Code Pro14px4001.60Code samples

Principles

  • Source Sans has warmth that matches the community-first brand
  • Model card readability is paramount — 16px with 1.6 line-height

4. Component Stylings

Buttons

  • Primary: bg #FF9D00, text #FFFFFF, padding 9px 18px, radius 8px, font 15px/600
  • Secondary: bg #FFFFFF, border 1px solid #E5E7EB, text #1C1C1C
  • Like: heart icon + count, bg #FFF9E6, border 1px solid #FFD21E

Cards & Containers

  • bg #FFFFFF, border 1px solid #E5E7EB, radius 10px, padding 16px
  • Hover: border #FF9D00, box-shadow 0 2px 8px rgba(255,157,0,0.1)

Inputs & Forms

  • Border 1px solid #E5E7EB, radius 8px, padding 9px 14px
  • Focus: border #FF9D00

Navigation

  • Top nav #FFFFFF, height 56px, border-bottom #E5E7EB
  • Left sidebar on model pages, 220px

5. Layout Principles

Spacing System

  • 4px — Tag gaps
  • 8px — Stat icon-label gaps
  • 12px — Card inner spacing
  • 16px — Card padding
  • 24px — Section gaps
  • 32px — Model grid gaps
  • 48px — Page sections

Grid & Container

  • Max width 1200px. Model grid: 3-column, 16px gutters.

Whitespace Philosophy

Community content needs space to breathe — cards are not dense.

Border Radius Scale

  • None (0px): Code block edges
  • Sm (4px): Task type badges, tags
  • Md (8px): Buttons, inputs
  • Lg (10px): Model cards
  • Full (9999px): Avatars, like button

6. Depth & Elevation

LevelTreatmentUse
FlatnonePage background
Raised0 1px 3px rgba(0,0,0,0.08)Model cards
Overlay0 4px 12px rgba(0,0,0,0.12)Dropdowns
Modal0 8px 32px rgba(0,0,0,0.15)Dialogs

7. Do's and Don'ts

Do

  • Use the emoji mascot for personality in empty states and onboarding
  • Show download count, likes, and last-updated prominently on every card
  • Use yellow for brand moments and highlights; orange for interactive

Don't

  • Don't remove the yellow — it's the most recognisable element of the brand
  • Don't use dark backgrounds for main content
  • Don't hide community stats — they're core to trust

8. Responsive Behavior

Breakpoints

NameWidthKey Changes
Mobile0–767pxSingle column model list
Tablet768–1023px2-column grid
Desktop1024px+3-column grid + sidebar

Touch Targets

Minimum 44×44px. Like and download buttons are 44px.

Collapsing Strategy

Sidebar hides on mobile. Grid goes single column. Model card stats remain visible.

9. Agent Prompt Guide

Quick Color Reference

  • Brand: Yellow (#FFD21E)
  • CTA/Interactive: Orange (#FF9D00)
  • Background: White (#FFFFFF)
  • Text: #1C1C1C
  • Border: #E5E7EB
  • Card hover border: Orange (#FF9D00)

Iteration Guide

  1. Orange is the interactive color; yellow is the brand accent — never swap
  2. Model cards always show: name, task type, downloads, likes, updated date
  3. Community stats are never hidden — they build trust
  4. Source Sans (not Inter) is the brand typeface
  5. Card border-radius is 10px — rounder than most developer tools

Want a DESIGN.md like this for your own website?