{
  "$description": "BrokenApp design tokens (W3C DTCG format). SOURCE OF TRUTH. Edit here, then run `python3 brand/build.py --sync`. tokens.css and tailwind-theme.css are generated from this file.",
  "color": {
    "brand": {
      "$type": "color",
      "ink": {
        "$value": "#060606",
        "$description": "Ink. The ground on screen, and the dots and type on paper."
      },
      "bone": {
        "$value": "#EFEBE3",
        "$description": "Bone. Type and dots on screen, the ground on paper, and every primary button."
      },
      "signal": {
        "$value": "#FF2A2A",
        "$description": "Signal. The slash, and anything reported broken, on ink (5.4:1)."
      },
      "signal-deep": {
        "$value": "#CC1B1B",
        "$description": "Signal Deep. The same two jobs on paper, darkened so small red text passes AA there (4.7:1 on bone)."
      },
      "ink-on-paper": {
        "$value": "#0A0A0A",
        "$description": "Text and dots on a paper ground."
      }
    },
    "status": {
      "$type": "color",
      "$description": "Product screens only (dense dashboards where a mark alone is not enough). The brand itself never uses these: outcomes are told apart by the outcome marks, and red is the only hue.",
      "dark": {
        "ok": { "$value": "#34D399" },
        "warn": { "$value": "#FBBF24" },
        "info": { "$value": "#93C5FD" }
      },
      "light": {
        "ok": { "$value": "#15803D" },
        "warn": { "$value": "#B45309" },
        "info": { "$value": "#1D4ED8" }
      }
    }
  },
  "theme": {
    "$description": "Semantic, mode-aware UI tokens. Emitted as CSS custom properties. Ink (dark) is the default; paper applies under [data-theme=\"light\"]. Surfaces and rules are the foreground at low alpha over the ground, never separate greys.",
    "dark": {
      "bg": { "$type": "color", "$value": "{color.brand.ink}" },
      "surface": { "$type": "color", "$value": "#0E0E0D" },
      "surface-2": { "$type": "color", "$value": "#161615" },
      "fg": { "$type": "color", "$value": "{color.brand.bone}" },
      "fg-muted": { "$type": "color", "$value": "rgba(239, 235, 227, 0.70)" },
      "fg-subtle": {
        "$type": "color",
        "$value": "rgba(239, 235, 227, 0.54)",
        "$description": "Small meta text. 5.2:1 on ink."
      },
      "tint": { "$type": "string", "$value": "239, 235, 227", "$description": "RGB triple for rgba() overlays." },
      "border": { "$type": "color", "$value": "rgba(239, 235, 227, 0.13)" },
      "border-strong": { "$type": "color", "$value": "rgba(239, 235, 227, 0.32)" },
      "term-bg": { "$type": "color", "$value": "#0B0B0A" },
      "term-header": { "$type": "color", "$value": "#121211" },
      "term-border": { "$type": "color", "$value": "rgba(239, 235, 227, 0.13)" },
      "signal": {
        "$type": "color",
        "$value": "{color.brand.signal}",
        "$description": "Red for the slash, the broken mark and broken text on this ground."
      },
      "button": { "$type": "color", "$value": "{color.brand.bone}", "$description": "Primary button fill." },
      "button-fg": { "$type": "color", "$value": "{color.brand.ink}", "$description": "Text on the primary button." },
      "ok": { "$type": "color", "$value": "{color.status.dark.ok}" },
      "warn": { "$type": "color", "$value": "{color.status.dark.warn}" },
      "info": { "$type": "color", "$value": "{color.status.dark.info}" }
    },
    "light": {
      "bg": { "$type": "color", "$value": "{color.brand.bone}" },
      "surface": { "$type": "color", "$value": "#E7E2D8" },
      "surface-2": { "$type": "color", "$value": "#DFD9CE" },
      "fg": { "$type": "color", "$value": "{color.brand.ink-on-paper}" },
      "fg-muted": { "$type": "color", "$value": "rgba(10, 10, 10, 0.74)" },
      "fg-subtle": { "$type": "color", "$value": "rgba(10, 10, 10, 0.60)" },
      "tint": { "$type": "string", "$value": "10, 10, 10" },
      "border": { "$type": "color", "$value": "rgba(10, 10, 10, 0.15)" },
      "border-strong": { "$type": "color", "$value": "rgba(10, 10, 10, 0.42)" },
      "term-bg": { "$type": "color", "$value": "#E9E4DA" },
      "term-header": { "$type": "color", "$value": "#E2DCD1" },
      "term-border": { "$type": "color", "$value": "rgba(10, 10, 10, 0.16)" },
      "signal": { "$type": "color", "$value": "{color.brand.signal-deep}" },
      "button": { "$type": "color", "$value": "{color.brand.ink-on-paper}" },
      "button-fg": { "$type": "color", "$value": "{color.brand.bone}" },
      "ok": { "$type": "color", "$value": "{color.status.light.ok}" },
      "warn": { "$type": "color", "$value": "{color.status.light.warn}" },
      "info": { "$type": "color", "$value": "{color.status.light.info}" }
    }
  },
  "font": {
    "family": {
      "$type": "fontFamily",
      "serif": {
        "$value": ["Cormorant", "Iowan Old Style", "Palatino Linotype", "Palatino", "Georgia", "serif"],
        "$description": "The claim. Headlines and italic asides. Never interface text. Always lining numerals."
      },
      "sans": {
        "$value": ["IBM Plex Sans", "system-ui", "-apple-system", "Segoe UI", "sans-serif"],
        "$description": "The explanation. Body, navigation, buttons, forms, and the wordmark."
      },
      "mono": {
        "$value": ["IBM Plex Mono", "SF Mono", "ui-monospace", "Menlo", "monospace"],
        "$description": "The evidence. Only what the tool reads or prints: commands, paths, records, callouts."
      }
    }
  },
  "type": {
    "$type": "typography",
    "$description": "Three voices. Sizes in px.",
    "display": {
      "$value": { "fontFamily": "{font.family.serif}", "fontSize": "96px", "fontWeight": 500, "lineHeight": 0.95, "letterSpacing": "-0.02em" },
      "$description": "Homepage hero. 76px tablet, 54px mobile."
    },
    "h1": {
      "$value": { "fontFamily": "{font.family.serif}", "fontSize": "68px", "fontWeight": 600, "lineHeight": 1.0, "letterSpacing": "-0.018em" },
      "$description": "Page titles. 44px on mobile."
    },
    "h2": {
      "$value": { "fontFamily": "{font.family.serif}", "fontSize": "46px", "fontWeight": 500, "lineHeight": 1.04, "letterSpacing": "-0.012em" },
      "$description": "Section titles. 34px on mobile."
    },
    "h2-reference": {
      "$value": { "fontFamily": "{font.family.serif}", "fontSize": "34px", "fontWeight": 600, "lineHeight": 1.1, "letterSpacing": "-0.008em" },
      "$description": "Section titles on reference pages (docs, CLI). 28px on mobile."
    },
    "aside": {
      "$value": { "fontFamily": "{font.family.serif}", "fontSize": "24px", "fontWeight": 400, "fontStyle": "italic", "lineHeight": 1.25, "letterSpacing": "0" },
      "$description": "Italic asides and figure captions, 18 to 35px. The serif is never set below 18px."
    },
    "h3": {
      "$value": { "fontFamily": "{font.family.sans}", "fontSize": "17px", "fontWeight": 500, "lineHeight": 1.4, "letterSpacing": "0" },
      "$description": "Card and list titles."
    },
    "body": {
      "$value": { "fontFamily": "{font.family.sans}", "fontSize": "17px", "fontWeight": 400, "lineHeight": 1.6, "letterSpacing": "0" }
    },
    "ui": {
      "$value": { "fontFamily": "{font.family.sans}", "fontSize": "15px", "fontWeight": 400, "lineHeight": 1.4, "letterSpacing": "0" },
      "$description": "Navigation, buttons (500), form controls."
    },
    "small": {
      "$value": { "fontFamily": "{font.family.sans}", "fontSize": "13.5px", "fontWeight": 400, "lineHeight": 1.5, "letterSpacing": "0" }
    },
    "record": {
      "$value": { "fontFamily": "{font.family.mono}", "fontSize": "13px", "fontWeight": 400, "lineHeight": 1.5, "letterSpacing": "0" },
      "$description": "Record tables, callouts, labels on figures."
    },
    "code": {
      "$value": { "fontFamily": "{font.family.mono}", "fontSize": "13.5px", "fontWeight": 400, "lineHeight": 1.6, "letterSpacing": "0" },
      "$description": "Commands and code blocks."
    },
    "wordmark": {
      "$value": { "fontFamily": "{font.family.sans}", "fontSize": "22px", "fontWeight": 500, "lineHeight": 1, "letterSpacing": "-0.015em" },
      "$description": "Use the SVG files. Listed here so the live-text version on the site matches them."
    }
  },
  "radius": {
    "$type": "dimension",
    "ui": { "$value": "0px", "$description": "Buttons, inputs, frames, tables. The system is square." },
    "icon": { "$value": "23.4375%", "$description": "Icon corner = 120/512 of its size." }
  },
  "motion": {
    "ease-out": { "$type": "cubicBezier", "$value": [0.16, 1, 0.3, 1] },
    "fast": { "$type": "duration", "$value": "150ms" },
    "base": { "$type": "duration", "$value": "200ms" },
    "enter": { "$type": "duration", "$value": "450ms" }
  },
  "picture": {
    "$description": "How every illustration is made. See brand/pictures.py.",
    "dot": { "$type": "number", "$value": 2, "$description": "CSS pixels per dither dot at display size. 2 to 3 for heroes, never under 1.5." },
    "tones": { "$type": "number", "$value": 2, "$description": "Two tones, Atkinson error diffusion. Never smoothed, never greyscale." },
    "cut-angle": { "$type": "number", "$value": 30, "$description": "Solids are cut at the slash angle. The cut face is the only red in a picture." }
  },
  "logo": {
    "$description": "Geometry on a 512-unit artboard. Changing these regenerates every logo asset.",
    "slash": {
      "length": { "$type": "number", "$value": 336 },
      "thickness": { "$type": "number", "$value": 48 },
      "angle": { "$type": "number", "$value": 30, "$description": "Degrees clockwise from vertical. It leans right, like /." }
    },
    "icon": {
      "$description": "The cleave: the old badge cut along the slash, the two halves slipped apart along the cut.",
      "radius": { "$type": "number", "$value": 120 },
      "channel": { "$type": "number", "$value": 72, "$description": "Width of the cut between the halves. The slash sits in it with 12 units of air each side." },
      "slip": { "$type": "number", "$value": 20, "$description": "How far each half slides along the cut." },
      "scale": { "$type": "number", "$value": 0.86, "$description": "Shrink inside the artboard so the slipped halves stay within it." }
    },
    "icon-small": {
      "$description": "Optical cut for 16 to 24 px: heavier slash, wider channel, less slip.",
      "radius": { "$type": "number", "$value": 112 },
      "slash-length": { "$type": "number", "$value": 360 },
      "slash-thickness": { "$type": "number", "$value": 76 },
      "channel": { "$type": "number", "$value": 112 },
      "slip": { "$type": "number", "$value": 14 },
      "scale": { "$type": "number", "$value": 0.9 }
    },
    "wordmark": {
      "$description": "Broken, the slash, App. IBM Plex Sans Medium, outlined in the logo files.",
      "weight": { "$type": "number", "$value": 500 },
      "tracking": { "$type": "number", "$value": -0.015, "$description": "em" },
      "slash-length": { "$type": "number", "$value": 1.126, "$description": "em. The slash is taller than the capitals: it rises above them and drops below the baseline." },
      "slash-advance": { "$type": "number", "$value": 0.55, "$description": "em. Space the slash takes between the two words." },
      "slash-lift": { "$type": "number", "$value": 0.026, "$description": "em. How far the slash's centre sits above the centre of the capitals." }
    },
    "clear-space": {
      "$type": "number",
      "$value": 0.25,
      "$description": "Icon: a quarter of its size on every side. Wordmark: its cap height on every side."
    }
  }
}
