Skip to main content
PikSpec

Measured design system

GitHub design system

The fonts, colours, type scale, spacing and corner radii of github.com, measured from its home page with PikSpec.

In short: GitHub’s website uses Mona Sans for headings and body text. Mona Sans is free on Google Fonts. 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.

Updated

What font does GitHub use?

GitHub’s website uses Mona Sans for headings and body text. Mona Sans is free on Google Fonts.

FontUsed forWeightsFree to use?
Mona SansBody400, 425, 440, 460, 480, 500, 600, 800Yes, Google Fonts
Mona SansCSS name: Mona Sans VFInterface400, 600Yes, Google Fonts (Mona Sans)
Mona Sans MonoCode400, 480, 500Licensed. 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.

  • #0D1117
    61.5% · backgrounds
  • #000000
    33.6% · backgrounds
  • #0F1511
    1.7% · backgrounds
  • #FFFFFF
    1.2% · text
  • #151A22
    1.1% · backgrounds
  • #A4AEA6
    0.6% · text
  • #A2DAFF
    0.1% · text
  • #7C8980
    0.1% · text
  • #21262D
    hairlines and grid lines
  • #5FED83
    small marks

Type scale

Each size the page sets text in, with its weight and line height. GitHub’s largest type is 64px at weight 425.

StyleSizeWeightLine heightFont
Display Large64px42569.12pxMona Sans
Display Medium48px44056.64pxMona Sans
Display Small40px46048pxMona Sans
Headline24px60036pxMona Sans
Title Large22px40030.8pxMona Sans
Title Small18px40027pxMona Sans
Body Large16px40024pxMona Sans
Body Small14px40021pxMona 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.

Download GitHub DESIGN.md · View it as text

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.