---
version: alpha
name: Sourcegraph
description: Dark design system extracted from sourcegraph.com (DOM-true values, Emblematic extractor 0.2.0, 2026-11-17).
colors:
  background: "#020202"
  on-surface: "#EDEDED"
  surface: "#000000"
  outline: "#202020"
  on-surface-variant: "#A9A9A9"
  primary: "#F34E3F"
  osano-button-close-color: "#FFFFFF"
  osano-gpc-background-color: "#111111"
  color-9: "#444444"
  color-10: "#410604"
  color-11: "#3A3A3A"
  color-12: "#909090"
  color-13: "#B9CCFF40"
  on-primary: "#FFFFFF"
typography:
  display-lg:
    fontFamily: Poly Sans
    fontSize: 64px
    fontWeight: 500
    lineHeight: 1.1
    letterSpacing: -0.031em
  headline-md:
    fontFamily: Poly Sans
    fontSize: 41.6px
    fontWeight: 500
    lineHeight: 1.28
    letterSpacing: -0.01em
  body-md:
    fontFamily: Poly Sans
    fontSize: 16px
    fontWeight: 300
    lineHeight: 1.5
    letterSpacing: 0.016em
  body-sm:
    fontFamily: Poly Sans
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.5
    letterSpacing: 0.018em
  mono-md:
    fontFamily: Poly Sans Slim Mono
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.5
    letterSpacing: 0.018em
rounded:
  xs: 4px
  sm: 6px
  md: 8px
  lg: 16px
  xl: 32px
  full: 9999px
spacing:
  xxs: 2.5px
  xs: 4px
  sm: 5.5px
  md: 8px
  lg: 9.5px
  xl: 10.5px
  2xl: 12px
  3xl: 15px
  4xl: 16px
  5xl: 24px
  6xl: 32px
  7xl: 40px
  8xl: 48px
  9xl: 56px
  base: 4px
  container: 1152px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.osano-button-close-color}"
    rounded: "{rounded.md}"
    padding: 8px
    height: 30px
  button-secondary:
    backgroundColor: "#222222"
    textColor: "#DEDEDE"
    rounded: "{rounded.sm}"
    padding: 6.4px
    height: 34.3px
---

# Sourcegraph

> Extracted from [https://sourcegraph.com/](https://sourcegraph.com/) on 2026-11-17 by Emblematic. Every value below was read from the rendered DOM (computed styles, `document.fonts`, and the fonts Chrome actually used to paint text), not estimated from pixels. When the YAML front matter and this prose disagree, the YAML wins. Copy values from this file exactly; don't transcribe them from memory. Don't copy logos, imagery, illustrations or marketing copy.

## Overview

Sourcegraph uses a dark canvas (#020202) with a palette led by #F34E3F. Type is set in **Poly Sans** (display + body), **Poly Sans Slim Mono** (mono), with 16px body text. Layout: 1152px container, top-sticky+transparent navigation, 9 sections. Built with sveltekit, hubspot, posthog, google-tag-manager, cloudflare.

## Colors

Area-weighted from painted backgrounds, text and borders on the 1440px light capture. Roles are inferred from usage (largest background, most text, interactive fills). Every hex is an exact computed value; a role marked *unverified* is a best guess that has not passed review, so its canonical token (e.g. `primary`) is left out of the front matter.

| Token | Hex | OKLCH | Role | Share of paint | CSS variable |
|---|---|---|---|---|---|
| `background` | `#020202` | 0.085 0 0 | bg | 51.2% | `--osano-button-border-color` |
| `on-surface` | `#EDEDED` | 0.946 0 0 | text | 23.9% | — |
| `surface` | `#000000` | 0 0 0 | surface | 4.5% | — |
| `outline` | `#202020` | 0.244 0 0 | border | 2.3% | `--osano-info-dialog-toggle-on-track-color-hover` |
| `on-surface-variant` | `#A9A9A9` | 0.735 0 0 | muted | 1.7% | — |
| `primary` | `#F34E3F` | 0.653 0.204 29 | accent | 0.06% | — |
| `osano-button-close-color` | `#FFFFFF` | 1 0 0 | other | 10.8% | `--osano-button-close-color` |
| `osano-gpc-background-color` | `#111111` | 0.178 0 0 | other | 2.1% | `--osano-gpc-background-color` |
| `color-9` | `#444444` | 0.387 0 0 | other | 0.93% | — |
| `color-10` | `#410604` | 0.243 0.089 28.8 | other | 0.76% | — |
| `color-11` | `#3A3A3A` | 0.35 0 180 | other | 0.38% | — |
| `color-12` | `#909090` | 0.653 0 0 | other | 0.69% | — |
| `color-13` | `#B9CCFF40` (on bg `#303441`) | 0.848 0.074 269 | other | 0.32% | — |

Declared brand/accent tokens: `--sg-theme-accent` = `#3B6BEB` (declared, not painted on this page), `--sg-theme-accent-raised` = `#447AFF` (declared, not painted on this page), `--sg-theme-brand-color` = `#FF685D` (declared, not painted on this page).

Contrast: text on background 17.72:1, muted text 8.83:1, accent 5.9:1.

Gradients in use: `radial-gradient(circle, oklch(0.85 0.08 270 / 0.25) 0%, rgba(0, 0, 0, 0) 70%)`.

The site does not change under `prefers-color-scheme: dark`.

## Typography

| Family | Role | Weights | Share of text | Source |
|---|---|---|---|---|
| **Poly Sans** | display, body | 300, 400, 500 | 96.0% | webfont |
| **Poly Sans Slim Mono** (CSS: `Poly Sans Mono`) | mono | 300, 400, 500, 600 | 4.0% | webfont |

Declared in `@font-face` but not used to paint text on this page: Poly Sans Wide, Perfectly Nineties. Don't treat these as the page's fonts.

Scale (px): 13, 14, 16, 17, 18, 20, 22, 28, 41.5, 48, 56, 64. Effective ratio ≈ 1.167 (close to a minor third). Body 16px at line-height 1.5; display 64px with tracking -0.031em. Headings are sentence case. On a 390px viewport the body is 16px and display 48px.

## Layout

Spacing follows a 4px base unit; the most used steps are 2.5, 4, 5.5, 8, 9.5, 10.5, 12, 15, 16, 24, 32, 40, 48, 56px. Sections open with about 97px of space before their first line of text. Content sits in a 1152px container on a 3-column grid. Text density 0.07 (text area / page area).

Section order (desktop). Kinds below the review threshold are shown as *section*:

1. **nav** (103px, bg #020202)
2. **hero** — “codebase entire your for layer context The” (2070px, bg #020202)
3. **logos** (149px, bg #020202)
4. **section** — “More code. More agents. Less understanding.” (666px, bg #020202)
5. **section** — “Change code at scale. Make agents better. Find answers faster.” (508px, bg #EDEDED)
6. **section** (1042px, bg #EDEDED)
7. **section** — “Built for Big Code” (1056px, bg #020202)
8. **footer** — “Take control of your codebase” (597px, bg #FFFFFF)
9. **footer** (471px, bg #020202)

## Elevation & Depth

Style: subtle. Most used shadows:

- `rgba(0, 0, 0, 0.15) 0px 4px 12px 0px`
- `rgba(0, 0, 0, 0.04) 0px 1px 2px 0px`

## Shapes

Dominant corner radius 8px; radii in use: 4px, 6px, 8px, 16px, 32px, pill. Borders: hairline (1px).

## Components

- **button-primary**: backgroundColor `#F34E3F`, textColor `#FFFFFF`, rounded `8px`, padding `8px 12px`, height `30px`, fontFamily `Poly Sans`, fontSize `14px`, fontWeight `500` (e.g. “Schedule a demo”)
- **button-secondary**: backgroundColor `#222222`, textColor `#DEDEDE`, rounded `6px`, padding `6.4px 14.4px`, height `34.3px`, fontFamily `Poly Sans Slim Mono`, fontSize `13px`, fontWeight `600`, border `1px solid #3A3A3A` (e.g. “Get a demo →”)

## Do's and Don'ts

- Do reserve `#F34E3F` for primary actions and highlights; it covers only 0.06% of the painted page.
- Do set body copy in Poly Sans at 16px / 1.5.
- Do tighten large headlines (-0.031em at 64px).
- Don't introduce font weights beyond 300, 400, 500, 600.
- Do keep corners at 8px for most controls, and use the larger radii only for cards and media.
- Do snap spacing to multiples of 4px.
- Don't copy this site's logos, illustrations, photography or copy; use the system, not the brand assets.

## Provenance

Spec v2, extractor 0.2.0. Render quality: **ok**. Vision pass: not run. Fields below confidence 0.7 are hedged or left out above: `color.accent_strategy`, `layout.columns`, `layout.hero`, `layout.section_count`, `sections[].kind`, `space.section_padding_px`. Full per-field provenance is in `spec.json`.
