---
version: alpha
name: Gwern
description: Light design system extracted from gwern.net (DOM-true values, Emblematic extractor 0.2.0, 2026-11-17).
colors:
  background: "#FFFFFF"
  on-surface: "#333333"
  outline: "#000000"
  gw-toc-background-color: "#F8F8F8"
  primary: "#333333"
  on-primary: "#333333"
  background-dark: "#161616"
  on-surface-dark: "#DCDCDC"
  primary-dark: "#DCDCDC"
  outline-dark: "#F1F1F1"
typography:
  display-lg:
    fontFamily: Source Serif 4
    fontSize: 30px
    fontWeight: 700
    lineHeight: 1.125
    letterSpacing: -0.025em
  body-md:
    fontFamily: Source Serif 4
    fontSize: 20px
    fontWeight: 400
    lineHeight: 1.6
  body-sm:
    fontFamily: Source Serif 4
    fontSize: 19px
    fontWeight: 400
    lineHeight: 1
  mono-md:
    fontFamily: IBM Plex Mono
    fontSize: 18px
    fontWeight: 400
    lineHeight: 1.6
rounded: {}
spacing:
  xxs: 2px
  xs: 5px
  sm: 15px
  md: 20px
  lg: 27.5px
  xl: 45px
  2xl: 60px
  base: 4px
  container: 895px
components:
  button-primary:
    backgroundColor: "{colors.on-surface}"
    textColor: "{colors.on-surface}"
    rounded: 0px
    padding: 0px
    height: 28px
  button-secondary:
    textColor: "{colors.outline}"
    rounded: 0px
    padding: 5px
    height: 40px
omitted:
  - section: rounded
    reason: no rounded corners on painted elements
---

# Gwern

> Extracted from [https://gwern.net/](https://gwern.net/) 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

Gwern uses a light canvas (#FFFFFF) with a monochrome palette. Type is set in **Source Serif 4** (display + body), **IBM Plex Mono** (mono), with 20px body text. Layout: 895px container, none-detected navigation, 3 sections. Built with 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` | `#FFFFFF` | 1 0 0 | bg | 80.6% | `--background-color` |
| `on-surface` | `#333333` | 0.321 0 0 | text | 17.0% | `--GW-body-link-color` |
| `outline` | `#000000` | 0 0 0 | border | 1.6% | `--GW-table-border-color` |
| `gw-toc-background-color` | `#F8F8F8` | 0.979 0 0 | other | 0.57% | `--GW-TOC-background-color` |

Contrast: text on background 12.63:1, accent 12.63:1.

Gradients in use: `linear-gradient(to right, rgb(51, 51, 51) 50%, rgb(255, 255, 255) 50%)`; `linear-gradient(rgb(51, 51, 51), rgb(51, 51, 51))`.

The site responds to `prefers-color-scheme: dark`; the `-dark` tokens hold the dark-mode roles.

## Typography

| Family | Role | Weights | Share of text | Source |
|---|---|---|---|---|
| **Source Serif 4** | display, body | 400, 700 | 99.8% | webfont |
| **IBM Plex Mono** | mono | 400 | 0.10% | webfont |

Declared in `@font-face` but not used to paint text on this page: Cheshire Initials, Deutsche Zierschrift, Goudy Initialen, Kanzlei Initialen, Yinit, Source Sans 3. Don't treat these as the page's fonts.

Scale (px): 19, 20, 28, 30. Effective ratio ≈ 1.225 (close to a major third). Body 20px at line-height 1.6; display 30px with tracking -0.025em. Headings are mixed case. On a 390px viewport the body is 18px and display 27px.

## Layout

Spacing follows a 4px base unit; the most used steps are 2, 5, 15, 20, 27.5, 45, 60px. Content sits in a 895px container on a 2-column grid. Text density 0.207 (text area / page area).

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

1. **nav** (42px, bg #FFFFFF)
2. **hero** — “Personal” (9977px, bg #FFFFFF)
3. **testimonials** (1052px, bg #FFFFFF)

## Shapes

Dominant corner radius 0px; radii in use: none. Borders: hairline (1px).

## Components

- **button-primary**: backgroundColor `#333333`, textColor `#333333`, rounded `0px`, padding `0px 0px`, height `28px`, fontFamily `Source Serif 4`, fontSize `20px`, fontWeight `400` (e.g. “anime neural net­works”)
- **button-secondary**: textColor `#000000`, rounded `0px`, padding `5px 15px`, height `40px`, fontFamily `Source Serif 4`, fontSize `20px`, fontWeight `600`, border `1px solid #000000` (e.g. “Site”)

## Do's and Don'ts

- Do keep the palette monochrome; there is no chromatic brand accent on the page.
- Do set body copy in Source Serif 4 at 20px / 1.6.
- Do tighten large headlines (-0.025em at 30px).
- Don't introduce font weights beyond 400, 700.
- Don't add drop shadows; depth comes from tone and borders.
- Do keep corners at 0px for most controls.
- 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: `layout.columns`, `layout.hero`, `layout.section_count`, `space.section_padding_px`. Full per-field provenance is in `spec.json`.
