Developer Tools & IDEs

GitHub Design System

Developer collaboration platform with Primer design system. Dark canvas, blue accent, systematic spacing, and a robust component library.

https://github.com
1,678 installs1,234 bookmarks
GitHub Design System1,678 downloads

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

G
GitHub
Extracted Design System Token Spec

Designed with GitHub's visual identity

Developer collaboration platform with Primer design system. Dark canvas, blue accent, systematic spacing, and a robust component library.

Primary Brand Token

#2f81f7

Secondary Token

#8b949e

Accent Token

#2f81f7

Token Verified

Design Tokens & UI System Specifications

1. Typography Scale

Type hierarchy using -apple-system, BlinkMacSystemFont, Segoe UI font stack

Display64px • Weight 700

Build visually stunning web apps.

Heading 140px • Weight 600

Design Systems for AI Coding Agents

Heading 228px • Weight 600

Extract tokens from any domain

Heading 320px • Weight 600

Production-ready CSS variables

Body Large18px • Weight 400

Structured markdown files designed specifically for AI prompt engineering.

Body Regular15px • Weight 400

Includes color palettes, typography scales, layout rules, and component specs.

Caption / Mono12px • 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.

Read Guide

4. Form Elements

Inputs, search bars, selects, and controls

5. Spacing Scale (8px Base Grid)

Proportional spacing tokens for padding, margins, and gaps

space-14px
space-28px
space-312px
space-416px
space-624px
space-832px
space-1248px
space-1664px

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

sm

640px

Mobile landscape & small tablets

md

768px

Tablets & portrait iPads

lg

1024px

Laptops & small desktop monitors

xl

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.

Discover More

Related Design Systems

Explore similar pre-analyzed DESIGN.md specifications for AI agents.

View All 75+ Design Systems