{
 "$description": "OpenGovernment UK design tokens, in the W3C Design Tokens Community Group format (https://tr.designtokens.org/format/). The single source for every colour, type size, space, corner, shadow, motion and breakpoint on every page. tools/design.py turns them into docs/assets/og.css and checks contrast. Licence: MIT (code).",
 "color": {
  "$type": "color",
  "light": {
   "bg": {
    "$value": "#f3f4f1",
    "$description": "Page background: crisp, faintly warm paper"
   },
   "surface": {
    "$value": "#ffffff",
    "$description": "Cards, panels, masthead"
   },
   "surface-2": {
    "$value": "#eaece7",
    "$description": "Sunken areas, table stripes, tracks"
   },
   "ink": {
    "$value": "#14202b",
    "$description": "Body text: deep ink, not black"
   },
   "muted": {
    "$value": "#485463",
    "$description": "Secondary text"
   },
   "line": {
    "$value": "#d6dad2",
    "$description": "Hairlines and card borders (decorative)"
   },
   "line-strong": {
    "$value": "#7c8794",
    "$description": "Input borders and dividers that must be seen (3:1)"
   },
   "brand": {
    "$value": "#b5301c",
    "$description": "The logo and small brand accents only"
   },
   "brand-soft": {
    "$value": "#f8e4df"
   },
   "accent": {
    "$value": "#0a6863",
    "$description": "Anything you can click: links, primary buttons, selected tabs"
   },
   "accent-soft": {
    "$value": "#d9efec"
   },
   "on-accent": {
    "$value": "#ffffff",
    "$description": "Text on accent"
   },
   "navy": {
    "$value": "#1d3a6e",
    "$description": "Information"
   },
   "navy-soft": {
    "$value": "#e1e8f5"
   },
   "gold": {
    "$value": "#7f5300",
    "$description": "Caution and modelled figures"
   },
   "gold-soft": {
    "$value": "#f6ead0"
   },
   "good": {
    "$value": "#1a6634",
    "$description": "Pass, done, current"
   },
   "good-soft": {
    "$value": "#dff0e4"
   },
   "bad": {
    "$value": "#a3192a",
    "$description": "Fail, withdrawn, error"
   },
   "bad-soft": {
    "$value": "#fae0e1"
   },
   "focus": {
    "$value": "#1a54d6",
    "$description": "Focus ring (3:1 against every surface)"
   },
   "n-EN": {
    "$value": "#a0153a",
    "$description": "England (validated nation palette: always shown with its label)"
   },
   "n-SC": {
    "$value": "#2b6bd6"
   },
   "n-WA": {
    "$value": "#33a061"
   },
   "n-NI": {
    "$value": "#8f6a00"
   },
   "n-UK": {
    "$value": "#6b655c"
   },
   "n-GB": {
    "$value": "#a39a8c"
   }
  },
  "dark": {
   "bg": {
    "$value": "#0d1218"
   },
   "surface": {
    "$value": "#151b23"
   },
   "surface-2": {
    "$value": "#1d2530"
   },
   "ink": {
    "$value": "#e9eef4"
   },
   "muted": {
    "$value": "#a8b3c1"
   },
   "line": {
    "$value": "#2a3441"
   },
   "line-strong": {
    "$value": "#6b7a8c"
   },
   "brand": {
    "$value": "#ff8a72"
   },
   "brand-soft": {
    "$value": "#3a1c16"
   },
   "accent": {
    "$value": "#4fd0c4"
   },
   "accent-soft": {
    "$value": "#0f302d"
   },
   "on-accent": {
    "$value": "#0d1218"
   },
   "navy": {
    "$value": "#a9c1f2"
   },
   "navy-soft": {
    "$value": "#1a2438"
   },
   "gold": {
    "$value": "#e8b95c"
   },
   "gold-soft": {
    "$value": "#30260f"
   },
   "good": {
    "$value": "#7bd593"
   },
   "good-soft": {
    "$value": "#12301c"
   },
   "bad": {
    "$value": "#ff8e8c"
   },
   "bad-soft": {
    "$value": "#3a1619"
   },
   "focus": {
    "$value": "#8fb4ff"
   },
   "n-EN": {
    "$value": "#e85d78"
   },
   "n-SC": {
    "$value": "#4f88ea"
   },
   "n-WA": {
    "$value": "#2a9a6e"
   },
   "n-NI": {
    "$value": "#b58a1c"
   },
   "n-UK": {
    "$value": "#9a9184"
   },
   "n-GB": {
    "$value": "#5c564d"
   }
  }
 },
 "font": {
  "$type": "fontFamily",
  "body": {
   "$value": [
    "Atkinson Hyperlegible Next",
    "Segoe UI",
    "system-ui",
    "sans-serif"
   ],
   "$description": "Designed by the Braille Institute for legibility; OFL 1.1; self-hosted"
  },
  "display": {
   "$value": [
    "Atkinson Hyperlegible Next",
    "Segoe UI",
    "system-ui",
    "sans-serif"
   ]
  },
  "mono": {
   "$value": [
    "IBM Plex Mono",
    "ui-monospace",
    "Menlo",
    "monospace"
   ],
   "$description": "Codes and identifiers; OFL 1.1; self-hosted"
  }
 },
 "size": {
  "$type": "dimension",
  "$description": "Seven type sizes. The two largest grow with the screen.",
  "xs": {
   "$value": "0.8125rem"
  },
  "sm": {
   "$value": "0.875rem"
  },
  "base": {
   "$value": "1rem"
  },
  "md": {
   "$value": "1.125rem"
  },
  "lg": {
   "$value": "1.375rem"
  },
  "xl": {
   "$value": "clamp(1.5rem, 1.1rem + 1.4vw, 2rem)"
  },
  "2xl": {
   "$value": "clamp(2rem, 1.2rem + 3vw, 3rem)"
  }
 },
 "space": {
  "$type": "dimension",
  "1": {
   "$value": "4px"
  },
  "2": {
   "$value": "8px"
  },
  "3": {
   "$value": "12px"
  },
  "4": {
   "$value": "16px"
  },
  "5": {
   "$value": "24px"
  },
  "6": {
   "$value": "32px"
  },
  "7": {
   "$value": "48px"
  }
 },
 "radius": {
  "$type": "dimension",
  "sm": {
   "$value": "6px",
   "$description": "Buttons, inputs, chips inside cards"
  },
  "md": {
   "$value": "12px",
   "$description": "Cards and panels"
  },
  "pill": {
   "$value": "999px",
   "$description": "Pills, tags, switches"
  }
 },
 "shadow": {
  "$type": "shadow",
  "1": {
   "$value": "0 1px 2px rgb(13 18 24 / 6%), 0 1px 1px rgb(13 18 24 / 4%)"
  },
  "2": {
   "$value": "0 6px 20px rgb(13 18 24 / 10%), 0 2px 6px rgb(13 18 24 / 6%)"
  }
 },
 "motion": {
  "fast": {
   "$type": "duration",
   "$value": "120ms"
  },
  "base": {
   "$type": "duration",
   "$value": "220ms"
  },
  "ease": {
   "$type": "cubicBezier",
   "$value": [
    0.2,
    0.7,
    0.2,
    1
   ]
  }
 },
 "breakpoint": {
  "$type": "dimension",
  "$description": "Two breakpoints only. Media queries use max-width 640px (phones) and max-width 1023px (tablets and small laptops).",
  "phone": {
   "$value": "640px"
  },
  "tablet": {
   "$value": "1023px"
  }
 },
 "target": {
  "$type": "dimension",
  "min": {
   "$value": "44px",
   "$description": "Smallest touch target (WCAG 2.5.5 enhanced; 2.5.8 needs 24px)"
  }
 },
 "layout": {
  "$type": "dimension",
  "drawer": {
   "$value": "272px",
   "$description": "Width of the retractable page menu"
  },
  "measure": {
   "$value": "72ch",
   "$description": "Longest comfortable line of text"
  },
  "max": {
   "$value": "1440px",
   "$description": "Widest the page frame grows"
  }
 }
}