GitHub Mobile — decoded design system
GitHub Mobile's design system, decoded live by Mozaika: measured color roles, type scale, buttons with real hover/focus states, motion and the brand's own tokens.
This is a static, crawlable rendering for search & AI engines. The interactive version — filters, live decode console, copy & export — is at https://mozaika.design/decode/github.com.
Decoded design system
GitHub Mobile's decoded design system: background #0D1117, text #F0F6FC, accent #6839BE, link #000000, primary #6839BE; type scale h1 64px / h2 40px / body 18px; 4px spacing base; 12px base radius. The single interactive/action color is #08872B — used only on interactive or must-notice elements (buttons, links, key highlights), never on large fills.
Color roles
| Role | Value |
|---|---|
| bg | #0D1117 |
| surface | #1A1E24 |
| border | #2F3339 |
| text | #F0F6FC |
| text_muted | #999EA4 |
| primary | #6839BE |
| accent | #6839BE |
| link | #000000 |
| button_bg | #08872B |
| button_text | #FFFFFF |
Using these colors
- Action color
#08872B— the single interactive color; only on things you click or must notice, never large fills. primary,accentare all#6839BE— one role, not several (the action color).- accent
#6839BE— accent for emphasis — keep it rare on the page. - link
#000000— fails contrast on the background (~1.1:1) — this is a dark UI color, NOT a readable link; use the text or action color for links (verify against the reference).
Typography
- Heading: Mona Sans
- Body: Mona Sans
- h1: 64px
- h2: 40px
- body: 18px
Spacing
- base unit: 4px
- scale: 2px, 3px, 4px, 8px, 12px, 16px, 20px, 24px, 32px, 48px
Radii
- base: 12px
- button: 6px
Motion
Micro-interactions run at 200ms (dominant) with cubic-bezier(0.165, 0.84, 0.44, 1).
- durations: 200ms · 300ms · 800ms
- easings:
cubic-bezier(0.165, 0.84, 0.44, 1)·ease-out - animated properties: transform, opacity, color, background-color
Native design tokens
| Token | Value |
|---|---|
--color-workflow-card-bg | #151b23 |
--color-workflow-card-header-shadow | #1b1f230a |
--color-bg-discussions-row-emoji-box | #57606a |
--color-notifications-row-read-bg | #0d1117 |
--color-notifications-row-bg | #151b23 |
--color-user-mention-fg | #d29922 |
--color-mktg-btn-shadow-outline | #ffffff40 0 0 0 1px inset |
--color-marketing-icon-primary | #79c0ff |
--color-marketing-icon-secondary | #1f6feb |
--color-project-header-bg | #0d1117 |
…and 110 more measured on the page.
Button states (measured)
- primary hover: background
color(srgb 0.0263529 0.444706 0.141647) - primary focus: outline
4px solid rgb(3, 119, 255)
Layout (measured)
- container max-width:
1280px - nav: 72px absolute
- common grid: 12 columns
Motion choreography (measured)
Load order: div.lp-Intro → div.Primer_Brand__LogoSuite-×2 → p.Primer_Brand__Text-modul×2 → p.Primer_Brand__Text-modul×2 → div.BackToTop×2
Scroll reveal: 15 elements rest at opacity 0, translateY(24px), animate in over 0.8s cubic-bezier(0.2, 0.4, 0.2, 1).
Stagger: div ×3 — 100ms apart.
Input (measured)
height 41px · radius 8px
Responsive (measured)
- breakpoints: 544px · 750px · 768px · 804px · 1011px · 1280px
- mobile (390px): hero 32px · nav inline
Install it
Drop this measured system into any shadcn/Tailwind project in one command:
npx shadcn add mozaika.design/r/decode/github.com
Or as a Meta Astryx theme — a ready defineTheme file with the measured hover/press states baked in:
curl -o src/themes/github.theme.ts https://mozaika.design/api/astryx/decode/github.com.ts
registry item · astryx theme · or query it over MCP: get_design_system("GitHub Mobile")
Export: DESIGN.md
# GitHub Mobile — Design System > light, consumer, high — deep decode (measured live) ## Colors | Role | Value | |------|-------| | bg | `#0D1117` | | surface | `#1A1E24` | | border | `#2F3339` | | text | `#F0F6FC` | | text_muted | `#999EA4` | | primary | `#6839BE` | | accent | `#6839BE` | | link | `#000000` | | button_bg | `#08872B` | | button_text | `#FFFFFF` | **Using these colors** - **Action color** `#08872B` — the single interactive color; it appears only on things you click or must notice (buttons, key highlights), never on large fills or backgrounds. - `primary`, `accent` are all `#6839BE` — one role, not several. - **accent** `#6839BE` — accent for emphasis — keep it rare on the page. - **link** `#000000` — fails contrast on the background (~1.1:1) — this is a dark UI color, NOT a readable link; use the text or action color for links (verify against the reference). - **Page coverage** (full-page screenshot pixels): `#0F103B` 65% · `#332E7A` 13.7% · `#191851` 11.3% · `#918DC8` 10% ## Typography - Heading: **Mona Sans** _(free fallback: Newsreader)_ - Body: **Mona Sans** _(free fallback: Newsreader)_ | Role | Size / weight · line-height · tracking | |------|------------------------------------------| | hero | 64px / 425 · lh 69px · tracking -2.24px | | h2 | 40px / 460 · lh 48px | | h3 | 22px / 480 · lh 31px | | body | 18px / 400 · lh 27px · tracking 0.18px | | small | 16px / 400 · lh 24px · tracking 0.24px | - Weight ladder: 400 · 460 · 480 · 500 · 600 — use these exact measured weights, not the 400/600 defaults. > **Fonts —** Mona Sans may be proprietary — safe free fallback: Newsreader (Google Fonts). ## Spacing - base unit: 4px (inferred from the measured scale) - measured scale: 2px, 3px, 4px, 8px, 12px, 16px, 20px, 24px, 32px, 48px — snap all gaps/padding to these - section rhythm: 64px top/bottom padding per section (measured) ## Radius - base: 12px - button: 6px - card: 6px - pill: 9999px - sharp: 3px ## Buttons | Button | Fill / text | Border | Radius | Padding | Font | Shadow | |--------|-------------|--------|--------|---------|------|--------| | primary | `#08872B` / `#FFFFFF` | 1px solid rgba(0, 0, 0, 0) | 6px | 6px 20px 6px 20px | 400 16px | none | | secondary | `rgba(0, 0, 0, 0)` / `#FFFFFF` | 1px solid rgb(209, 217, 224) | 6px | 4px 12px 4px 12px | 400 14px | none | **States (measured, not guessed)** - primary hover: background `color(srgb 0.0263529 0.444706 0.141647)` - primary focus: outline `4px solid rgb(3, 119, 255)` - transition: `background-color 0.48s cubic-bezier(0.165, 0.84, 0.44, 1)` ## Motion - durations: 200ms (dominant) · 300ms · 800ms - easings: `cubic-bezier(0.165, 0.84, 0.44, 1)` (dominant) · `ease-out` - animated properties: transform, opacity, color, background-color Micro-interactions use the dominant duration + easing; nothing on the page animates slower than the longest duration above — don't invent springier motion. ## Their own tokens (verbatim from :root) | Token | Value | |-------|-------| | `--color-workflow-card-bg` | `#151b23` | | `--color-workflow-card-header-shadow` | `#1b1f230a` | | `--color-bg-discussions-row-emoji-box` | `#57606a` | | `--color-notifications-row-read-bg` | `#0d1117` | | `--color-notifications-row-bg` | `#151b23` | | `--color-user-mention-fg` | `#d29922` | | `--color-mktg-btn-shadow-outline` | `#ffffff40 0 0 0 1px inset` | | `--color-marketing-icon-primary` | `#79c0ff` | | `--color-marketing-icon-secondary` | `#1f6feb` | | `--color-project-header-bg` | `#0d1117` | | `--color-project-sidebar-bg` | `#161b22` | | `--color-project-gradient-in` | `#161b22` | _…and 108 more measured on the page._ Prefer these names when extending their system — it's the brand's actual vocabulary. ## Layout (measured) - container max 1280px · common grid: 12-col - nav: 72px absolute | Section (y) | Height | Cols | Gap | Pad y | Split | |---|---|---|---|---|---| | 0 | 1907 | — | — | 0/0 | — | | 166 | 209 | 12 | 48 | 0/0 | — | | 1907 | 2276 | — | — | 0/0 | — | | 2388 | 658 | — | — | 0/0 | — | | 3047 | 577 | 12 | — | 0/0 | — | | 3624 | 559 | 12 | — | 0/0 | — | | 4183 | 1888 | — | — | 0/0 | — | | 4430 | 172 | — | — | 0/0 | — | ## Motion choreography (measured) Load order: `div.lp-Intro` @0ms → `div.Primer_Brand__LogoSuite-`×2 @1ms → `p.Primer_Brand__Text-modul`×2 @382ms → `p.Primer_Brand__Text-modul`×2 @382ms → `div.BackToTop`×2 @382ms - stagger: `div` ×3 — 100ms apart - scroll reveal: 15 elements rest at opacity 0, translateY(24px), animate in over 0.8s cubic-bezier(0.2, 0.4, 0.2, 1) (12 revealed during the drive). Rebuild the timeline, not just the durations — order, delays and staggers above are the choreography. ## Components (measured) - input: h 41px · r 8px · bg rgba(0, 0, 0, 0) · placeholder #58635B - link: #8DD6FF · no underline ## Responsive (measured) - breakpoints: 544px · 750px · 768px · 804px · 1011px · 1280px - mobile (390px): hero 32px · body 14px · nav: inline ## How to apply Paste the Tailwind `@theme` (or CSS variables) as your base, then build each section to its spec — verify every color, radius, and font against these tokens. Hover/focus states, shadows and motion timings above are measured from the live page — match them exactly, don't re-guess them. --- > **Decoded with Mozaika** — measured live, not guessed. Full decoded design system + one-command install: mozaika.design/decode/github.com
An automated reading of GitHub Mobile's publicly-visible CSS (colors, fonts, spacing, motion) — not affiliated with github.com. No screenshots stored. Removal requests: hello@mozaika.design.