GitHub · Design system breakdown
GitHub's open design system — pragmatic, code-first, content-savvy.
Primer started as GitHub's internal CSS framework in the mid-2010s and grew into a multi-platform design system covering React, Rails ViewComponents, Figma, and a CSS toolkit. It evolves alongside GitHub itself.
GitHub design and engineering teams own the system; public on GitHub with active issue triage. Components ship with strong test coverage and a clear deprecation policy.
| Token | Value | Role |
|---|---|---|
| fgColor.default | #1f2328 | Default text |
| bgColor.default | #ffffff | Page surface |
| accent.fgColor | #0969da | Link / accent |
| danger.fgColor | #d1242f | Destructive |
| stack-padding-normal | 16px | Default container padding |
| borderRadius-medium | 6px | Card and button radius |
Token names and values are illustrative — refer to the system's official tokens reference for the canonical, current set.
If you're evaluating this system
Pick Primer if you're building a developer-facing product or any code-adjacent tool. Pair it with Primer's content guidelines — they are arguably more valuable than the components.
Compare more systems