Skip to main content
GitHub

GitHub DESIGN.md design system & style guide

Developer ToolsFreev1.0.0 (Latest)

GitHub's design system uses Forest Green (#08872B) as the primary color and Mona Sans & Mona Sans Mono for type. This DESIGN.md records 12 colors and 102 design tokens from github.com.

github.com•Linked Nov 20, 2026, 04:00 AM•Reviewed by Bestony

Developer platform with a light paper theme, green-tinted gray scale, Mona Sans typography, and playful per-product accent colors.

Showing 12 of 12 colors
Light (51%)
Aa Test Sample#B6BFB8
outline
rgb(182, 191, 184)
Dark (18%)
Aa Test Sample#08872B
primary
rgb(8, 135, 43)
Light (100%)
Aa Test Sample#FFFFFF
surface
rgb(255, 255, 255)
Dark (20%)
Aa Test Sample#0377FF
secondary
rgb(3, 119, 255)
Light (100%)
Aa Test Sample#FFFFFF
on-primary
rgb(255, 255, 255)
Dark (0%)
Aa Test Sample#000000
on-surface
rgb(0, 0, 0)
Light (68%)
Aa Test Sample#D2D9D4
outline-variant
rgb(210, 217, 212)
Dark (0%)
Aa Test Sample#000000
surface-inverse
rgb(0, 0, 0)
Light (91%)
Aa Test Sample#F2F5F3
surface-container
rgb(242, 245, 243)
Light (100%)
Aa Test Sample#FFFFFF
on-surface-inverse
rgb(255, 255, 255)
Dark (12%)
Aa Test Sample#58635B
on-surface-variant
rgb(88, 99, 91)
Light (82%)
Aa Test Sample#E4EBE6
surface-container-high
rgb(228, 235, 230)

Design Guidelines

Overview

GitHub's homepage speaks to working developers with quiet confidence: a paper-white canvas, green-tinted grays, and product UI screenshots doing the persuading. The hero pairs a huge medium-weight headline ("Software still starts with you") with an inline email capture — green button, no ornament. Sections below showcase Copilot and the platform inside framed app mockups on a subtle blue-gray grid, separated by a rainbow-gradient hairline. Mood: precise, modern, human — engineering warmth rather than corporate gloss.

Colors

  • Sign-up Green (#08872B): The primary action color — "Sign up for GitHub" and key CTAs. Deeper than the neon scale greens (#0FBF3E, #23EA57) reserved for decorative accents.
  • Link Blue (#0377FF): Inline links and informational accents.
  • Paper Neutrals (#F2F5F3, #E4EBE6, #D2D9D4, #B6BFB8): A custom gray scale shifted slightly green — fills, borders, and the grid-tinted section backgrounds. Never use pure neutral grays.
  • Ink & Slate (#000000, #58635B): Headline black plus a green-gray secondary for body text, captions, and borders on quiet controls.
  • Product Accents: Playful saturated tones — Copilot purple (#C898FD), pink (#FF80D2), sky (#5FB9FF), mint (#0FBF3E) — used in the rainbow divider, eyebrow banners, and per-product illustration, never for core UI chrome.
  • Black: The "Sign up" nav button and the dark footer band invert to solid black fills with white text.

Typography

Mona Sans everywhere — a variable grotesque run at medium weights, tighter tracking as size grows. Display headlines hit ~80px at weight 500 with -0.03em tracking; section headers 32–48px; body 16–20px; UI labels 14px/500. Code and CLI snippets switch to Mona Sans Mono. Headlines are sentence case, plain-spoken.

Layout

A centered 1280px column; hero is full-width and minimal. Product sections present framed app screenshots on a faint engineering-grid backdrop — the grid signals "built by developers" without a single drop shadow. The footer inverts to near-black with a multi-column link grid. Section rhythm: 40–64px vertical gaps, 24px gutters.

Elevation & Depth

Almost flat: depth comes from the gray-scale steps and 1px #B6BFB8/#D2D9D4 borders. Interactive lift is minimal — buttons keep the same footprint and shift shade on hover. The app mockups sit inside bordered frames on the grid, not on shadows.

Shapes

Controls use GitHub's classic 6px radius; inputs and sign-up controls share it. Marketing pills (filter chips, eyebrow banners) go fully rounded; nav dropdowns and large cards reach 24px. The mix is deliberate: crisp 6px for anything functional, pills for anything decorative/filter-like.

Motion & Micro-interaction

Uniform 200ms transitions — ease for background/border color, and the GitHub signature cubic-bezier(0.16,1,0.3,1) spring-out curve for elements that surface or expand. No looping decoration; the Mascot peeking over the hero fold is the only whimsy.

Voice & Content Strategy

Plain, confident, developer-native. Headlines are short declaratives ("Software still starts with you", "Let Copilot handle the models"). CTAs name the outcome: "Sign up for GitHub", "Download GitHub Copilot app", "Start Enterprise free trial". Stats are numeric and concrete ("800M+", "98%"). Sentence case throughout; no exclamation points.

Components

  • Primary button: Green fill (#08872B), white 14px/500 label, 6px radius, ~43px height — sign-up flows only.
  • Secondary/outline button: White fill with a #D2D9D4 1px border, ink label, same sizing — for download/alternate actions.
  • Dark button: Black fill, white label — nav "Sign up" and footer emphasis.
  • Email input: Green-gray fill (#F2F5F3), no visible border until focus, 43px tall, sits inline with the primary button.
  • Search field: White, #B6BFB8 border, 6px radius, keyboard-hint "/" badge.
  • Pill chips: Fully rounded (#F2F5F3 fill) for tab-like filters such as "Review requests".
  • Product cards: White 8px-radius cards pairing a UI screenshot with a product wordmark row — each tinted by its accent color.
  • Nav links: 14px labels, pill hover fill, dropdown menus with 24px-radius containers.

Do's and Don'ts

  • Do use the green-tinted gray scale — pure grays (#EEE, #999) break the paper feel.
  • Do reserve #08872B for the one primary action per view; decorative greens live in artwork.
  • Do keep functional controls at 6px radius and pills at fully rounded — don't pick values in between.
  • Do pair headlines in Mona Sans at weight 500 — not bold — with tight negative tracking at display sizes.
  • Don't add drop shadows to cards or inputs; use hairline borders on paper surfaces.
  • Don't use accent purples/pinks for links, errors, or button fills.
  • Don't write marketing adjectives — short declaratives and concrete numbers only.
  • Do keep the dark nav/footer bands as solid black — no charcoal gradients.

How to use GitHub's DESIGN.md with an AI agent

  1. Get GitHub's DESIGN.md

    Download it from this page, fetch https://www.designmdpro.app/websites/github.md, or call the get_design_md tool with slug "github" from the DesignMD Pro MCP server.

  2. Save it as DESIGN.md in your project root

    Put the file next to AGENTS.md or CLAUDE.md so Claude Code, Cursor, Codex and other coding agents can find it.

  3. Ask your agent to follow it

    For example: "Build the settings page following the GitHub design system in DESIGN.md — use its colors, typography and spacing tokens."

GitHub style AI prompt

Build a responsive landing page in the visual style of GitHub (github.com), following its DESIGN.md design system.

## Colors
- outline: #B6BFB8
- primary: #08872B
- surface: #FFFFFF
- secondary: #0377FF
- on-primary: #FFFFFF
- on-surface: #000000
- outline-variant: #D2D9D4
- surface-inverse: #000000
- surface-container: #F2F5F3
- on-surface-inverse: #FFFFFF
- on-surface-variant: #58635B
- surface-container-high: #E4EBE6

## Typography
- body-lg: "Mona Sans", 20px, weight 400, line-height 1.5
- code-md: "Mona Sans Mono", 14px, weight 400, line-height 1.5

## Corner radius
- lg: 8px
- md: 6px
- sm: 4px
- xl: 24px
- full: 9999px

## Spacing
- lg: 24px
- md: 16px
- sm: 8px
- xl: 40px
- xs: 4px
- xxl: 64px
- base: 8px
- gutter: 24px

## Components
- nav-link: height 28px, padding 8px, rounded 24px, textColor #000000, typography Mona Sans 14px
- chip-pill: height 42px, padding 16px, rounded 9999px, textColor #58635B, typography Mona Sans 14px, backgroundColor #F2F5F3
- badge-info: padding 8px, rounded 9999px, textColor #000000, typography Mona Sans 14px, backgroundColor {colors.tertiary.sky}
- badge-promo: padding 8px, rounded 9999px, textColor #000000, typography Mona Sans 14px, backgroundColor {colors.tertiary.pink}
- button-dark: height 28px, padding 8px, rounded 6px, textColor #FFFFFF, typography Mona Sans 14px, backgroundColor #000000
- input-email: height 43px, padding 24px, rounded 6px, textColor #000000, typography Mona Sans 16px, backgroundColor #F2F5F3

## Rules
- Use only the colors above for backgrounds, text, borders and accents; do not invent new colors.
- Set all text with the typography styles above and keep their size and weight hierarchy.
- Take corner radius and spacing from the scales above so components look consistent.

Full DESIGN.md: https://www.designmdpro.app/websites/github.md
Customize in the V0 prompt generator →

Frequently asked questions

What is GitHub's primary color?

GitHub's primary brand color is Forest Green (#08872B). Its DESIGN.md defines 12 color tokens in total.

What font does GitHub use?

GitHub's primary typefaces are Mona Sans and Mona Sans Mono.

Is Mona Sans a free font?

Yes. Mona Sans is free and open source, and available on Google Fonts.

How do I use GitHub's design tokens in Tailwind CSS or shadcn/ui?

Download this DESIGN.md and paste it into the Tailwind theme generator or the shadcn theme generator to get a ready-to-use theme with GitHub's primary color #08872B and the rest of its tokens.

Is this GitHub DESIGN.md official?

No. DesignMD Pro extracted it from the public github.com website. It is not affiliated with or endorsed by GitHub.

When was GitHub's DESIGN.md last updated?

Version 1.0.0 was captured on November 20, 2026.

Add to Google favorites

GitHub and its trademarks belong to their respective owners. DesignMD Pro is an independent project, not affiliated with or endorsed by GitHub; this DESIGN.md is extracted from the public website for reference only.