01The palette
02Try it on
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.
04Type
05Tokens
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
- 01A cohesive experience
- 02Inclusive and accessible design
- 03Responsive design
- 04Design for efficiency
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
- unpkg.com/@primer/primitives@11.10.0/dist/css/functional/themes/light.css
- unpkg.com/@primer/primitives@11.10.0/dist/css/base/typography/typography.css
- unpkg.com/@primer/primitives@11.10.0/dist/css/functional/typography/typography.css
- unpkg.com/@primer/primitives@11.10.0/dist/css/base/size/size.css
- unpkg.com/@primer/primitives@11.10.0/dist/css/functional/size/radius.css
- unpkg.com/@primer/primitives@11.10.0/dist/css/base/motion/motion.css
- raw.githubusercontent.com/primer/design/main/content/guides/introduction.mdx
Values are taken from the sources above. Omoro is not affiliated with GitHub Primer. The name and any trademarks belong to their owner.