Sourcegraph — Design System
Sourcegraph stages code intelligence as noir: Poly Sans at 80px/500 — single words like 'Understand.' as full sections — in off-white on near-black, body at a lecture 22px, and coral #F34E3F buttons as the alarm color. Terminal panels and agent logs glow in the dark; enterprise code search styled like the situation room it wants to be for your codebase.
This is a static, crawlable rendering for search & AI engines. The interactive version — filters, live decode console, copy & export — is at https://mozaika.design/ds/sourcegraph.
Tokens
Sourcegraph's decoded design system: background #0E0D0D, text #ECECEE, accent #F34E3F, link #080E2C, primary #9E9EFF; type scale h1 80px / h2 34px / body 22px; 4px spacing base; 8px base radius. The single interactive/action color is #F34E3F — used only on interactive or must-notice elements (buttons, links, key highlights), never on large fills.
Color roles
| Role | Value |
|---|---|
| bg | #0E0D0D |
| surface | #1B1A1A |
| border | #2F2E2E |
| text | #ECECEE |
| text_muted | #979798 |
| primary | #9E9EFF |
| accent | #F34E3F |
| link | #080E2C |
| secondary | #410604 |
| button_bg | #F34E3F |
| button_text | #FFFFFF |
Using these colors
- Action color
#F34E3F— the single interactive color; only on things you click or must notice, never large fills. accent,button_bgare all#F34E3F— one role, not several (the action color).- accent
#F34E3F— THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed. - primary
#9E9EFF— a brand color — but the call-to-action uses #F34E3F, not this. - link
#080E2C— fails contrast on the background (~1.0:1) — this is a dark UI color, NOT a readable link; use the text or action color for links (verify against the reference). - secondary
#410604— optional secondary accent — LOW decode confidence; use rarely (a status color or a single decorative moment) or omit it entirely. Prefer one accent unless the reference clearly shows two.
Typography
- Heading: Poly Sans
- Body: Poly Sans
- Mono: Poly Sans Mono
- h1: 80px
- h2: 34px
- body: 22px
Spacing
- base unit: 4px
- scale: 3px, 4px, 6px, 8px, 10px, 12px, 14px, 16px, 24px, 32px
Radii
- base: 8px
- button: 8px
Shadows (elevation)
- subtle:
rgba(0, 0, 0, 0.06) 0px 1px 2px 0px, rgba(0, 0, 0, 0.06) 0px 4px 8px 0px, rgba(0, 0, 0, 0.08) 0px 12px 24px 0px - card:
rgba(0, 0, 0, 0.08) 0px 4px 24px 0px, rgba(0, 0, 0, 0.05) 0px 1px 4px 0px - overlay:
rgba(0, 0, 0, 0.5) 0px 12px 40px 0px
Motion
Micro-interactions run at 150ms (dominant) with ease.
- durations: 150ms · 500ms · 300ms
- easings:
ease·cubic-bezier(0.4, 0, 0.2, 1) - animated properties: color, opacity, transform, stroke-dashoffset
Native design tokens
| Token | Value |
|---|---|
--osano-clear-dialog-background | rgba(255,254,254,0) |
--osano-button-border-color | #fff |
--osano-button-background-color | #f8f8f8 |
--osano-button-foreground-color | #020202 |
--osano-dialog-background-color | #0e0e0e |
--osano-dialog-foreground-color | #FFFFFF |
--osano-info-dialog-overlay-color | rgba(0,0,0,0.45) |
--osano-link-color | #f8f8f8 |
--osano-toggle-off-track-color | #080000 |
--osano-toggle-off-thumb-color | #FFFFFF |
…and 110 more measured on the page.
Button states (measured)
- primary hover: background
#E4E4E4 - primary focus: background
#E4E4E4· outline3px solid rgba(0, 65, 198, 0.8)
Layout (measured)
- container max-width:
1152px - nav: 103px sticky
- common grid: 2 columns
Motion choreography (measured)
Load order: div.marquee-track → div.monitor-feed → path.graph-pulse×7 → path.connector-pulse×8 → span.typing-cursor×3 → circle.pulse-dot×2
Scroll reveal: 4 elements rest at opacity 0, translateY(20px), animate in over 0.35s ease.
Stagger: span ×5 — 70ms apart.
Stagger: circle ×5 — 1500ms apart.
Overlay recipe (measured)
dialog panel: #0E0E0E · radius 0px
Responsive (measured)
- breakpoints: 576px · 768px · 992px
- mobile (390px): hero 40px · nav inline
Per-section tokens (11)
- Hero — dark · bg #020202 · text #474242 · 1 col · left
- Logo Wall — dark · bg #090909 · text #1E1D1D · 2 col · split
- Feature — dark · bg #020202 · text #616061 · 1 col · center
- Feature — dark · bg #020202 · text #5A5A9E · 1 col · left
- Testimonial / Social Proof — light · bg #FFFFFF · text #020202 · 1 col · left
- Feature — light · bg #FFFFFF · text #DCD9D9 · 1 col · left
- Feature — light · bg #FFFFFF · text #C2C4C8 · 1 col · left
- Feature — light · bg #FFFFFF · text #9B9A9F · 1 col · left
- Feature — dark · bg #020202 · text #FFFFFF · 1 col · left
- CTA / Sign-up — dark · bg #090909 · text #FFFFFF · 1 col · left
- Footer — dark · bg #020202 · text #FFFFFF · 1 col · left
Export: DESIGN.md
# Sourcegraph — Design System > dark, professional, medium, custom — deep decode (measured live) Sourcegraph stages code intelligence as noir: Poly Sans at 80px/500 — single words like 'Understand.' as full sections — in off-white on near-black, body at a lecture 22px, and coral #F34E3F buttons as the alarm color. Terminal panels and agent logs glow in the dark; enterprise code search styled like the situation room it wants to be for your codebase. ## Colors | Role | Value | |------|-------| | bg | `#0E0D0D` | | surface | `#1B1A1A` | | border | `#2F2E2E` | | text | `#ECECEE` | | text_muted | `#979798` | | primary | `#9E9EFF` | | accent | `#F34E3F` | | link | `#080E2C` | | secondary | `#410604` | | button_bg | `#F34E3F` | | button_text | `#FFFFFF` | **Using these colors** - **Action color** `#F34E3F` — the single interactive color; it appears only on things you click or must notice (buttons, key highlights), never on large fills or backgrounds. - `accent`, `button_bg` are all `#F34E3F` — one role, not several (your action color). - **accent** `#F34E3F` — THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed. - **primary** `#9E9EFF` — a brand color — but the call-to-action uses #F34E3F, not this. - **link** `#080E2C` — fails contrast on the background (~1.0:1) — this is a dark UI color, NOT a readable link; use the text or action color for links (verify against the reference). - **secondary** `#410604` — optional secondary accent — LOW decode confidence; use rarely (a status color or a single decorative moment) or omit it entirely. Prefer one accent unless the reference clearly shows two. - **Page coverage** (full-page screenshot pixels): `#020202` 88.2% · `#7B7574` 7.5% · `#310201` 4.3% ## Typography - Heading: **Poly Sans** _(free fallback: Newsreader)_ - Body: **Poly Sans** _(free fallback: Newsreader)_ - Mono: **Poly Sans Mono** | Role | Size / weight · line-height · tracking | |------|------------------------------------------| | hero | 80px / 500 · lh 77px · tracking -2.48px | | h2 | 72px / 500 · lh 50px · tracking -2.23px | | h3 | 56px / 500 · lh 60px · tracking -0.5px | | body | 16px / 400 · lh 20px | | small | 15px / 400 · lh 23px · tracking 0.26px | - Weight ladder: 300 · 400 · 500 · 600 · 700 — use these exact measured weights, not the 400/600 defaults. > **Fonts —** Poly Sans may be proprietary — safe free fallback: Newsreader (Google Fonts). ## Spacing - base unit: 4px (inferred from the measured scale) - measured scale: 3px, 4px, 6px, 8px, 10px, 12px, 14px, 16px, 24px, 32px — snap all gaps/padding to these - section rhythm: 56px top/bottom padding per section (measured) ## Radius - base: 8px - button: 8px - card: 8px - pill: 9999px - sharp: 2px ## Buttons | Button | Fill / text | Border | Radius | Padding | Font | Shadow | |--------|-------------|--------|--------|---------|------|--------| | primary | `#F8F8F8` / `#020202` | 1px solid rgb(255, 255, 255) | 4px | 8px 12px 8px 12px | 700 16px | none | | secondary | `#222222` / `#DEDEDE` | 1px solid oklch(0.35 0 0) | 6px | 6.4px 14.4px 6.4px 14.4px | 600 13px / 0.256px | none | **States (measured, not guessed)** - primary hover: background `#E4E4E4` - primary focus: background `#E4E4E4` · outline `3px solid rgba(0, 65, 198, 0.8)` - secondary hover: background `#2E2E2E` - transition: `background-color 0.2s ease-out` ## Shadows (elevation) - subtle: `rgba(0, 0, 0, 0.06) 0px 1px 2px 0px, rgba(0, 0, 0, 0.06) 0px 4px 8px 0px, rgba(0, 0, 0, 0.08) 0px 12px 24px 0px` - card: `rgba(0, 0, 0, 0.08) 0px 4px 24px 0px, rgba(0, 0, 0, 0.05) 0px 1px 4px 0px` - overlay: `rgba(0, 0, 0, 0.5) 0px 12px 40px 0px` ## Motion - durations: 150ms (dominant) · 500ms · 300ms - easings: `ease` (dominant) · `cubic-bezier(0.4, 0, 0.2, 1)` - animated properties: color, opacity, transform, stroke-dashoffset 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 | |-------|-------| | `--osano-clear-dialog-background` | `rgba(255,254,254,0)` | | `--osano-button-border-color` | `#fff` | | `--osano-button-background-color` | `#f8f8f8` | | `--osano-button-foreground-color` | `#020202` | | `--osano-dialog-background-color` | `#0e0e0e` | | `--osano-dialog-foreground-color` | `#FFFFFF` | | `--osano-info-dialog-overlay-color` | `rgba(0,0,0,0.45)` | | `--osano-link-color` | `#f8f8f8` | | `--osano-toggle-off-track-color` | `#080000` | | `--osano-toggle-off-thumb-color` | `#FFFFFF` | | `--osano-toggle-on-track-color` | `#606060` | | `--osano-toggle-on-thumb-color` | `#FFFFFF` | _…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 1152px · common grid: 2-col - nav: 103px sticky | Section (y) | Height | Cols | Gap | Pad y | Split | |---|---|---|---|---|---| | 103 | 1318 | — | — | 0/0 | — | | 739 | 731 | — | — | 0/32 | — | | 1437 | 349 | — | — | 0/0 | — | | 1786 | 504 | — | — | 0/0 | — | | 2290 | 2401 | — | — | 0/0 | — | | 4691 | 764 | 2 | 24 | 0/0 | 86/14 | ## Motion choreography (measured) Load order: `div.marquee-track` @0ms → `div.monitor-feed` @199ms → `path.graph-pulse`×7 @240ms → `path.connector-pulse`×8 @240ms → `span.typing-cursor`×3 @240ms → `circle.pulse-dot`×2 @305ms - `span.hero-word` ×5 — opacity 0→1 · transform translateY(40px) scale(0.95)→translateY(0px) scale(1) · filter blur(8px)→blur(0px) — 600ms cubic-bezier(0.16, 1, 0.3, 1) (delay 80ms) - `p.hero-description` — opacity 0→1 · transform translateY(20px)→translateY(0px) — 800ms ease (delay 550ms) - `a.hero-cta` — opacity 0→1 · transform translateY(20px)→translateY(0px) — 800ms ease (delay 700ms) - `circle.pulse-ring` ×3 — opacity 0.15→0.15 — 3000ms ease-in-out · loops - `circle.pulse-dot` ×2 — opacity 0.7→0.7 — 3000ms ease-in-out · loops - `circle.pulse-core` — opacity 0.7→0.7 — 2000ms ease-in-out · loops - stagger: `span` ×5 — 70ms apart - stagger: `circle` ×5 — 1500ms apart - scroll reveal: 4 elements rest at opacity 0, translateY(20px), animate in over 0.35s ease (0 revealed during the drive). - overlay dialog (auto-opened): panel #0E0E0E · r 0px Rebuild the timeline, not just the durations — order, delays and staggers above are the choreography. ## Components (measured) - link: #DEDEDE · no underline ## Responsive (measured) - breakpoints: 576px · 768px · 992px - mobile (390px): hero 40px · body 16px · 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/ds/sourcegraph
Export: Tailwind v4 (@theme)
@theme {
/* action color #F34E3F — the one interactive color; buttons/links/emphasis only, never large fills. */
--color-bg: #0E0D0D;
--color-surface: #1B1A1A;
--color-border: #2F2E2E;
--color-text: #ECECEE;
--color-text-muted: #979798;
--color-primary: #9E9EFF; /* a brand color — but the call-to-action uses #F34E3F, not this. */
--color-accent: #F34E3F; /* THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed. */
--color-link: #080E2C; /* fails contrast on the background (~1.0:1) — this is a dark UI color, NOT a readable link; use the text or action color for links (verify against the reference). */
--color-secondary: #410604; /* optional secondary accent — LOW decode confidence; use rarely (a status color or a single decorative moment) or omit it entirely. Prefer one accent unless the reference clearly shows two. */
--color-button-bg: #F34E3F; /* primary-button fill — the main call-to-action color. */
--color-button-text: #FFFFFF;
/* fonts: Poly Sans may be proprietary — safe free fallback: Newsreader (Google Fonts). */
--font-heading: "Poly Sans", "Newsreader", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-body: "Poly Sans", "Newsreader", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-mono: "Poly Sans Mono", ui-monospace, monospace;
/* measured weights: 300, 400, 500, 600, 700 — use these, not 400/600 */
--text-hero: 80px; --font-weight-hero: 500; --leading-hero: 77px; --tracking-hero: -2.48px;
--text-h2: 72px; --font-weight-h2: 500; --leading-h2: 50px; --tracking-h2: -2.23px;
--text-h3: 56px; --font-weight-h3: 500; --leading-h3: 60px; --tracking-h3: -0.5px;
--text-body: 16px; --font-weight-body: 400; --leading-body: 20px;
--text-small: 15px; --font-weight-small: 400; --leading-small: 23px; --tracking-small: 0.26px;
--radius-base: 8px;
--radius-button: 8px;
--radius-card: 8px;
--radius-pill: 9999px;
--radius-sharp: 2px;
--shadow-card: rgba(0, 0, 0, 0.08) 0px 4px 24px 0px, rgba(0, 0, 0, 0.05) 0px 1px 4px 0px;
--shadow-overlay: rgba(0, 0, 0, 0.5) 0px 12px 40px 0px;
--shadow-subtle: rgba(0, 0, 0, 0.06) 0px 1px 2px 0px, rgba(0, 0, 0, 0.06) 0px 4px 8px 0px, rgba(0, 0, 0, 0.08) 0px 12px 24px 0px;
--color-btn-hover: #E4E4E4; /* measured primary hover fill */
--outline-focus: 3px solid rgba(0, 65, 198, 0.8); /* measured focus ring */
--ease-brand: ease;
--duration-fast: 150ms; /* use: duration-[var(--duration-fast)] */
--duration-base: 300ms;
--duration-slow: 500ms;
--section-y: 56px; /* per-section vertical padding (measured) */
--spacing: 4px; /* measured base — drives the p-*/gap-* scale. steps seen on the page: 3, 4, 6, 8, 10, 12, 14, 16, 24, 32px */
}Export: CSS variables
:root {
/* action color #F34E3F — the one interactive color; buttons/links/emphasis only, never large fills. */
--bg: #0E0D0D;
--surface: #1B1A1A;
--border: #2F2E2E;
--text: #ECECEE;
--text-muted: #979798;
--primary: #9E9EFF; /* a brand color — but the call-to-action uses #F34E3F, not this. */
--accent: #F34E3F; /* THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed. */
--link: #080E2C; /* fails contrast on the background (~1.0:1) — this is a dark UI color, NOT a readable link; use the text or action color for links (verify against the reference). */
--secondary: #410604; /* optional secondary accent — LOW decode confidence; use rarely (a status color or a single decorative moment) or omit it entirely. Prefer one accent unless the reference clearly shows two. */
--button-bg: #F34E3F; /* primary-button fill — the main call-to-action color. */
--button-text: #FFFFFF;
--font-heading: "Poly Sans", "Newsreader", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-body: "Poly Sans", "Newsreader", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-mono: "Poly Sans Mono", ui-monospace, monospace;
--text-hero: 80px; --weight-hero: 500; --leading-hero: 77px; --tracking-hero: -2.48px;
--text-h2: 72px; --weight-h2: 500; --leading-h2: 50px; --tracking-h2: -2.23px;
--text-h3: 56px; --weight-h3: 500; --leading-h3: 60px; --tracking-h3: -0.5px;
--text-body: 16px; --weight-body: 400; --leading-body: 20px;
--text-small: 15px; --weight-small: 400; --leading-small: 23px; --tracking-small: 0.26px;
--radius: 8px;
--radius-button: 8px;
--radius-card: 8px;
--radius-pill: 9999px;
--radius-sharp: 2px;
--shadow-card: rgba(0, 0, 0, 0.08) 0px 4px 24px 0px, rgba(0, 0, 0, 0.05) 0px 1px 4px 0px;
--shadow-overlay: rgba(0, 0, 0, 0.5) 0px 12px 40px 0px;
--shadow-subtle: rgba(0, 0, 0, 0.06) 0px 1px 2px 0px, rgba(0, 0, 0, 0.06) 0px 4px 8px 0px, rgba(0, 0, 0, 0.08) 0px 12px 24px 0px;
--btn-bg-hover: #E4E4E4;
--focus-ring: 3px solid rgba(0, 65, 198, 0.8);
--ease: ease;
--duration-fast: 150ms;
--duration-base: 300ms;
--duration-slow: 500ms;
--section-y: 56px;
}
/* their own tokens, verbatim from the site's :root */
:root {
--osano-clear-dialog-background: rgba(255,254,254,0);
--osano-button-border-color: #fff;
--osano-button-background-color: #f8f8f8;
--osano-button-foreground-color: #020202;
--osano-dialog-background-color: #0e0e0e;
--osano-dialog-foreground-color: #FFFFFF;
--osano-info-dialog-overlay-color: rgba(0,0,0,0.45);
--osano-link-color: #f8f8f8;
--osano-toggle-off-track-color: #080000;
--osano-toggle-off-thumb-color: #FFFFFF;
--osano-toggle-on-track-color: #606060;
--osano-toggle-on-thumb-color: #FFFFFF;
}
/* fonts: Poly Sans may be proprietary — safe free fallback: Newsreader (Google Fonts). */