GitHub Design System
Developer collaboration platform with Primer design system. Dark canvas, blue accent, systematic spacing, and a robust component library.
https://github.com ↗Design Tokens & Export Formats
---
name: GitHub
url: https://github.com
version: 4.5.0
tokens:
colors:
primary: "#2f81f7"
background: "#0d1117"
surface: "#161b22"
border: "#30363d"
text-primary: "#e6edf3"
text-secondary: "#8b949e"
success: "#238636"
typography:
font-sans: "-apple-system, BlinkMacSystemFont, Segoe UI, sans-serif"
font-mono: "ui-monospace, SFMono-Regular, SF Mono, Menlo, monospace"
scale:
- { name: heading, size: "32px", weight: 600, lineHeight: 1.25 }
- { name: body, size: "14px", weight: 400, lineHeight: 1.5 }
spacing:
base: "4px"
scale:
space-1: "4px"
space-2: "8px"
space-4: "16px"
space-8: "32px"
radius:
sm: "3px"
md: "6px"
lg: "12px"
breakpoints:
sm: "640px"
md: "768px"
lg: "1024px"
---
# GitHub — Primer Design System Specification
## 1. Overview
Powered by GitHub Primer, utilizing dark canvas (`#0d1117`), elevated panel fills (`#161b22`), and vibrant blue interactive elements (`#2f81f7`).
## 2. Color System
- Primer Blue: `#2f81f7`
- Dark Canvas: `#0d1117`
- Surface: `#161b22`
## 3. Typography Scale
- Heading: 32px / Weight 600
- Body: 14px / Weight 400
## 4. Button Variants
- Primary Green Button: `background: #238636`, `color: #ffffff`, `border-radius: 6px`
- Secondary Button: `background: #21262d`, `border: 1px solid #30363d`
## 5. Card Examples
- Repo Card: `background: #161b22`, `border: 1px solid #30363d`
## 6. Form Elements
- Input Field: `background: #0d1117`, `border: 1px solid #30363d`, `border-radius: 6px`
## 7. Spacing Scale
- 4px, 8px, 16px, 24px, 32px, 40px
## 8. Border Radius Scale
- `sm: 3px`, `md: 6px`, `lg: 12px`
## 9. Responsive Behavior
- `sm: 640px`, `md: 768px`, `lg: 1024px`
Extracted Color Palette
primary
#2f81f7
background
#0d1117
surface
#161b22
text
#e6edf3
muted
#8b949e
Live Website & UI Component Preview
Rendered with -apple-system, BlinkMacSystemFont, Segoe UI font stack and extracted color tokens
Designed with GitHub's visual identity
Developer collaboration platform with Primer design system. Dark canvas, blue accent, systematic spacing, and a robust component library.
#2f81f7
#8b949e
#2f81f7
Design Tokens & UI System Specifications
1. Typography Scale
Type hierarchy using -apple-system, BlinkMacSystemFont, Segoe UI font stack
Display • 64px • Weight 700
Build visually stunning web apps.
Heading 1 • 40px • Weight 600
Design Systems for AI Coding Agents
Heading 2 • 28px • Weight 600
Extract tokens from any domain
Heading 3 • 20px • Weight 600
Production-ready CSS variables
Body Large • 18px • Weight 400
Structured markdown files designed specifically for AI prompt engineering.
Body Regular • 15px • Weight 400
Includes color palettes, typography scales, layout rules, and component specs.
Caption / Mono • 12px • Weight 500
npx getdesignsystem@latest add stripe
2. Button Variants
Interactive primary, secondary, outline, ghost, and pill buttons
Primary Button
Secondary Button
Outline Button
Ghost Button
Pill Badge Button
Disabled State
3. Card Examples
Feature cards, metric callouts, and interactive containers
AI Token Extractor
Parse CSS rules, colors, and typography from any live web page instantly.
System Installs
1,678
Used across 1,000+ AI developer agent prompts.
Developer Documentation
Complete specification rules and design token mapping for Claude Code and Cursor.
4. Form Elements
Inputs, search bars, selects, and controls
5. Spacing Scale (8px Base Grid)
Proportional spacing tokens for padding, margins, and gaps
6. Border Radius Scale
Corner radius specifications across components
radius-sm
4px
radius-md
8px
radius-lg
16px
radius-full
Pill (9999px)
7. Elevation & Depth
Box shadows and progressive depth layers
Subtle Shadow
0 2px 4px rgba(0,0,0,0.1)
Elevated Card
0 8px 24px rgba(0,0,0,0.15)
Accent Glow
0 0 30px #2f81f735
8. Responsive Breakpoints & Grid
Fluid layouts across mobile, tablet, and desktop viewports
640px
Mobile landscape & small tablets
768px
Tablets & portrait iPads
1024px
Laptops & small desktop monitors
1280px
Large widescreen displays
Independent analysis of publicly observable patterns, curated as a starting point for developer inspiration and AI coding agents. Not affiliated with or endorsed by GitHub; GitHub and its respective logos are trademarks of their respective owners.
Related Design Systems
Explore similar pre-analyzed DESIGN.md specifications for AI agents.
Linear
Linear's design is ultra-minimal with purple/blue gradients, Inter typeface, and a dark-first aesthetic built for speed and developer focus.
Vercel
Discover the Vercel design system powered by the Geist design system font family, iconic black-and-white minimalism, and high-contrast tokens.
Stripe
Stripe's design uses a deep navy-to-indigo palette anchored by #533afd (Stripe Indigo), sohne-var typography, and a signature spectral gradient hero.