MozaikaLive decode

Sourcegraph — decoded design system

sourcegraph.com · dark · professional · custom · deep decode — measured live

Sourcegraph'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.

Open in Mozaika →

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/sourcegraph.com.

Decoded design system

Sourcegraph's decoded design system: background #0E0D0D, text #ECECEE, accent #F34E3F, link #111111, primary #9E9EFF; type scale h1 80px / h2 72px / body 16px; 4px spacing base; 8px base radius. The single interactive/action color is #F8F8F8 — used only on interactive or must-notice elements (buttons, links, key highlights), never on large fills.

Color roles

RoleValue
bg#0E0D0D
surface#1B1A1A
border#2F2E2E
text#ECECEE
text_muted#979798
primary#9E9EFF
accent#F34E3F
link#111111
secondary#410604
button_bg#F8F8F8
button_text#020202

Using these colors

Typography

Spacing

Radii

Shadows (elevation)

Motion

Micro-interactions run at 150ms (dominant) with ease.

Native design tokens

TokenValue
--osano-clear-dialog-backgroundrgba(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-colorrgba(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)

Layout (measured)

Motion choreography (measured)

Load order: div.marquee-trackdiv.monitor-feedpath.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)

Install it

Drop this measured system into any shadcn/Tailwind project in one command:

npx shadcn add mozaika.design/r/decode/sourcegraph.com

registry item · or query it over MCP: get_design_system("Sourcegraph")

Export: DESIGN.md

# Sourcegraph — Design System

> dark, professional, medium, custom — deep decode (measured live)

## Colors

| Role | Value |
|------|-------|
| bg | `#0E0D0D` |
| surface | `#1B1A1A` |
| border | `#2F2E2E` |
| text | `#ECECEE` |
| text_muted | `#979798` |
| primary | `#9E9EFF` |
| accent | `#F34E3F` |
| link | `#111111` |
| secondary | `#410604` |
| button_bg | `#F8F8F8` |
| button_text | `#020202` |

**Using these colors**

- **Action color** `#F8F8F8` — the single interactive color; it appears only on things you click or must notice (buttons, key highlights), never on large fills or backgrounds.
- **accent** `#F34E3F` — accent for emphasis — keep it rare on the page.
- **primary** `#9E9EFF` — a brand color — but the call-to-action uses #F8F8F8, not this.
- **link** `#111111` — 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: 4px
- 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.
Mozaika is an MCP-native design-reference library for AI coding agents: real products decoded into measured design systems, full-page screens, sliced sections with per-section specs, and ordered user flows. Connect your agent over MCP.

An automated reading of Sourcegraph's publicly-visible CSS (colors, fonts, spacing, motion) — not affiliated with sourcegraph.com. No screenshots stored. Removal requests: hello@mozaika.design.