What font does GitHub use?
GitHub’s website uses Mona Sans for headings and body text. Mona Sans is free on Google Fonts.
| Font | Used for | Weights | Free to use? |
|---|---|---|---|
| Mona Sans | Body | 400, 425, 440, 460, 480, 500, 600, 800 | Yes, Google Fonts |
| Mona SansCSS name: Mona Sans VF | Interface | 400, 600 | Yes, Google Fonts (Mona Sans) |
| Mona Sans Mono | Code | 400, 480, 500 | Licensed. Free match: JetBrains Mono |
GitHub colour palette
GitHub’s home page is dark (#0D1117 background, #FFFFFF text) and uses #FFFFFF for its main actions. Its palette: #0D1117, #000000, #0F1511, #FFFFFF, #151A22, #A4AEA6.
Type scale
Each size the page sets text in, with its weight and line height. GitHub’s largest type is 64px at weight 425.
| Style | Size | Weight | Line height | Font |
|---|---|---|---|---|
| Display Large | 64px | 425 | 69.12px | Mona Sans |
| Display Medium | 48px | 440 | 56.64px | Mona Sans |
| Display Small | 40px | 460 | 48px | Mona Sans |
| Headline | 24px | 600 | 36px | Mona Sans |
| Title Large | 22px | 400 | 30.8px | Mona Sans |
| Title Small | 18px | 400 | 27px | Mona Sans |
| Body Large | 16px | 400 | 24px | Mona Sans |
| Body Small | 14px | 400 | 21px | Mona Sans |
Spacing and shape
Spacing sits on a 4px grid: 4px, 8px, 12px, 16px, 20px, 24px, 28px, 32px, 40px, 44px, 48px, 64px.
Corner radii: 4px, 6px, 8px, 12px, 16px, 24px. 1 shadow level measured.
What makes GitHub look like GitHub
Almost entirely neutral: 99% of the page is painted in #0D1117 and #000000.
#A2DAFF is an accent: 0.1% of the page, used for text only. Don't fill large areas with it.
#08872B is an accent: under 0.1% of the page, as small fills such as buttons and badges. Keep it to small areas.
The largest type (64px Mona Sans) is regular weight, not bold (425), tracked to -0.035em.
GitHub DESIGN.md for Claude Code, Cursor and Lovable
A DESIGN.md is the brief an AI coding tool reads before it writes UI. This one carries everything on this page as rules a model follows: the allowed colours and what each is for, the fonts with free stand-ins, the type scale, spacing, corners, and the things GitHub’s design never does.
Put it in your project root and ask your tool to follow it: “Read DESIGN.md and build [your product] in this design language.” It describes a style, not GitHub’s product, so use your own name, words and images.
As CSS variables
The measured values as CSS custom properties, with free fonts standing in for licensed ones. Use them to learn from or to start a project in a similar style; GitHub’s name, logo, words and images are theirs.
@import url("https://fonts.googleapis.com/css2?family=Mona+Sans:wght@400;425;440;460;480;500;600;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");
:root {
--color-background: #0D1117; /* Background */
--color-surface: #000000; /* Surface */
--color-text: #FFFFFF; /* Text */
--color-text-muted: #A4AEA6; /* Text muted */
--color-border: #1F2328; /* Border */
--color-action: #FFFFFF; /* Action */
--color-on-action: #000000; /* On action */
--color-link: #A2DAFF; /* Link */
--color-positive: #5FED83; /* Positive */
--color-negative: #F85149; /* Negative */
--color-warning: #D29922; /* Warning */
--color-0f1511: #0F1511; /* 1.7% of the page, as fills */
--color-151a22: #151A22; /* 1.1% of the page, as fills */
--font-body: "Mona Sans", "Mona Sans", sans-serif; /* Mona Sans */
--font-interface: "Mona Sans VF", "Mona Sans", sans-serif; /* Mona Sans VF on the site; Mona Sans renders */
--font-code: "Mona Sans Mono", "JetBrains Mono", monospace; /* Mona Sans Mono on the site; JetBrains Mono renders */
--type-display-large: 64px; /* Display Large, weight 425 */
--type-display-large-leading: 69.12px;
--type-display-large-tracking: -0.035em;
--type-display-medium: 48px; /* Display Medium, weight 440 */
--type-display-medium-leading: 56.64px;
--type-display-small: 40px; /* Display Small, weight 460 */
--type-display-small-leading: 48px;
--type-headline: 24px; /* Headline, weight 600 */
--type-headline-leading: 36px;
--type-title-large: 22px; /* Title Large, weight 400 */
--type-title-large-leading: 30.8px;
--type-title-small: 18px; /* Title Small, weight 400 */
--type-title-small-leading: 27px;
--type-title-small-tracking: 0.01em;
--type-body-large: 16px; /* Body Large, weight 400 */
--type-body-large-leading: 24px;
--type-body-large-tracking: 0.015em;
--type-body-small: 14px; /* Body Small, weight 400 */
--type-body-small-leading: 21px;
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 20px;
--space-6: 24px;
--space-7: 28px;
--space-8: 32px;
--space-10: 40px;
--space-11: 44px;
--space-12: 48px;
--space-16: 64px;
--space-18: 72px;
--space-20: 80px;
--space-24: 96px;
--space-28: 112px;
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 8px;
--radius-xl: 12px;
--radius-2xl: 16px;
--radius-3xl: 24px;
--radius-48: 48px; /* component radius */
}How this was measured
PikSpec’s scanner read the github.com home page in Chrome at 1440px wide on 14 October 2026: the computed styles of its elements, the fonts that rendered and how much of the page each colour covers. Websites change; capture the page yourself with PikSpec for today’s values, any page, and exports in five formats.
GitHub is a trademark of its owner. This page is an independent measurement and is not affiliated with or endorsed by GitHub.
Similar dark designs: Aesop · Bolt · Descript · DigitalOcean · Discord · Framer
Questions
What font does GitHub use?
GitHub’s website uses Mona Sans for headings and body text. Mona Sans is free on Google Fonts.
What are GitHub’s brand colors?
GitHub’s home page is dark (#0D1117 background, #FFFFFF text) and uses #FFFFFF for its main actions. Its palette: #0D1117, #000000, #0F1511, #FFFFFF, #151A22, #A4AEA6.
Is there a DESIGN.md for GitHub?
Yes: download it from this page (/design-systems/github/DESIGN.md). It is measured from github.com with PikSpec, with licensed fonts replaced by free matches, and works with Claude Code, Cursor, Codex, Lovable and v0.
How can I build a website in GitHub’s style?
Use the values on this page as design tokens, swap any licensed font for its free match, and use your own name, words and images. PikSpec’s Build with AI turns a capture like this into a prompt and starter project for Lovable, Claude, v0, Cursor or Claude Code.
Is this GitHub’s official design system?
No. It is measured from the rendered github.com home page on 14 October 2026 and is not affiliated with or endorsed by GitHub. Names and roles are inferred; the values are what the page displayed.
Contact PikSpec
Email support@pikspec.com for support, privacy requests or content reports.