GitHub Primer

Colours, type and tokens

GitHub's design system with functional color tokens, Mona Sans type and compact sizing for dense developer interfaces.

bgColor-success-emphasisprimary
#1F883D
Primary buttons (button-primary-bgColor-rest)

01The palette

02Try it on

GitHub PrimerShopStoriesAbout
New season
Made to feel like GitHub Primer.

GitHub's design system with functional color tokens, Mona Sans type and compact sizing for dense developer interfaces.

Get startedLearn more
Background
Text
Accent

Text on this background: easy to read (15.8 to 1)

03Which colours can carry text

Rows are the background, columns the text. A tick passes the web standard for body text (4.5 to 1), a half for big headlines only (3 to 1). Click any pair to try it above.

#1F883D#0969DA#1F2328#59636E#FFFFFF#F6F8FA
#1F883D
#0969DA
#1F2328
#59636E
#FFFFFF
#F6F8FA

04Type

Mona Sans · stands in for Mona Sans
Made to feel like GitHub Primer
body · Mona SansFree on Google Fonts ↗
The quick brown fox jumps over the lazy dog
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789

with system-font fallbacks

display · Mona SansFree on Google Fonts ↗
GitHub Primer
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
mono · ui-monospace / SF MonoFree alternative: JetBrains Mono ↗
const brand = "#1F883D";

system monospace stack

05Tokens

Type scale · 6 sizes
40pxGitHub Primer
32pxGitHub Primer
20pxGitHub Primer
16pxGitHub Primer
14pxGitHub Primer
12pxGitHub Primer
Spacing · 4px base
2
4
6
8
12
16
20
24
28
32
36
40
44
48
64
80
96
112
128
Corner radius
3612

Motion. durations 50-1000ms; ease cubic-bezier(0.25,0.1,0.25,1), easeOut cubic-bezier(0.3,0.8,0.6,1), easeIn cubic-bezier(0.7,0.1,0.75,0.9), easeInOut cubic-bezier(0.6,0,0.2,1)

06Principles

  1. 01A cohesive experience
  2. 02Inclusive and accessible design
  3. 03Responsive design
  4. 04Design for efficiency
Taste profileData AestheteDigital Minimalist

07Questions

What colors does GitHub Primer use?

GitHub Primer's default theme leads with bgColor-success-emphasis (#1F883D) and fgColor-accent / bgColor-accent-emphasis (#0969DA), with 4 supporting colours on this page.

What font does GitHub Primer use?

GitHub Primer uses Mona Sans and ui-monospace / SF Mono. The closest free alternative on Google Fonts is JetBrains Mono.

What grid and spacing does GitHub Primer use?

Spacing is built on a 4px base, in steps of 2, 4, 6, 8, 12, 16, 20, 24px and up. Corner radii run 3, 6, 12px.

08Sources

Values are taken from the sources above. Omoro is not affiliated with GitHub Primer. The name and any trademarks belong to their owner.

09Similar systems and brands

GlossierSpotifyStripeMujiAppleAirbnb
Every design systemAll brands and systems →
All palettes →Browse colours →