@repobit/dex-system-design 4.3.2 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/src/components/accordion/accordion.css.js +1 -1
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/fact/fact.css.js +1 -1
- package/dist/src/components/fact/fact.css.js.map +1 -1
- package/dist/src/components/feature-columns/feature-columns.css.js +1 -1
- package/dist/src/components/feature-columns/feature-columns.css.js.map +1 -1
- package/dist/src/components/product-hero/product-hero.css.js +1 -1
- package/dist/src/components/product-hero/product-hero.css.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -1
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +40 -4
- package/dist/src/components/section/section.js +1 -1
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/tab-group/tab-group.css.js +1 -1
- package/dist/src/components/tab-group/tab-group.css.js.map +1 -1
- package/dist/src/components/tab-group/tab-group.js +4 -2
- package/dist/src/components/tab-group/tab-group.js.map +1 -1
- package/dist/src/tokens/tokens.css +1 -1
- package/dist/src/tokens/tokens.js +1 -1
- package/dist/src/tokens/tokens.js.map +1 -1
- package/package.json +4 -4
- package/schemas/component-manifest.json +14 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","names":["DARK","dark_default","declarations","LAYER","INSTALLED","scheme","schemeLayer","install","rule","themeLayer","THEMES","THEME_CONTRACT","DEFAULT_THEME","sheet","tokenDeclarations","tokens"],"sources":["../../../src/tokens/tokens.ts"],"sourcesContent":["import { css } from 'lit';\nimport DARK from './themes/dark.ts';\nimport { DEFAULT_THEME, THEMES } from './themes/index.ts';\nimport { THEME_CONTRACT } from './themes/contract.ts';\nimport { themeLayer } from './brand-layer.ts';\nimport { schemeLayer } from './scheme-layer.ts';\n\n/**\n * Design tokens.\n *\n * These are declared on :root in document scope, inside the `bd-tokens` cascade\n * layer, rather than on :host inside every component. Both halves of that\n * matter:\n *\n * - A :host declaration beats an inherited value. While every component\n * re-declared the full token set on its own :host, an application could not\n * override a token from the page at all — its `:root` never reached the\n * shadow tree.\n * - Moving to :root is not sufficient on its own. adoptedStyleSheets are\n * ordered after the document's own author stylesheets, so an unlayered\n * :root here would still beat the application's CSS. Anything inside a\n * cascade layer loses to unlayered CSS, which is what makes the override\n * work.\n *\n * The upshot: an application can now do `:root { --color-blue-500: ... }`, or a\n * whole `@media (prefers-color-scheme: dark)` block, and it wins.\n *\n * Importing any component installs this once. Nothing else is required.\n */\nconst declarations = `\n --typography-fontFamily-sans: \"IBM Plex Sans\", system-ui, -apple-system,\n BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n /* The csg blog's heading face, falling back to the sans stack's own\n fallbacks. Its faces are in fonts.css; nothing loads until a page\n sets text in it. */\n --typography-fontFamily-sans-condensed: \"IBM Plex Sans Condensed\", system-ui, -apple-system,\n BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n --typography-fontFamily-mono: \"IBM Plex Mono\", ui-monospace, SFMono-Regular,\n Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n\n --typography-fontSize-xxs: 0.6875rem; /* 11px */\n --typography-fontSize-xs: 0.75rem; /* 12px */\n --typography-fontSize-sm: 0.875rem; /* 14px */\n --typography-fontSize-base: 1rem; /* 16px */\n --typography-fontSize-lg: 1.125rem; /* 18px */\n --typography-fontSize-xl: 1.25rem; /* 20px */\n --typography-fontSize-2xl: 1.5rem; /* 24px */\n --typography-fontSize-3xl: 2rem; /* 32px */\n --typography-fontSize-4xl: 2.25rem; /* 36px */\n --typography-fontSize-5xl: 3rem; /* 48px */\n --typography-fontSize-6xl: 3.75rem; /* 60px */\n --typography-fontSize-7xl: 4.5rem; /* 72px */\n --typography-fontSize-8xl: 6rem; /* 96px */\n --typography-fontSize-9xl: 8rem; /* 128px */\n\n --typography-fontWeight-light: 300;\n --typography-fontWeight-normal: 400;\n --typography-fontWeight-medium: 500;\n --typography-fontWeight-semibold: 600;\n --typography-fontWeight-bold: 700;\n\n --typography-lineHeight-none: 1;\n --typography-lineHeight-tight: 1.25;\n /* There is no snug (1.375). It was Tailwind's step, it carried the\n heading roles until the leading was measured against IBM Plex Sans,\n and once those moved to tight and 130 its only readers were four\n documentation-chrome files setting 11px text. 11px is what\n label-extra-small already answers, at normal, so they were repointed\n there and the step was retired rather than kept alive by its own\n documentation. */\n --typography-lineHeight-normal: 1.5;\n --typography-lineHeight-relaxed: 1.625;\n --typography-lineHeight-loose: 2;\n\n /* The three steps above named for a density -- none .. loose -- are\n Tailwind's default scale, values and names both, and nothing in them\n was derived from IBM Plex Sans. These three were, and they are named\n numerically because that is what the rest of this system does for a\n scale step: --spacing-14, --dimension-44, --border-width-2.\n\n 130 the font's own declared line box. hhea, OS/2 sTypo and OS/2\n usWin in IBMPlexSans-*.woff2 all state 1.30, which is both\n unusual and deliberate -- it is why the same text does not\n change height between macOS and Windows.\n 140 IBM's own published value for Plex at 20px (@carbon/type,\n productive-heading-03 and expressive-heading-03).\n 145 between IBM's 1.5 at 16px and 1.4 at 20px.\n\n The floor under all of them is ink, not taste. The deepest glyphs in\n this family are the Romanian comma-below letters -- s-comma and\n t-comma, -0.275em in Bold, a third deeper than g -- and the tallest\n are grave and acute capitals at +0.977em. Measured per weight, ink\n spans 1.174 Light, 1.194 Regular, 1.219 Medium, 1.235 SemiBold,\n 1.252 Bold. Tight, 1.25, sits 0.002 under the Bold floor -- the\n tallest accented capital and the deepest comma-below letter would\n have to fall in consecutive lines, one above the other, to touch --\n which is why the display roles stay at tight and are never tightened\n further.\n Foundations/Typography/Vertical Rhythm reaches 1.231 for 48px Bold\n from canvas metrics; this is the same number from outline bounds. */\n --typography-lineHeight-130: 1.3;\n --typography-lineHeight-140: 1.4;\n --typography-lineHeight-145: 1.45;\n\n --typography-letterSpacing-tighter: -0.05em;\n --typography-letterSpacing-tight: -0.025em;\n --typography-letterSpacing-normal: 0em;\n --typography-letterSpacing-wide: 0.025em;\n --typography-letterSpacing-wider: 0.05em;\n --typography-letterSpacing-widest: 0.1em;\n\n /* =====================\n COLORS\n ====================== */\n --color-blue-50: #f0f7ff;\n --color-blue-100: #d6e8ff;\n --color-blue-200: #9ec8ff;\n --color-blue-300: #6babff;\n --color-blue-400: #338bff;\n --color-blue-500: #006dff;\n --color-blue-600: #0059d6;\n --color-blue-700: #0045ad;\n --color-blue-800: #003385;\n --color-blue-900: #00225c;\n --color-blue-950: #001947;\n\n --color-red-50: #fff0f0;\n --color-red-100: #ffd6d6;\n --color-red-200: #ff9e9e;\n --color-red-300: #ff6b6b;\n --color-red-400: #ff3333;\n --color-red-500: #ff0000;\n --color-red-600: #d60000;\n --color-red-700: #ad0000;\n --color-red-800: #850000;\n --color-red-900: #5c0000;\n --color-red-950: #470000;\n\n --color-green-50: #edfdf1;\n --color-green-100: #d1fadc;\n --color-green-200: #9af4b4;\n --color-green-300: #63ee8d;\n --color-green-400: #2ce767;\n --color-green-500: #15c14f;\n --color-green-600: #12a641;\n --color-green-700: #0e8532;\n --color-green-800: #0b6a26;\n --color-green-900: #084a1a;\n --color-green-950: #063c14;\n --color-green-975: #011705;\n\n --color-yellow-50: #fffbf0;\n --color-yellow-100: #fff5d6;\n --color-yellow-200: #ffe89e;\n --color-yellow-300: #ffdc6b;\n --color-yellow-400: #ffcf33;\n --color-yellow-500: #ffc400;\n --color-yellow-600: #d6a000;\n --color-yellow-700: #ad7f00;\n --color-yellow-800: #855f00;\n --color-yellow-900: #5c4000;\n --color-yellow-950: #473100;\n --color-yellow-975: #1a0f00;\n\n --color-neutral-0: #ffffff;\n --color-neutral-25: #fafafa;\n --color-neutral-50: #f1f2f3;\n --color-neutral-100: #e1e3e5;\n --color-neutral-200: #c5c9ce;\n --color-neutral-300: #a6adb4;\n --color-neutral-400: #88909b;\n /* The five in-between steps -- 450, 850, 925 here, and the two 975s\n above -- exist for a dark theme, and nothing in light reads them.\n The dark mode study (Foundations/Theming/Dark mode) found the ramps\n too coarse at the dark end: container and subtle had to share\n neutral-900 (finding 2), no step kept text-subtle both quieter than\n muted and over 4.5:1 (finding 3), and green-950 and yellow-950 sat\n 1.5:1 off the dark page where every other tint sits near 1.1\n (finding 5). Each is interpolated in OKLCH between its two\n neighbours to the ratio the derivation asks for: 450 is 4.75:1 on\n a dark card (4.93 on the dark page), midway between 500 and 400 at\n 1.22:1 from each -- subtle text sits on a page or a card, so it is\n measured on the card (decision 17); 925 and 850 are 1.04 and 1.12\n off it, the light container and subtle steps; the 975s are 1.04\n and 1.03, the light tints. Measured against neutral-950, the dark\n page, in src/tokens/dark-derivation.ts. */\n --color-neutral-450: #78818c;\n /* #6a737e, moved one step from #6c7580. neutral-500 is\n --color-text-subtle, and at #6c7580 subtle text on a card\n (--color-surface-container, neutral-25) measured 4.48:1 -- under\n 4.5 on the ground most subtle text sits on. #6a737e gives 4.61 on a\n card and 4.81 on the page, and stays a clear step above\n neutral-600 (1.37:1 apart, the gap was 1.39). It does not clear\n subtle on surface-subtle or the status tints (4.29 to 4.46):\n that needs a step this ramp does not have, and is its own\n decision. */\n --color-neutral-500: #6a737e;\n --color-neutral-600: #565e66;\n --color-neutral-700: #41474d;\n --color-neutral-800: #2c3035;\n --color-neutral-850: #181b1d;\n --color-neutral-900: #151719;\n --color-neutral-925: #111214;\n --color-neutral-950: #0c0d0e;\n --color-neutral-1000: #000000;\n\n /* =====================\n BRAND\n ====================== */\n /* The brand is a ramp, not a colour. Components reach the brand hue at\n ten different steps -- 50 for a tinted wash, 200 for a tinted edge, 400\n and 950 for gradient stops and glows, 500 for the action, 600 and 700\n for brand text -- so a brand that only named its primary would leave\n every one of those behind. These eleven aliases are the whole of what a\n brand has to restate.\n\n Today they are the Bitdefender blue, step for step, so nothing renders\n differently for their being here. They are the colour half of the\n theme contract (src/tokens/themes/contract.ts): a partner theme\n restates them, and build-tokens re-declares every token that depends\n on them inside that brand's [data-brand] scope. See Foundations/Brands.\n\n What deliberately does NOT read this ramp: the info status tone\n (--status-info-*, --color-surface-info). Info is a feedback colour,\n not the brand, and it has to stay recognisable under every brand --\n a business line whose brand were red would otherwise paint its info\n alerts the colour of an error. Those keep --color-blue-* directly.\n\n Components never name --color-blue-* for brand work; the lint rule\n brand-hue-primitive holds that line. */\n --color-brand-50: var(--color-blue-50);\n --color-brand-100: var(--color-blue-100);\n --color-brand-200: var(--color-blue-200);\n --color-brand-300: var(--color-blue-300);\n --color-brand-400: var(--color-blue-400);\n --color-brand-500: var(--color-blue-500);\n --color-brand-600: var(--color-blue-600);\n --color-brand-700: var(--color-blue-700);\n --color-brand-800: var(--color-blue-800);\n --color-brand-900: var(--color-blue-900);\n --color-brand-950: var(--color-blue-950);\n\n /* ================================\n CORE BORDER TOKENS\n ================================ */\n --border-width-0: 0;\n --border-width-1: 1px;\n --border-width-2: 2px;\n --border-width-3: 3px;\n --border-width-4: 4px;\n --border-width-8: 8px;\n\n --radius-none: 0;\n --radius-sm: 0.25rem; /* 4px */\n --radius-md: 0.375rem; /* 6px */\n --radius-lg: 0.5rem; /* 8px */\n --radius-xl: 0.75rem; /* 12px */\n --radius-2xl: 1rem; /* 16px */\n --radius-3xl: 1.5rem; /* 24px */\n --radius-full: 9999px;\n\n /* =====================\n SHAPE\n ====================== */\n /* The corner steps a theme restates -- the shape half of the theme\n contract, as --color-brand-* is the colour half. A partner whose brand\n is square sets these to 0, one whose brand is soft raises them, and\n every card, button, field, panel and chip that reads a step follows.\n Today they are the radius scale, step for step, so nothing renders\n differently for their being here.\n\n Two steps are deliberately left out, because a brand must not move\n them: --radius-full is a circle (a dot, a pill, a switch, an avatar),\n and --radius-none is a corner someone decided should be square. The\n focus ring keeps --focus-outline-radius on the scale too: focus\n geometry is the host's, not a partner's.\n\n Components never read --radius-sm..3xl directly; the lint rule\n shape-primitive holds that line. */\n --shape-radius-sm: var(--radius-sm);\n --shape-radius-md: var(--radius-md);\n --shape-radius-lg: var(--radius-lg);\n --shape-radius-xl: var(--radius-xl);\n --shape-radius-2xl: var(--radius-2xl);\n --shape-radius-3xl: var(--radius-3xl);\n\n /* ================================\n CORE DIMENSION TOKENS\n ================================ */\n\n\n --dimension-4: 4px;\n --dimension-8: 8px;\n --dimension-12: 12px;\n --dimension-16: 16px;\n --dimension-20: 20px;\n --dimension-24: 24px;\n --dimension-32: 32px;\n --dimension-36: 36px;\n --dimension-40: 40px;\n --dimension-44: 44px;\n --dimension-48: 48px;\n --dimension-56: 56px;\n --dimension-64: 64px;\n\n /* ================================\n CORE TRANSITION TOKENS\n ================================ */\n\n --transition-duration-fast: 150ms;\n --transition-duration-normal: 200ms;\n --transition-duration-slow: 300ms;\n --transition-duration-slower: 500ms;\n\n --transition-easing-linear: linear;\n --transition-easing-smooth: ease-in-out;\n /* The CSS default curve. It was missing, and its absence was the single\n reason eleven component transitions could not be expressed in tokens:\n ease is not ease-in-out — it front-loads, and swapping one for the\n other is a visible change. Named after the keyword, as linear and\n ease-out beside it are; smooth is the outlier that aliases a keyword\n rather than naming it. ease-in and a bounce curve stood here too and\n went on 2026-10-15, because nothing read either. */\n --transition-easing-ease: ease;\n --transition-easing-ease-out: ease-out;\n\n /* ================================\n CORE SHADOW TOKENS\n ================================ */\n\n --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),\n 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),\n 0 8px 10px -6px rgb(0 0 0 / 0.1);\n /* The ladder stops at xl. --shadow-2xl and the inset --shadow-inner\n stood beside it until 2026-10-15, and nothing read either. */\n\n /* The focus glow: the brand at 15% (--color-brand-500), mixed from the palette. It\n was rgba(6, 109, 255, 0.15) -- a blue one unit off blue-500 -- with a\n red and a green beside it that were Tailwind's red-500 and green-500,\n in no palette here. Nothing read the red or the green, so they went;\n --form-input-focus-boxShadow reads this one. */\n --shadow-focus-outline-blue: 0 0 0 3px color-mix(in srgb, var(--color-brand-500) 15%, transparent);\n\n /* Focus Outlines - Two-Color System for Universal Visibility.\n\n Every band reads a role, never a palette step, because a ring is a\n composite: light-dark() takes one colour, so a ring cannot carry a\n pair of its own and gets its dark values from the roles it reads\n (src/tokens/scheme-layer.ts). Until 2026-11-10 the bands were\n --color-neutral-0 and --color-brand-500, so on a dark page every\n focused control wore a white halo the page did not have.\n\n The gap band is the page's ground, --color-surface-default: white\n on a light page, the dark ground on a dark one. Its job is to hold\n the ring off the control in the colour the control sits on.\n\n The ring band is --color-action-primary: the ring marks the control\n the reader is about to act on, in the action colour, and that is the\n colour every theme must hold 3:1 against the page in light and in\n dark (brands.test.ts, the action fill against the page) -- the 3:1 a\n focus indicator needs. Not --color-border-brand: a focus ring is\n never a border role (CLAUDE.md, Dividers are not borders). Brand-500\n in both themes on Bitdefender, so a light page draws what it drew:\n 4.53:1 on white, and 4.29:1 on the dark page. */\n --focus-outline-primary: 0 0 0 2px var(--color-surface-default),\n 0 0 0 4px var(--color-action-primary);\n\n /* Secondary, error and success rings stood here until 2026-10-15.\n Nothing read them -- every component rings with primary -- and the\n success ring was green-500, 2.39:1 against white, under the 3:1 a\n focus indicator needs. */\n\n /* The one above puts the WHITE band against the control, which is what\n keeps it visible on a coloured hero. That fails on a control which\n is itself white: bd-button-link variant=\"white\" measured 1.00:1 for\n the inner band against its own fill and 2.38:1 for the blue band\n against a blue hero, so neither band reached the 3:1 WCAG 2.4.11\n asks of a focus indicator. This one inverts the pair -- dark band\n against the control, white band against the ground -- so the inner\n band carries the contrast whatever the control is sitting on.\n\n This is also what the Figma library draws around a filled or\n bordered button on a dark or brand ground (focus/ring-inverse).\n Figma builds a ring from spread shadows, so every band in it is a\n painted colour, and the band between control and ring has to be\n chosen per surface. On a brand hero that painted neutral-900 band\n reads as a black outline. bd-button does not use this one; it draws\n the outline below, whose gap is not painted at all.\n\n Its two bands are the inverse pair, the inverse ground against the\n control and its ink against the page: neutral-900 and white in\n light, as before, and the two swapped where the theme swaps them. */\n --focus-outline-inverse: 0 0 0 2px var(--color-surface-inverse),\n 0 0 0 4px var(--color-text-inverse);\n\n /* The CTA ring in code: one band, held off the control by\n --focus-outline-offset. The offset leaves the gap TRANSPARENT, so it\n is always the surface the control sits on -- white on a light page,\n neutral-900 on a dark hero, blue on a brand one -- and never merges\n into a white fill or a white border, which is the job the painted\n inner band of every two-band ring above does by hand. Figma has no\n offset outline, which is why its rings paint that gap and need one\n style per surface; code does not.\n\n Only the band's colour follows the ground. Blue on light, 4.53:1\n against white. White on dark and brand, the one colour that clears\n 3:1 on both: 4.53:1 on blue-500, 6.18 on blue-600, 8.56 on blue-700,\n 17.97 on neutral-900. A blue band on a brand hero is 1.00:1.\n\n An outline also survives forced-colors mode, where a box-shadow ring\n is not drawn at all. bd-button reads these; see its FOCUS block.\n\n The band reads a role, as the two-band rings above do: the action\n colour on the page, and the inverse ink on a dark ground. A ground\n that is dark in every theme -- a hero, a brand band -- is drawn in\n the light scheme by the component that sits on it (bd-button and\n bd-link under surface=\"dark\"), so there the inverse ink is white in\n a dark page too; on a --color-surface-inverse band, which turns\n light in dark, it turns dark with it. */\n --focus-outline-traditional: 2px solid var(--color-action-primary);\n --focus-outline-traditional-inverse: 2px solid var(--color-text-inverse);\n /* On a brand band (surface=\"brand\"): the brand's own ink, which a\n theme must clear 4.5:1 on its fill, so the ring clears the 3:1 a\n focus indicator needs under every theme -- white on Bitdefender,\n where it is the inverse ring, and dark ink on a light partner, where\n a white one would vanish. */\n --focus-outline-traditional-on-brand: 2px solid var(--color-brand-on-fill);\n --focus-outline-offset: 2px;\n\n /* The ring is a box-shadow, so it already follows the radius of the\n element it is on. This is the default for elements that have no\n radius of their own — a link, a tab, an accordion header — so the\n ring is not a hard rectangle. An element with its own radius should\n set nothing and let the ring follow its shape. */\n --focus-outline-radius: var(--radius-sm);\n\n /* ================================\n SEMANTIC ROLE - SELECTED INDICATOR\n ================================\n What marks the current item in a set. Two components already drew it\n — Components/Tab List and the anchor nav — and they drifted apart on\n easing while both used valid tokens. The role is named here so there\n is one answer, not two spellings.\n\n THE COLOUR IS NOT NAMED FOR A SHAPE, and that is the whole point of\n the split below. It was --indicator-underline-color, which described\n the underline three components happen to draw rather than the job the\n value does. awards-flex marks its current slide with a DOT: same job,\n same blue-500, and it could not adopt the token because a dot is not\n an underline, so it reached for the primitive instead. Vocabulary\n question E1 found that — see plans/reports/phase-2-vocab-e-has-role-pass.md.\n\n Renamed with no back-compat alias, following the same convention as\n --typography-label-xsmall becoming --typography-body-xsmall: rename\n cleanly and say why here.\n\n The geometry stays underline-specific, because it genuinely is — a\n 3px height and a width transition describe a rule sliding under a\n tab, and a dot scales instead. A fourth consumer needing dot\n geometry should name it for the dot, not borrow these. */\n --indicator-color: var(--color-brand-500);\n --indicator-underline-height: var(--border-width-3);\n --indicator-underline-duration: var(--transition-duration-slow);\n --indicator-underline-easing: var(--transition-easing-smooth);\n\n /* ================================\n SEMANTIC ROLE - CARD SHAPE\n ================================\n The corner and the inset that make a card a card here. Eleven\n card-shaped objects agree on both -- the Card box, CardFeatures,\n LightCarousel, Bento, the Awards feature card, the TrustPanel card,\n the CompareSection card, the Carousel item, the Comparison Panel\n column and both Pricing cards -- and they only agree because the two\n that did not were brought in one at a time.\n\n This role is named now and was deliberately not named before, and\n the difference is evidence rather than appetite. CLAUDE.md said\n there was no semantic radius scale because \"the components do not\n agree closely enough for a shared role to be honest\", which was true\n when it was written: the compare card sat at --radius-3xl and the\n carousel item at --radius-3xl with a 2em inset. Both have since been\n measured, argued and moved. A role declared then would have imposed\n a consensus; declared now it records one.\n\n It is a role, not a scale. There is still no --card-* family and no\n semantic step between radii -- naming the job is the whole point,\n and the same reasoning is why --panel-radius is NOT here: the eight\n --radius-xl consumers are a code block, a bar track, a table\n container, a discount pill, two public image variants, a modal and a\n terminal. That is not a family, and calling it one would be the\n mistake this comment is describing.\n\n scripts/card-shapes.json lists the eleven and lint:tokens checks it\n both ways, so a card that stops using the role and a registry entry\n that stops matching are both findings. */\n --card-radius: var(--shape-radius-2xl);\n --card-padding: var(--spacing-32);\n\n /* The inset a card takes when the viewport is too narrow to afford the\n full one. Four cards reached for this independently before it had a\n name -- Bento below sm, the Comparison Panel and Trust Panel below\n md, and LightCarousel with an em literal -- and three of the four\n picked exactly 24. That is the agreement that makes it a role rather\n than four local decisions.\n\n Two steps, not a scale. A card is either affording its inset or it\n is not; there is no third size, and a component that wants one is\n asking a design question rather than a token question. */\n --card-padding-compact: var(--spacing-24);\n\n /* ================================\n SEMANTIC ROLES - COLOUR\n ================================\n The tier the architecture always described and the components never\n had. Measured before this landed: 71.8% of the colour references in\n the atom layer pointed straight at a palette step — 38 distinct\n primitives across 233 references, where the roles underneath them\n number about thirty. That gap is why four text atoms ended up with\n four different inks, and why two components disagreed about which\n green means \"success\".\n\n None of these are new decisions. Every value is the step something\n already uses, and the text roles are the ones COLOR_ROLES in\n src/components/shared/token-scales.ts had already chosen as clearing\n 4.5:1 on white — that map should now resolve through these rather\n than reaching past them into the palette.\n\n Reach for the role, not the step. The palette stays available for\n what no role covers yet; when that happens, add the role.\n\n ---\n\n ONE SHEET. The blog used to declare its own copy of these names, on\n each blog element's :host, with seven of them at other values. It\n reads these now, as the shipped blog (www-blog-csg) does, and\n declares no token on a :host (__tests__/blog-host-tokens.test.ts),\n so the websites and the blog share this one sheet. */\n\n /* Text. -primary is the default ink for anything that reads as body\n or heading copy. -brand is blue-600 rather than blue-500 on purpose:\n blue-500 is 4.53:1 on pure white and fails on any tint. */\n --color-text-primary: var(--color-neutral-900);\n --color-text-secondary: var(--color-neutral-700);\n --color-text-muted: var(--color-neutral-600);\n /* Subtle sits on the page or a card, and nowhere else: on a band\n (surface-subtle, surface-muted) or a status tint, step up to\n -muted. No value can be both quieter than muted and 4.5:1 on every\n ground -- on surface-muted it would have to be muted -- so the rule\n is where it goes, not how dark it is. Dark mode decision 17. */\n --color-text-subtle: var(--color-neutral-500);\n --color-text-disabled: var(--color-neutral-400);\n --color-text-inverse: var(--color-neutral-0);\n /* Subordinate text on an inverse surface. --color-text-inverse is the\n high-emphasis step there; this is the one below it, and until now the\n system had no such step at all -- the light-side -secondary, -muted and\n -subtle roles invert to 1.91, 2.73 and 3.74 against\n --color-surface-inverse and cannot be used.\n\n Two components had already invented it independently and spelled it\n differently: bd-terminal-message with rgba(255,255,255,0.5) and\n bd-process-steps with --color-neutral-300 twice. neutral-300 is the\n value here because it is the portable one. Measured on the three\n inverse grounds in use -- neutral-900, neutral-800 and the #0b1626 the\n process-steps gradient ends on -- it reads 7.92, 5.85 and 8.00, while\n the white-at-half-alpha spelling reads 5.27, 3.89 and 5.32 and only\n clears 4.5 because the terminal's ground happens to be the darkest of\n the three.\n\n There is deliberately no -secondary-inverse: bd-cta-banner has a third\n tier at white 0.85 and it is one consumer, which is not a\n responsibility. An earlier draft of this note also called it a\n contrast failure, from a worst-case calculation against the lightest\n stop in its gradient. Sampling the pixels actually behind the text\n disproved that -- the radial highlight sits at 78% -10% and is mostly\n outside the banner, so the three tiers measure 4.60, 4.57 and 4.46 at\n their worst pixel rather than the 3.35, 2.84 and 2.13 the arithmetic\n predicted. The tier is fine; it is still not a role. */\n --color-text-muted-inverse: var(--color-neutral-300);\n /* Ink on --color-surface-media, fixed with it: a part that does not\n switch needs ink that does not switch either (the white button\n preset, dark mode finding 8). text-inverse and text-muted-inverse\n flip in a dark theme and would put dark ink on the dark frame --\n a video play icon at 3.13:1, a terminal's quieter lines at 1.91. */\n --color-text-on-media: var(--color-neutral-0);\n --color-text-on-media-muted: var(--color-neutral-300);\n --color-text-brand: var(--color-brand-600);\n /* Brand text, hovered: a link or a citation reference under the\n pointer. Before this role existed, the hover read\n --color-action-primary-active -- a pressed button fill used as ink.\n The value is the same blue-700, so nothing moves in this theme; the\n difference is that a fill and a text colour answer different\n questions, and a dark theme has to answer them differently. Measured\n in the Figma Dark mode study: the fill stays put on a dark page and\n the link it borrowed falls to 2.27:1. */\n --color-text-brand-hover: var(--color-brand-700);\n --color-text-success: var(--color-green-800);\n /* Warning text sits on the page, a card, surface-subtle (5.16) or its\n own tint (--color-surface-warning, 5.59) -- not on surface-muted,\n where it measures 4.49:1, a hair under 4.5. The same rule as\n -subtle above: the role is right and the ground is wrong, so the\n fix is the ground. Nothing in the package draws the pair today:\n bd-tag and bd-badge draw this yellow through --status-warning-text,\n on --status-warning-surface. The way a page reaches it is the\n color=\"warning\" value the text atoms take (token-scales.ts). */\n --color-text-warning: var(--color-yellow-800);\n --color-text-error: var(--color-red-700);\n\n /* Surfaces. The feedback four are the tints a message sits on, each\n measured against the matching --color-text-* step above: success\n 6.42, warning 5.59, error 6.83, info 5.72.\n\n -brand is the one to watch. --color-text-inverse on it measures\n 4.53:1 — it passes, with no headroom at all, and it is the same\n blue-500 the contrast note warns about elsewhere. White on brand is\n fine for a button label; do not build a tinted variant on top of it\n without re-measuring. */\n --color-surface-default: var(--color-neutral-0);\n /* The ground a self-contained content object sits on: one step off the\n page, so a card, tile or panel reads as its own object without\n needing a border or a shadow to say so. Twelve components were\n reaching past the surface family for this, eight of them declaring\n the same local alias, because the role did not exist.\n\n Container is not subtle. Subtle groups things that already belong\n together and is meant to recede; container is the default ground of\n an object that stands on its own. They also differ visibly -- the\n step between them is the difference between an object on the page\n and a wash behind a group -- so they are not interchangeable.\n\n The name means a visual container for content. It has nothing to do\n with CSS container queries. */\n --color-surface-container: var(--color-neutral-25);\n --color-surface-subtle: var(--color-neutral-50);\n --color-surface-muted: var(--color-neutral-100);\n --color-surface-inverse: var(--color-neutral-900);\n /* The frame around media: a video letterbox, a terminal panel. Dark in\n every theme, because what it frames is dark -- which is why it is\n not --color-surface-inverse, the polarity flip, that both used to\n read. Inverse turns light in a dark theme; a letterbox must not,\n and the terminal's own palette (blue-400, the traffic-light green)\n is only legible on a dark ground. Dark mode decision 15. */\n --color-surface-media: var(--color-neutral-900);\n /* The plate a multi-colour mark sits on: an award badge, a partner's\n logo, artwork whose owner fixed its colours. Light in every theme,\n the media frame's counterpart -- a mark drawn for a white page reads\n on this plate on a dark page too, so no mark needs a dark version\n and no page decides per mark. A one-ink mark does not take it: it\n draws in currentColor or a text role, and follows the theme. */\n --color-surface-mark: var(--color-neutral-0);\n --color-surface-brand: var(--color-brand-500);\n --color-surface-disabled: var(--color-neutral-100);\n /* The ground of a control while it is held down, one step below\n -muted (its hover). bd-back read neutral-200 for this and said in a\n no-token comment that the surface roles stopped at -muted; reading\n the primitive meant it could not follow a theme, and on a dark page\n it measured 1.48:1 under a label that did (dark mode finding 14). */\n --color-surface-pressed: var(--color-neutral-200);\n --color-surface-success: var(--color-green-50);\n --color-surface-warning: var(--color-yellow-50);\n --color-surface-error: var(--color-red-50);\n --color-surface-info: var(--color-blue-50);\n\n /* Borders, measured on --color-surface-default. Only the two that\n bound a live control clear the 3:1 WCAG 1.4.11 asks of a UI\n component: -default at 3.23 and -brand at 4.53.\n\n -subtle (1.66) and -disabled (2.27) sit below it on purpose.\n -subtle is a decorative hairline between things that already belong\n together, not the edge of anything actionable, and disabled controls\n are exempt under 1.4.3. Do not reach for -subtle to outline a\n control.\n\n -default's 3.23 holds on white and nowhere darker: on a band it is\n 2.88 (surface-subtle) and 2.51 (surface-muted), and on the brand\n tint 2.99. So a control drawn in it carries a fill of its own --\n surface-default, the ground it was measured on -- and its edge is\n read against that fill wherever it is placed. A field already does\n (--form-input-default-backgroundColor). A control with no fill, or\n whose fill IS this colour (the switch's off track), belongs on the\n page or a card, not on a band. The rule is where it goes; a darker\n -default would move every field edge in the system to fix a case\n nothing in the package draws. */\n --color-border-subtle: var(--color-neutral-200);\n --color-border-default: var(--color-neutral-400);\n --color-border-strong: var(--color-neutral-900);\n --color-border-brand: var(--color-brand-500);\n --color-border-disabled: var(--color-neutral-300);\n\n /* The boundary of a self-contained object -- a card, a panel, a\n navigation band -- drawn only so the object is perceptible, never so\n it looks operable. It is the border counterpart of\n --color-surface-container, and the two answer the same question from\n opposite sides: is this its own thing.\n\n It exists because eight components needed it and none could ask for\n it. Seven reached past the roles to --color-neutral-100 directly and\n one more declared a private --border-card-grey alias in seven files\n to say --color-neutral-50. Measured on --color-surface-default it is\n 1.29:1, and on --color-surface-container 1.23:1 -- deliberately below\n -subtle's 1.66, because -subtle is already spoken for as the hairline\n between things that belong together, and a long way below the 3:1\n WCAG 1.4.11 asks of anything actionable. That is the point: an object\n boundary is not a control edge, and must not read as one.\n\n -inverse is the same responsibility on an inverse surface, the way\n --color-text-inverse and --color-surface-inverse are, and not a\n second role. It is spelled as a proportion of --color-neutral-0\n rather than a raw rgba for the same reason\n --button-outline-white-border-default is: the value stays traceable\n to a token when the palette moves. Over --color-surface-inverse it\n measures 1.42:1, which puts it in the same perceptual band as the\n light value rather than at the 10.8:1 --color-border-subtle would\n give there.\n\n This role says what a low-emphasis boundary looks like. It does not\n say whether a component should have one -- that stays a component\n decision, and the evidence says the components genuinely disagree. */\n --color-border-container: var(--color-neutral-100);\n --color-border-container-inverse: color-mix(in srgb, var(--color-neutral-0) 12%, transparent);\n\n /* Action. The interactive ramp, one step down the palette per state.\n accent is this system's conversion colour — Buy now and the like —\n and is not a danger signal; see the bd-button story notes. */\n --color-action-primary: var(--color-brand-500);\n --color-action-primary-hover: var(--color-brand-600);\n --color-action-primary-active: var(--color-brand-700);\n --color-action-accent: var(--color-red-600);\n --color-action-accent-hover: var(--color-red-700);\n --color-action-accent-active: var(--color-red-800);\n /* The neutral action fill: the secondary button, and the ghost\n button's pressed state. Both read neutral-950 / 800 / 1000 straight\n from the palette, which no theme can reach -- and the dark page is\n neutral-950 too, so in a dark theme the fill would vanish into it\n (dark mode finding 8). A role gives the fill a value of its own in\n each theme. */\n --color-action-secondary: var(--color-neutral-950);\n --color-action-secondary-hover: var(--color-neutral-800);\n --color-action-secondary-active: var(--color-neutral-1000);\n /* Ink on an action fill: a button label, a checkmark, a radio dot, a\n switch thumb. Before this role existed the buttons read\n --color-text-inverse (\"text on an inverse surface\") and the controls\n read --color-surface-default (\"the page\"). Both resolve to white in\n this theme, which is why the borrowing never showed -- and both must\n flip to near-black in a dark one, which would turn every label and\n mark dark on its blue or red fill. White clears every action fill:\n 4.53 to 10.51:1 on the blue and red ones, 13.28 to 21:1 on the\n near-black secondary ones. Measured in the Figma Dark mode study,\n and re-measured on the live tokens 2026-10-15. */\n --color-action-on-fill: var(--color-neutral-0);\n /* Ink on a BRAND fill: a label, a checkmark, a dot or a thumb sitting on\n a colour from the brand ramp. White today, the same pixel\n --color-action-on-fill gives, so nothing moves. It exists because the\n two stop agreeing the moment a partner's brand is light: white on a\n typical brand orange is about 2.6:1, black about 8:1. A partner theme\n sets this to whichever clears its fill, and --color-action-on-fill\n stays white for the fills that are not the brand's -- the red accent\n and the near-black secondary, where black would fail. Part of the\n theme contract (src/tokens/themes/contract.ts). */\n --color-brand-on-fill: var(--color-neutral-0);\n\n /* ================================\n SEMANTIC ROLES - STACKING\n ================================\n Thirty z-index declarations across eight values that were never\n chosen relative to one another: -1, 1, 2, 10, 200, 1000, 1001 and\n 9999. Both bd-modal and the carousel sit on 9999, so there is no\n answer to which of the two wins — that is what an unscaled ladder\n costs.\n\n The rungs are far apart on purpose, so a component can take a rung\n and still stack its own internals inside it with a calc. A tooltip\n opened from inside a dialog has to clear the dialog, which is why\n it is the top rung rather than the first. */\n --z-below: -1;\n --z-base: 1;\n --z-raised: 2;\n --z-sticky: 200;\n --z-overlay: 1000;\n --z-modal: 1100;\n --z-tooltip: 1200;\n\n /* ================================\n SEMANTIC ROLES - OPACITY\n ================================\n One role, because one role is what the evidence supports. The dim\n end of a reduced-motion pulse is spelled three times in the atom\n layer — bd-button and bd-spinner at 0.4, bd-skeleton at 0.45 — and\n is the same intent each time: a mark that cannot spin should still\n read as busy.\n\n Disabled is deliberately absent. This system expresses disabled with\n the neutral ramp rather than by dimming, and the one token that said\n otherwise (--button-shared-disabled-opacity: 0.6) is unused. */\n --opacity-pulse: 0.4;\n\n /* ================================\n SEMANTIC ROLE - STATUS TONES\n ================================\n bd-badge, bd-tag and bd-alert say the same things -- six on the badge\n and the tag, five on the alert, which has no brand -- and each\n spelled them out for itself. The text colours already matched across\n badge and tag — the tag story says so — but by coincidence rather\n than construction, and the one place they had drifted proves the\n point: alert drew its success rule in green-600 where badge's\n success dot used green-700.\n\n Seven roles, because the three components need different weights of\n the same tone:\n\n -text ink on a tinted chip badge shade, tag\n -surface the light tint tag, alert\n -surface-strong the heavier tint badge shade\n -border the hairline tag\n -accent the saturated step badge dot, alert rule\n -fill / -on-fill a saturated chip and its ink badge fill\n\n What is deliberately *not* unified: a tag carries a border and sits\n on -surface, a badge has no border and sits on -surface-strong. That\n difference is documented in the tag story — the lighter fill is what\n lets the tag's border read — so it is expressed as two roles rather\n than flattened into one.\n\n Brand's -surface-strong is brand-100, which under Bitdefender is\n info's blue-100, so a brand badge on it could not be told from an\n info badge: the badge keeps sitting on -surface like its tag. The\n role exists for the blog, whose chips step between the brand's two\n washes, as every other tone's do. */\n\n --status-neutral-text: var(--color-neutral-700);\n --status-neutral-surface: var(--color-neutral-50);\n --status-neutral-surface-strong: var(--color-neutral-100);\n --status-neutral-border: var(--color-neutral-200);\n --status-neutral-accent: var(--color-neutral-700);\n --status-neutral-fill: var(--color-neutral-900);\n --status-neutral-on-fill: var(--color-neutral-0);\n\n --status-brand-text: var(--color-brand-600);\n --status-brand-surface: var(--color-brand-50);\n --status-brand-surface-strong: var(--color-brand-100);\n --status-brand-border: var(--color-brand-200);\n --status-brand-accent: var(--color-brand-600);\n --status-brand-fill: var(--color-brand-500);\n --status-brand-on-fill: var(--color-brand-on-fill);\n\n --status-info-text: var(--color-blue-600);\n --status-info-surface: var(--color-blue-50);\n --status-info-surface-strong: var(--color-blue-100);\n --status-info-border: var(--color-blue-200);\n --status-info-accent: var(--color-blue-500);\n --status-info-fill: var(--color-blue-500);\n --status-info-on-fill: var(--color-neutral-0);\n\n --status-success-text: var(--color-green-800);\n --status-success-surface: var(--color-green-50);\n --status-success-surface-strong: var(--color-green-100);\n --status-success-border: var(--color-green-200);\n --status-success-accent: var(--color-green-700);\n --status-success-fill: var(--color-green-700);\n --status-success-on-fill: var(--color-neutral-0);\n\n --status-warning-text: var(--color-yellow-800);\n --status-warning-surface: var(--color-yellow-50);\n --status-warning-surface-strong: var(--color-yellow-100);\n --status-warning-border: var(--color-yellow-200);\n --status-warning-accent: var(--color-yellow-700);\n --status-warning-fill: var(--color-yellow-500);\n --status-warning-on-fill: var(--color-neutral-900);\n\n --status-error-text: var(--color-red-700);\n --status-error-surface: var(--color-red-50);\n --status-error-surface-strong: var(--color-red-100);\n --status-error-border: var(--color-red-200);\n --status-error-accent: var(--color-red-600);\n --status-error-fill: var(--color-red-600);\n --status-error-on-fill: var(--color-neutral-0);\n\n /* ================================\n COMPONENT TOKENS - TYPOGRAPHY\n ================================ */\n\n\n /* ===============================================================\n FLUID TYPE - the roles that cannot hold their size on a phone.\n\n WHY. Measured in the Figma file (page \"Type on mobile\"), the\n binding constraint on large type is not how many lines a sentence\n takes, it is whether the longest UNBREAKABLE WORD fits the column.\n The column is the viewport minus twice --grid-padding-*, so a 320px\n phone gives type 288px -- 10% of the screen is gutter. Against that\n column, the widest real words in the nine shipping languages --\n harvested from live localized copy, see type-ceiling-words.ts and\n plans/LATER.md entry 8 -- set two ceilings: 28px for any copy\n (Swedish \"kalenderinbjudningar\", 10.16px of width per px of size)\n and 31px for headline copy (German \"Gründungsmitglied\", 9.05).\n heading-h1 is 48. It overflowed at 375 as well as at 320. (This\n rested on a Finnish word once; Finnish is not a market, and three\n real words beat it.)\n\n WHY NOT A BREAKPOINT STEP. Tried first and abandoned, measured:\n stepping h1 to 36 below sm still overflows at 320 (needs 327 of\n 288) and changes nothing at 576-767 where the ceiling is already 54.\n The constraint moves continuously with the column, because the\n column is a function of viewport width -- a step function\n approximates a line with a staircase. clamp() states the line.\n\n THE WINDOW IS 320 -> 992. The minimum is reached at 320 and the\n maximum at 992, which is the lg breakpoint. Above lg NOTHING\n changes from the sizes this system shipped with, so every desktop\n layout that has been reviewed stays exactly as reviewed, and the\n whole change is confined to the widths where the failures were\n measured.\n\n THE MIDDLE TERM CARRIES A rem, AND THAT IS NOT OPTIONAL.\n clamp(2rem, 4vw, 3rem) is the spelling everyone reaches for and it\n breaks text resize: a size depending only on viewport width ignores\n the reader's own font-size setting, which is WCAG 1.4.4. With a rem\n in the middle term the type still grows when the reader enlarges\n it. This package already refuses the equivalent mistake twice --\n line-height is always unitless, and --spacing-* is rem precisely so\n boxes grow with the text.\n\n THE TWO LITERALS PER ROLE ARE DERIVED, NOT CHOSEN. For a role\n running from min m to max M across the window V1..V2:\n\n slope = (M - m) / (V2 - V1) px of size per px of width\n vw term = slope x 100\n rem term = (m - slope x V1) / 16\n\n With V1=320 and V2=992 that is (M-m)/6.72 vw and\n (m - (M-m)/2.1) / 16 rem. Every pair below is that arithmetic and\n nothing else; each line states its own m and M so it can be checked\n without re-deriving. Changing the mobile ladder means changing the\n -fontSizeMin token and re-running the two formulas.\n\n THE MOBILE LADDER IS THE DESIGN DECISION HERE, and it is these six\n numbers: 30 27 24 21 18 16 for h1 through h6. Its ratios are 1.11,\n 1.13, 1.14, 1.17, 1.13 -- near-even, against the desktop ladder's\n irregular 1.33, 1.13, 1.33, 1.20, 1.11. A phone has less range to\n spend (16 to the 31px headline ceiling, a factor of 1.94, where\n desktop has 18 to 48, a factor of 2.67), so the ladder has to\n compress, and compressing it evenly is what keeps six levels\n distinguishable. Measured on the harvest: h1 at 30 sets the widest\n headline word in 272px of a 288px column. The widest word of any\n tier would need 305, so a headline word wider than 960px per 100px\n of size is a stated copy constraint (LATER.md entry 8) rather than\n a margin the ladder holds -- none of the five such words is a\n headline today.\n\n WHAT IS DELIBERATELY NOT FLUID.\n - Every role at 24px and below except body-lead. Nothing that small\n overflows, and the small end's own failure is measure, not\n overflow -- see below.\n - display-lg, display-xl, display-2xl, display-3xl (60 to 128px).\n Above display-md the family has NO mobile identity to give it:\n four roles would all have to squeeze between 30 and the 31px\n headline ceiling. They are desktop-only, and a component that\n needs one of them on a phone should reach for a heading role\n instead. Recorded rather than papered over.\n - body-regular at 16px. It runs 40 characters per line on a 288px\n column, which the study first called \"below the comfortable\n 45-75 band\" -- and that band is a print and desktop yardstick.\n Reaching 45 CPL on a 288px column needs 14.2px body text, and 50\n CPL needs 12.8px; applying it to a phone trades the 16px\n accessibility floor for a soft readability target. 40 characters\n is what every phone does. body-lead is the one prose role that\n does move, 20 -> 18, because at 20 it ran 32 characters -- five\n or six words a line -- and an intro paragraph has no claim on\n being the largest thing on a small screen.\n =============================================================== */\n\n /* Heading Tokens */\n /* fluid: 30px at 320 -> 48px at 992. (48-30)/6.72=2.6786vw, (30-(48-30)/2.1)/16=1.33929rem */\n --typography-heading-h1-fontSizeMin: 1.875rem; /* 30px */\n --typography-heading-h1-fontSize: clamp(\n var(--typography-heading-h1-fontSizeMin),\n calc(1.33929rem + 2.6786vw),\n var(--typography-fontSize-5xl)\n );\n --typography-heading-h1-fontWeight: var(--typography-fontWeight-bold);\n --typography-heading-h1-lineHeight: var(--typography-lineHeight-tight);\n --typography-heading-h1-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-heading-h1-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 27px at 320 -> 36px at 992. (36-27)/6.72=1.3393vw, (27-(36-27)/2.1)/16=1.41964rem */\n --typography-heading-h2-fontSizeMin: 1.6875rem; /* 27px */\n --typography-heading-h2-fontSize: clamp(\n var(--typography-heading-h2-fontSizeMin),\n calc(1.41964rem + 1.3393vw),\n var(--typography-fontSize-4xl)\n );\n --typography-heading-h2-fontWeight: var(--typography-fontWeight-bold);\n --typography-heading-h2-lineHeight: var(--typography-lineHeight-tight);\n --typography-heading-h2-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-heading-h2-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 24px at 320 -> 32px at 992. (32-24)/6.72=1.1905vw, (24-(32-24)/2.1)/16=1.26190rem */\n --typography-heading-h3-fontSizeMin: 1.5rem; /* 24px */\n --typography-heading-h3-fontSize: clamp(\n var(--typography-heading-h3-fontSizeMin),\n calc(1.26190rem + 1.1905vw),\n var(--typography-fontSize-3xl)\n );\n --typography-heading-h3-fontWeight: var(--typography-fontWeight-semibold);\n --typography-heading-h3-lineHeight: var(--typography-lineHeight-130);\n --typography-heading-h3-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-heading-h3-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 21px at 320 -> 24px at 992. (24-21)/6.72=0.4464vw, (21-(24-21)/2.1)/16=1.22321rem */\n --typography-heading-h4-fontSizeMin: 1.3125rem; /* 21px */\n --typography-heading-h4-fontSize: clamp(\n var(--typography-heading-h4-fontSizeMin),\n calc(1.22321rem + 0.4464vw),\n var(--typography-fontSize-2xl)\n );\n --typography-heading-h4-fontWeight: var(--typography-fontWeight-semibold);\n --typography-heading-h4-lineHeight: var(--typography-lineHeight-130);\n --typography-heading-h4-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-heading-h4-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 18px at 320 -> 20px at 992. (20-18)/6.72=0.2976vw, (18-(20-18)/2.1)/16=1.06548rem */\n --typography-heading-h5-fontSizeMin: 1.125rem; /* 18px */\n --typography-heading-h5-fontSize: clamp(\n var(--typography-heading-h5-fontSizeMin),\n calc(1.06548rem + 0.2976vw),\n var(--typography-fontSize-xl)\n );\n --typography-heading-h5-fontWeight: var(--typography-fontWeight-medium);\n --typography-heading-h5-lineHeight: var(--typography-lineHeight-140);\n --typography-heading-h5-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-heading-h5-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 16px at 320 -> 18px at 992. (18-16)/6.72=0.2976vw, (16-(18-16)/2.1)/16=0.94048rem */\n --typography-heading-h6-fontSizeMin: 1rem; /* 16px */\n --typography-heading-h6-fontSize: clamp(\n var(--typography-heading-h6-fontSizeMin),\n calc(0.94048rem + 0.2976vw),\n var(--typography-fontSize-lg)\n );\n --typography-heading-h6-fontWeight: var(--typography-fontWeight-medium);\n --typography-heading-h6-lineHeight: var(--typography-lineHeight-145);\n --typography-heading-h6-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-heading-h6-fontFamily: var(--typography-fontFamily-sans);\n\n /* Body Text Tokens */\n --typography-body-large-fontSize: var(--typography-fontSize-lg);\n --typography-body-large-fontWeight: var(--typography-fontWeight-normal);\n --typography-body-large-lineHeight: var(--typography-lineHeight-145);\n --typography-body-large-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-body-large-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-body-regular-fontSize: var(--typography-fontSize-base);\n --typography-body-regular-fontWeight: var(--typography-fontWeight-normal);\n --typography-body-regular-lineHeight: var(--typography-lineHeight-normal);\n --typography-body-regular-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --typography-body-regular-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-body-small-fontSize: var(--typography-fontSize-sm);\n --typography-body-small-fontWeight: var(--typography-fontWeight-normal);\n --typography-body-small-lineHeight: var(--typography-lineHeight-145);\n --typography-body-small-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-body-small-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 18px at 320 -> 20px at 992. (20-18)/6.72=0.2976vw, (18-(20-18)/2.1)/16=1.06548rem */\n --typography-body-lead-fontSizeMin: 1.125rem; /* 18px */\n --typography-body-lead-fontSize: clamp(\n var(--typography-body-lead-fontSizeMin),\n calc(1.06548rem + 0.2976vw),\n var(--typography-fontSize-xl)\n );\n --typography-body-lead-fontWeight: var(--typography-fontWeight-normal);\n --typography-body-lead-lineHeight: var(--typography-lineHeight-140);\n --typography-body-lead-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-body-lead-fontFamily: var(--typography-fontFamily-sans);\n\n /* Label Tokens */\n --typography-label-default-fontSize: var(--typography-fontSize-sm);\n --typography-label-default-fontWeight: var(--typography-fontWeight-medium);\n --typography-label-default-lineHeight: var(--typography-lineHeight-normal);\n --typography-label-default-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --typography-label-default-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-label-small-fontSize: var(--typography-fontSize-xs);\n --typography-label-small-fontWeight: var(--typography-fontWeight-medium);\n --typography-label-small-lineHeight: var(--typography-lineHeight-normal);\n --typography-label-small-letterSpacing: var(--typography-letterSpacing-wide);\n --typography-label-small-fontFamily: var(--typography-fontFamily-sans);\n\n /* The only role for the 11px step, and it carried a size and nothing\n else -- so anything using it inherited its leading from whatever it\n happened to sit inside, which is not a typography contract. The four\n missing axes match label-small, one step up. It has no consumers\n today; the five components that render 11px reach past it for the\n primitive, and moving them is a visual change this phase does not\n make. */\n --typography-label-extra-small-fontSize: var(--typography-fontSize-xxs);\n --typography-label-extra-small-fontWeight: var(--typography-fontWeight-medium);\n --typography-label-extra-small-lineHeight: var(--typography-lineHeight-normal);\n --typography-label-extra-small-letterSpacing: var(--typography-letterSpacing-wide);\n --typography-label-extra-small-fontFamily: var(--typography-fontFamily-sans);\n\n /* Deliberately size-only: bd-p variant=xsmall composes it with\n body-small's weight, leading and tracking, so giving it axes of its\n own would create a second answer to those questions.\n\n It lives in the body family, not the label one. It was\n --typography-label-xsmall-fontSize, one character away from\n label-extra-small, which is a complete 11px role with a weight, a\n leading and a family. Two names that close, describing things that\n different, is a trap: one is a role you can ask for and the other is\n a bare size that matches any one-axis 12px declaration on size\n alone. Naming it for the component that owns it says which is\n which. */\n --typography-body-xsmall-fontSize: var(--typography-fontSize-xs);\n\n --typography-label-large-fontSize: var(--typography-fontSize-base);\n --typography-label-large-fontWeight: var(--typography-fontWeight-medium);\n --typography-label-large-lineHeight: var(--typography-lineHeight-normal);\n --typography-label-large-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --typography-label-large-fontFamily: var(--typography-fontFamily-sans);\n\n /* Control Label Tokens\n\n label-* at control leading. Every label-* rung is lineHeight-normal\n (1.5); a control -- a badge, a button -- needs 1.25 so its box can be\n padding-driven without the line box forcing it taller.\n scripts/typography-pairings.json already records 16px at 1.25 as\n physically valid \"because control text needs it\", and rule 8 says\n that file is a technical boundary rather than authorization, so the\n authorization is here: this is the role that means \"a label on a\n control\".\n\n Motivated by badge.css.ts and button.css.ts's .bd-contact-btn, which\n each arrived independently at medium + tight and had no role to ask\n for. The three rungs mirror label-small / label-default /\n label-large step for step. The one place they do not mirror is\n tracking on the small rung: label-small is letterSpacing-wide, but\n badge -- the atom this rung exists for -- renders normal, so the rung\n describes its consumer rather than its twin. Everywhere else the only\n axis that differs from the label-* rung of the same name is the\n leading. */\n --typography-control-label-small-fontSize: var(--typography-fontSize-xs);\n --typography-control-label-small-fontWeight: var(--typography-fontWeight-medium);\n --typography-control-label-small-lineHeight: var(--typography-lineHeight-tight);\n --typography-control-label-small-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-control-label-small-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-control-label-default-fontSize: var(--typography-fontSize-sm);\n --typography-control-label-default-fontWeight: var(--typography-fontWeight-medium);\n --typography-control-label-default-lineHeight: var(--typography-lineHeight-tight);\n --typography-control-label-default-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-control-label-default-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-control-label-large-fontSize: var(--typography-fontSize-base);\n --typography-control-label-large-fontWeight: var(--typography-fontWeight-medium);\n --typography-control-label-large-lineHeight: var(--typography-lineHeight-tight);\n --typography-control-label-large-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-control-label-large-fontFamily: var(--typography-fontFamily-sans);\n\n /* The rung label-xl used to occupy. label-xl was lg/medium/normal and\n documented in vertical-rhythm.stories.ts as \"the name of a large\n control\" -- the same job this family names, but at label leading\n rather than control leading, and with no consumer in the package.\n Retired in favour of this. Note it was byte-identical to heading-h6,\n which stays: that pair was two questions with coincidentally equal\n answers, and heading-h6 is the one bd-h actually renders. */\n --typography-control-label-xl-fontSize: var(--typography-fontSize-lg);\n --typography-control-label-xl-fontWeight: var(--typography-fontWeight-medium);\n --typography-control-label-xl-lineHeight: var(--typography-lineHeight-tight);\n --typography-control-label-xl-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-control-label-xl-fontFamily: var(--typography-fontFamily-sans);\n\n /* Caption Tokens */\n --typography-caption-default-fontSize: var(--typography-fontSize-xs);\n --typography-caption-default-fontWeight: var(--typography-fontWeight-normal);\n --typography-caption-default-lineHeight: var(--typography-lineHeight-normal);\n --typography-caption-default-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --typography-caption-default-fontFamily: var(--typography-fontFamily-sans);\n --typography-caption-default-color: var(--color-text-muted);\n\n /* \"small\" is not smaller. It is caption-default with the tracking\n opened to wide -- 0.025em, which is the design's caption/small at\n 2.5% -- and every other axis equal. The repeated axes are the role\n being complete, as every role is, not a second copy to remove;\n bd-caption size=\"sm\" reads all five. */\n --typography-caption-small-fontSize: var(--typography-fontSize-xs);\n --typography-caption-small-fontWeight: var(--typography-fontWeight-normal);\n --typography-caption-small-lineHeight: var(--typography-lineHeight-normal);\n --typography-caption-small-letterSpacing: var(\n --typography-letterSpacing-wide\n );\n --typography-caption-small-fontFamily: var(--typography-fontFamily-sans);\n\n /* Link Tokens */\n --typography-link-default-fontSize: inherit;\n --typography-link-default-fontWeight: var(--typography-fontWeight-normal);\n --typography-link-default-lineHeight: inherit;\n --typography-link-default-letterSpacing: inherit;\n --typography-link-default-fontFamily: inherit;\n --typography-link-default-textDecoration-default: underline;\n --typography-link-default-textDecoration-hover: none;\n /* The gap between the text and its underline. It was spelled as a 2px\n literal in seven places in bd-link, on a property the length rule\n does not check, so nothing could see it and nothing could change it\n in one move. */\n --typography-link-underlineOffset: var(--spacing-2);\n --typography-link-underlineThickness: var(--border-width-2);\n\n --typography-link-standalone-fontSize: var(--typography-fontSize-base);\n --typography-link-standalone-fontWeight: var(--typography-fontWeight-medium);\n --typography-link-standalone-lineHeight: var(--typography-lineHeight-normal);\n --typography-link-standalone-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --typography-link-standalone-fontFamily: var(--typography-fontFamily-sans);\n --typography-link-standalone-textDecoration-default: underline;\n --typography-link-standalone-textDecoration-hover: none;\n\n /* Code Tokens */\n --typography-code-inline-fontSize: 0.875em;\n --typography-code-inline-fontWeight: var(--typography-fontWeight-normal);\n --typography-code-inline-lineHeight: inherit;\n --typography-code-inline-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --typography-code-inline-fontFamily: var(--typography-fontFamily-mono);\n\n --typography-code-block-fontSize: var(--typography-fontSize-sm);\n --typography-code-block-fontWeight: var(--typography-fontWeight-normal);\n --typography-code-block-lineHeight: var(--typography-lineHeight-relaxed);\n --typography-code-block-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-code-block-fontFamily: var(--typography-fontFamily-mono);\n\n /* Display Typography Tokens */\n --typography-display-3xl-fontSize: var(--typography-fontSize-9xl);\n --typography-display-3xl-fontWeight: var(--typography-fontWeight-bold);\n --typography-display-3xl-lineHeight: var(--typography-lineHeight-tight);\n --typography-display-3xl-letterSpacing: var(--typography-letterSpacing-tight);\n --typography-display-3xl-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-display-2xl-fontSize: var(--typography-fontSize-8xl);\n --typography-display-2xl-fontWeight: var(--typography-fontWeight-bold);\n --typography-display-2xl-lineHeight: var(--typography-lineHeight-tight);\n --typography-display-2xl-letterSpacing: var(--typography-letterSpacing-tight);\n --typography-display-2xl-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-display-xl-fontSize: var(--typography-fontSize-7xl);\n --typography-display-xl-fontWeight: var(--typography-fontWeight-bold);\n --typography-display-xl-lineHeight: var(--typography-lineHeight-tight);\n --typography-display-xl-letterSpacing: var(--typography-letterSpacing-tight);\n --typography-display-xl-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-display-lg-fontSize: var(--typography-fontSize-6xl);\n --typography-display-lg-fontWeight: var(--typography-fontWeight-bold);\n --typography-display-lg-lineHeight: var(--typography-lineHeight-tight);\n --typography-display-lg-letterSpacing: var(--typography-letterSpacing-tight);\n --typography-display-lg-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 30px at 320 -> 48px at 992. (48-30)/6.72=2.6786vw, (30-(48-30)/2.1)/16=1.33929rem */\n --typography-display-md-fontSizeMin: 1.875rem; /* 30px */\n --typography-display-md-fontSize: clamp(\n var(--typography-display-md-fontSizeMin),\n calc(1.33929rem + 2.6786vw),\n var(--typography-fontSize-5xl)\n );\n --typography-display-md-fontWeight: var(--typography-fontWeight-bold);\n --typography-display-md-lineHeight: var(--typography-lineHeight-tight);\n --typography-display-md-letterSpacing: var(--typography-letterSpacing-tight);\n --typography-display-md-fontFamily: var(--typography-fontFamily-sans);\n\n /* 36px at every width: the floor meets the 4xl ceiling, so the fluid\n middle term never wins. It is kept for a brand that lowers the floor\n (it ramps 30px at 320 -> 36px at 992). */\n --typography-display-sm-fontSizeMin: 2.25rem; /* 36px */\n --typography-display-sm-fontSize: clamp(\n var(--typography-display-sm-fontSizeMin),\n calc(1.69643rem + 0.8929vw),\n var(--typography-fontSize-4xl)\n );\n --typography-display-sm-fontWeight: var(--typography-fontWeight-bold);\n --typography-display-sm-lineHeight: var(--typography-lineHeight-tight);\n --typography-display-sm-letterSpacing: var(--typography-letterSpacing-tight);\n --typography-display-sm-fontFamily: var(--typography-fontFamily-sans);\n\n /* ================================\n COMPONENT TOKENS - FORM\n ================================ */\n\n /* Form Label Tokens\n\n The type of a field's label is the label role's, read through: the\n default and small rungs were the same five values as\n --typography-label-default-* and -small-*, written out a second time,\n so a change to the role would have reached bd-text and missed every\n form. Colour and margin stay here; they are the form's own and no\n role carries them.\n\n Large differs on one axis. Its size is 18px where label-large is\n 16px, set to the large field's own text (--form-input-large-fontSize)\n so the label and the value read at the same step; a field's own\n label at size lg, bd-label size=lg and the bd-fieldset legend all\n render it. That size stays a\n primitive -- no label role sits at 18px -- and the other four axes\n are label-large's. */\n --form-label-default-fontSize: var(--typography-label-default-fontSize);\n --form-label-default-fontWeight: var(--typography-label-default-fontWeight);\n --form-label-default-lineHeight: var(--typography-label-default-lineHeight);\n --form-label-default-letterSpacing: var(--typography-label-default-letterSpacing);\n --form-label-default-fontFamily: var(--typography-label-default-fontFamily);\n --form-label-default-color: var(--color-text-primary);\n --form-label-default-marginBottom: var(--spacing-4);\n\n --form-label-large-fontSize: var(--typography-fontSize-lg);\n --form-label-large-fontWeight: var(--typography-label-large-fontWeight);\n --form-label-large-lineHeight: var(--typography-label-large-lineHeight);\n --form-label-large-letterSpacing: var(--typography-label-large-letterSpacing);\n --form-label-large-fontFamily: var(--typography-label-large-fontFamily);\n --form-label-large-color: var(--color-text-primary);\n --form-label-large-marginBottom: var(--spacing-8);\n\n --form-label-small-fontSize: var(--typography-label-small-fontSize);\n --form-label-small-fontWeight: var(--typography-label-small-fontWeight);\n --form-label-small-lineHeight: var(--typography-label-small-lineHeight);\n --form-label-small-letterSpacing: var(--typography-label-small-letterSpacing);\n --form-label-small-fontFamily: var(--typography-label-small-fontFamily);\n --form-label-small-color: var(--color-text-primary);\n --form-label-small-marginBottom: var(--spacing-4);\n\n --form-label-required-color: var(--status-error-accent);\n --form-label-required-marginLeft: var(--spacing-4);\n\n /* Form Input Tokens */\n\n /* The height of a control is derived, not chosen: padding, type step and\n line-height, the same three bd-button derives its own height from.\n That derivation is what keeps a field and a button of the same size\n the same height on one row of a form.\n\n These three said --dimension-36/44/56 and stated a height the system\n does not draw. A small field renders 33.5px and a large one 54.5px;\n only medium agreed, and it agreed by coincidence. Nothing read them,\n so nothing surfaced the disagreement -- which is the argument for\n spelling the derivation here rather than a rounder number, and for\n shared/form-field.css.ts reading these instead of repeating the calc\n three times. Changing them changes no pixel; it changes what the\n package tells a consumer the height is.\n\n The derivation counts padding but not the 1px border on each edge,\n and the box is border-box, so these heights leave the line box 2px\n taller than the content box. An input hides that -- it centres its\n line and paints into the padding -- but a select clips at the\n content box, and at md its descenders lost their bottoms.\n Correcting the height would move a field off its button, so the\n border comes out of the block padding instead: see the note after\n the size rules in shared/form-field.css.ts. */\n --form-input-small-height: calc(\n var(--spacing-8) * 2 + var(--typography-fontSize-sm) * var(--typography-lineHeight-tight)\n );\n --form-input-small-fontSize: var(--typography-fontSize-sm);\n --form-input-small-padding: var(--spacing-8) var(--spacing-12);\n --form-input-small-borderRadius: var(--shape-radius-sm);\n\n --form-input-medium-height: calc(\n var(--spacing-12) * 2 + var(--typography-fontSize-base) * var(--typography-lineHeight-tight)\n );\n --form-input-medium-fontSize: var(--typography-fontSize-base);\n --form-input-medium-padding: var(--spacing-12) var(--spacing-16);\n --form-input-medium-borderRadius: var(--shape-radius-md);\n\n --form-input-large-height: calc(\n var(--spacing-16) * 2 + var(--typography-fontSize-lg) * var(--typography-lineHeight-tight)\n );\n --form-input-large-fontSize: var(--typography-fontSize-lg);\n --form-input-large-padding: var(--spacing-16) var(--spacing-20);\n --form-input-large-borderRadius: var(--shape-radius-lg);\n\n --form-input-default-backgroundColor: var(--color-surface-default);\n --form-input-default-borderColor: var(--color-border-default);\n --form-input-default-borderWidth: var(--border-width-1);\n --form-input-default-color: var(--color-text-primary);\n --form-input-default-fontFamily: var(--typography-fontFamily-sans);\n /* There is deliberately no --form-input-default-lineHeight. There was\n one, it said normal (1.5), it had no consumer, and it described the\n opposite of what the control does: form-field.css.ts sets tight and\n records why -- at normal the line box stood taller than the content\n box the derived height leaves, and the select clipped the descenders\n of its own option text.\n\n It is not restored as tight either. The control's height is\n DERIVED from padding, type step and this leading, so exposing the\n leading as a component token would let a consuming page change the\n height by setting something that reads like a type preference. The\n primitive is used at the one site that needs it, with its reason on\n the line, which is what keeps the box and the text unable to\n disagree. */\n\n --form-input-focus-borderColor: var(--color-border-brand);\n --form-input-focus-boxShadow: var(--shadow-focus-outline-blue);\n\n --form-input-error-backgroundColor: var(--status-error-surface);\n --form-input-error-borderColor: var(--status-error-accent);\n\n --form-input-success-backgroundColor: var(--status-success-surface);\n --form-input-success-borderColor: var(--color-green-600);\n\n --form-input-disabled-backgroundColor: var(--color-surface-disabled);\n --form-input-disabled-borderColor: var(--color-border-disabled);\n --form-input-disabled-color: var(--color-text-subtle);\n\n /* Form Help Text Tokens */\n --form-help-text-default-fontSize: var(--typography-fontSize-xs);\n --form-help-text-default-fontWeight: var(--typography-fontWeight-normal);\n --form-help-text-default-lineHeight: var(--typography-lineHeight-normal);\n --form-help-text-default-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --form-help-text-default-fontFamily: var(--typography-fontFamily-sans);\n --form-help-text-default-color: var(--color-text-muted);\n --form-help-text-default-marginTop: var(--spacing-4);\n\n /* Measured against the tint the field itself takes in each state, not\n against white — that is the background this text actually sits\n beside. red-600 on red-50 is 4.92 and needs nothing.\n\n success was green-700, which is 4.75 on white but only 4.51 on\n green-50: passing by a hundredth, and the kind of margin that stops\n passing the moment a tint moves. green-800 is 6.42 there, and is\n already the step --color-text-success names for this role. */\n --form-help-text-error-color: var(--status-error-accent);\n --form-help-text-success-color: var(--color-text-success);\n\n /* Form Layout Tokens\n\n These were written against a step-indexed spacing scale, where the\n number is the position on the scale, and never converted when the\n scale became pixel-named, where the number is the value. So\n --spacing-6 stopped meaning \"the sixth step, 24px\" and started\n meaning 6px, silently — every token still resolved, and the lint has\n no way to see it.\n\n bd-fieldset consumes fieldSpacing, so a form built from it has been\n stacking its fields 6px apart. Decoded as indices these read 24 and\n 32, which is what a form actually wants and what the value is set to\n here. */\n --form-fieldSpacing: var(--spacing-24);\n\n /* ================================\n COMPONENT TOKENS - BUTTON\n ================================ */\n\n /* Button Size Tokens */\n /* One size family. There were two — this one and --button-size-*, with\n different padding in each and neither matching what the component\n rendered. bd-button reads these.\n\n No -height. The component derives its height from padding, type step\n and line-height rather than pinning it, which is what keeps it equal\n to a field of the same size; a height token here would be a second\n answer that could disagree. */\n --button-small-fontSize: var(--typography-fontSize-sm);\n --button-small-padding: var(--spacing-8) var(--spacing-16);\n --button-small-gap: var(--spacing-4);\n --button-small-borderRadius: var(--shape-radius-sm);\n\n --button-medium-fontSize: var(--typography-fontSize-base);\n --button-medium-padding: var(--spacing-12) var(--spacing-24);\n --button-medium-gap: var(--spacing-8);\n --button-medium-borderRadius: var(--shape-radius-md);\n\n --button-large-fontSize: var(--typography-fontSize-lg);\n --button-large-padding: var(--spacing-16) var(--spacing-32);\n --button-large-gap: var(--spacing-8);\n --button-large-borderRadius: var(--shape-radius-lg);\n\n /* Removed 2026-10-15, because nothing read them: the seven\n --button-default-* (a state no variant draws), and\n --button-shared-focus-boxShadow, -disabled-opacity and\n -disabled-cursor (the button draws focus with the outline below and\n disabled through its own rules). Likewise the three\n --form-input-*-placeholderColor tokens, the --form-section-,\n -label- and -helpTextSpacing trio, and two --layout-awards- widths.\n None was mirrored in Figma, which carries no component tokens. */\n /* Button Shared Tokens */\n --button-shared-fontFamily: var(--typography-fontFamily-sans);\n --button-shared-fontWeight: var(--typography-fontWeight-medium);\n --button-shared-lineHeight: var(--typography-lineHeight-tight);\n --button-shared-letterSpacing: var(--typography-letterSpacing-normal);\n --button-shared-borderWidth: var(--border-width-1);\n --button-shared-transition-properties: background-color, border-color, color,\n box-shadow;\n --button-shared-transition-duration: var(--transition-duration-normal);\n --button-shared-transition-easing: var(--transition-easing-smooth);\n --button-shared-focus-outline: var(--focus-outline-traditional);\n --button-shared-focus-outlineOffset: var(--focus-outline-offset);\n\n /* ---- variant colours -------------------------------------------\n Named for the kind attribute they serve, because that is the public\n vocabulary: primary, secondary, tertiary, ghost, accent, white and\n outline-white. They used to be named tertiaryPrimary,\n tertiarySecondary and cta, which no consumer could map onto the\n component without reading its source.\n\n bd-button aliases each of these onto a --button-*-bg property on its\n own :host, so there are two override points and they do different\n jobs: set the token on :root to move every button in the document,\n or the alias on the bd-button element to move one. The alias is also what\n surface=\"dark\" switches, which is why the component keeps it.\n\n Every value here is what the component already renders. The old\n values had drifted apart from it in four places — secondary's hover\n and active, tertiary's hover border and ghost's active fill — so\n wiring them up unchanged would have moved pixels.\n\n The per-variant -focus and -disabled sets are gone. The component\n draws its focus ring as an offset outline -- the blue one through\n --button-shared-focus-outline by default, the white one from\n --focus-outline-traditional-inverse under surface=\"dark\" and on\n white and outline-white -- and one shared disabled treatment;\n thirty tokens described per-variant versions of both that nothing\n rendered. --button-empty-* went with them: there is no empty kind. */\n\n /* primary: blue fill */\n --button-primary-background-default: var(--color-action-primary);\n --button-primary-background-hover: var(--color-action-primary-hover);\n --button-primary-background-active: var(--color-action-primary-active);\n --button-primary-text-default: var(--color-brand-on-fill);\n\n /* secondary: near-black fill */\n --button-secondary-background-default: var(--color-action-secondary);\n --button-secondary-background-hover: var(--color-action-secondary-hover);\n --button-secondary-background-active: var(--color-action-secondary-active);\n --button-secondary-text-default: var(--color-action-on-fill);\n\n /* tertiary: blue outline. text-hover is blue-600, not blue-500: on the\n blue-50 hover fill the lighter step measures 4.20:1 and fails 1.4.3,\n where blue-600 gives 5.72.\n .\n text-default is blue-600 for the same reason, applied to the state a\n reader actually sits in. The line above fixed hover, where blue-500\n failed outright, and left the resting state on blue-500 at 4.53:1 --\n passing 4.5 by 0.03 on pure white and failing on any tint, which is\n the margin CLAUDE.md says is not real. Both states now name the same\n ink role, and the role is the category-correct one: --color-action-primary\n is an interaction role for fills, not ink, and it was being read by a\n color: property. Measured 4.53:1 -> 6.18:1 on all six consumers.\n The ring is deliberately NOT changed here and stays blue-500: it is\n non-text UI at a 3:1 bar, it passes, and moving it would mean naming a\n blue-600 border role that does not exist. See the plan's backlog. */\n --button-tertiary-text-default: var(--color-text-brand);\n --button-tertiary-border-default: var(--color-border-brand);\n --button-tertiary-background-hover: var(--color-surface-info);\n --button-tertiary-text-hover: var(--color-text-brand);\n --button-tertiary-border-hover: var(--color-action-primary-hover);\n --button-tertiary-background-active: var(--color-action-primary);\n --button-tertiary-text-active: var(--color-brand-on-fill);\n\n /* ghost: dark outline */\n --button-ghost-text-default: var(--color-text-primary);\n --button-ghost-border-default: var(--color-border-strong);\n --button-ghost-background-hover: var(--color-surface-muted);\n --button-ghost-text-hover: var(--color-text-primary);\n --button-ghost-background-active: var(--color-action-secondary);\n --button-ghost-text-active: var(--color-action-on-fill);\n\n /* accent: red fill. This system's conversion colour — Buy now and the\n like — not a danger signal; there is deliberately no danger variant.\n red-600, not red-500: white on red-500 measures 4.00:1 and fails. */\n --button-accent-background-default: var(--color-action-accent);\n --button-accent-background-hover: var(--color-action-accent-hover);\n --button-accent-background-active: var(--color-action-accent-active);\n --button-accent-text-default: var(--color-action-on-fill);\n --button-accent-ring-default: transparent;\n\n /* white and outline-white: fixed presets for a solid-colour banner,\n where even a surface=\"dark\" primary would sit too close in tone.\n They ignore surface on purpose.\n\n text-default is blue-600 rather than blue-500: white is the fill\n here, and blue-500 on white is 4.53:1 — the marginal step the\n contrast note warns against for text.\n\n The translucent whites were rgba(255,255,255,…) and #ffffff8c\n literals, which no theme could reach. color-mix keeps the alpha and\n puts the colour back on the palette. */\n --button-white-background-default: var(--color-neutral-0);\n --button-white-background-hover: var(--color-brand-50);\n --button-white-background-active: var(--color-brand-100);\n /* A ramp step by name (--color-brand-600), not --color-text-brand. The\n preset is fixed -- a white fill on a brand band, in any theme -- so\n its ink must be fixed too. Reading the role mixed a fill that never\n switches with a label that does: text-brand goes light in a dark\n theme and measured 2.36:1 on the white fill (dark mode finding 8).\n\n The ramp keeps that property and still follows the business line: a\n step never flips with light or dark, but it is the brand's step, so\n the label matches the band it sits on under every brand. It was\n --color-blue-600 when blue was the only brand. */\n --button-white-text-default: var(--color-brand-600);\n\n --button-outline-white-text-default: var(--color-brand-on-fill);\n /* 71% rather than 55%. This edge is the only thing bounding an\n outline-white button, so it carries the 3:1 of WCAG 1.4.11 on its\n own. Measured over the grounds the preset is actually used on, 55%\n gave 2.34 on blue-500 and 2.90 on blue-600 and only cleared on\n blue-700 at 3.65. 71% is the lowest value that clears all three\n with one number, so the token stops depending on which blue is\n behind it. */\n --button-outline-white-border-default: color-mix(in srgb, var(--color-brand-on-fill) 71%, transparent);\n /* Hover and press DARKEN the band, they do not wash it white. A white\n wash lightened the blue under a white label: 3.91:1 on hover and\n 3.38 pressed over blue-500, and 4.22 pressed over blue-600 -- under\n the 4.5 the label needs. 10% and 20% black take blue-500 to 5.40\n and 6.49 and give the 71% edge more ground (3.46 and 4.03); every\n ground the preset sits on now clears, the CTA gradient included.\n Darker on hover is also what every filled button already does.\n .\n The trade-off, chosen knowingly: on the navy end of the CTA\n gradient (#061a5c) darkening barely shows, a 1.05 step where the\n white wash gave 1.31. The label is what must pass; the hover there\n is carried by the cursor. A white wash cannot work on blue-500 at\n all, where the label clears 4.5 at rest by 0.03. */\n --button-outline-white-background-hover: color-mix(in srgb, var(--color-neutral-1000) 10%, transparent);\n --button-outline-white-background-active: color-mix(in srgb, var(--color-neutral-1000) 20%, transparent);\n\n /* Shared across every variant. Filled kinds go grey; outlined ones keep\n a transparent fill and take the subtle border. Contrast is exempt\n here under WCAG 1.4.3.\n\n borderColor is --color-border-disabled: the role named for the state\n it expresses, and the one disabled-edge value the whole control\n family now shares. It read neutral-300 once, then moved to\n neutral-200 to match what the component drew; bd-checkbox and\n bd-radio have since moved to neutral-300, so token and component\n agree again -- a step darker, 2.27:1 against the page where\n neutral-200 gave 1.66, and still lighter than any enabled edge. */\n --button-disabled-backgroundColor: var(--color-surface-disabled);\n --button-disabled-borderColor: var(--color-border-disabled);\n --button-disabled-color: var(--color-text-subtle);\n\n /* ================================\n COMPONENT TOKENS - ANNOTATION\n ================================ */\n\n /* Footnote Tokens */\n --footnote-reference-fontSize: 0.75em;\n --footnote-reference-fontWeight: var(--typography-fontWeight-normal);\n --footnote-reference-lineHeight: 1;\n --footnote-reference-verticalAlign: super;\n --footnote-reference-color: inherit;\n --footnote-reference-marginLeft: 0.1em;\n --footnote-reference-marginRight: 0.2em;\n\n /* Citation Tokens */\n --citation-reference-fontSize: inherit;\n --citation-reference-fontWeight: var(--typography-fontWeight-normal);\n --citation-reference-lineHeight: inherit;\n --citation-reference-color: var(--color-text-brand);\n --citation-reference-textDecoration: underline;\n --citation-reference-hover-color: var(--color-text-brand-hover);\n --citation-reference-hover-textDecoration: none;\n\n /* Mathematical Notation Tokens */\n --math-superscript-fontSize: 0.75em;\n --math-superscript-fontWeight: var(--typography-fontWeight-normal);\n --math-superscript-lineHeight: 1;\n --math-superscript-verticalAlign: super;\n --math-superscript-marginLeft: 0.05em;\n\n --math-subscript-fontSize: 0.75em;\n --math-subscript-fontWeight: var(--typography-fontWeight-normal);\n --math-subscript-lineHeight: 1;\n --math-subscript-verticalAlign: sub;\n --math-subscript-marginLeft: 0.05em;\n\n /* ================================\n COMPONENT TOKENS - ICON\n ================================ */\n\n /* Icon Size Tokens */\n --icon-xs-size: var(--dimension-12);\n --icon-sm-size: var(--dimension-16);\n --icon-md-size: var(--dimension-20);\n --icon-lg-size: var(--dimension-24);\n --icon-xl-size: var(--dimension-32);\n --icon-2xl-size: var(--dimension-48);\n --icon-3xl-size: var(--dimension-64);\n\n /* The context aliases (--icon-button-*, --icon-form-*) and the ten\n --icon-*-color tokens were removed when the icon elements moved onto\n the size scale and currentColor. The aliases said the same thing as a\n step — --icon-button-small-size and --icon-sm-size were both 16px —\n and the colours described states an icon no longer has: it takes the\n colour of the text it sits in, so there is nothing per-state to keep\n in step. */\n\n /* ================================\n CORE SPACING TOKENS\n ================================ */\n \n --spacing-0: 0;\n --spacing-1: 0.0625rem; /* 1px */\n --spacing-2: 0.125rem; /* 2px */\n --spacing-4: 0.25rem; /* 4px */\n --spacing-6: 0.375rem; /* 6px */\n --spacing-8: 0.5rem; /* 8px */\n --spacing-10: 0.625rem; /* 10px */\n --spacing-12: 0.75rem; /* 12px */\n --spacing-14: 0.875rem; /* 14px */\n --spacing-16: 1rem; /* 16px */\n --spacing-18: 1.125rem; /* 18px */\n --spacing-20: 1.25rem; /* 20px */\n --spacing-22: 1.375rem; /* 22px */\n --spacing-24: 1.5rem; /* 24px */\n --spacing-28: 1.75rem; /* 28px */\n --spacing-32: 2rem; /* 32px */\n --spacing-36: 2.25rem; /* 36px */\n --spacing-40: 2.5rem; /* 40px */\n --spacing-44: 2.75rem; /* 44px */\n --spacing-48: 3rem; /* 48px */\n --spacing-52: 3.25rem; /* 52px */\n --spacing-56: 3.5rem; /* 56px */\n --spacing-64: 4rem; /* 64px */\n --spacing-80: 5rem; /* 80px */\n --spacing-96: 6rem; /* 96px */\n --spacing-112: 7rem; /* 112px */\n --spacing-128: 8rem; /* 128px */\n\n /* The OLD VALUES block stood here: --display-*, --heading-*, --body-* and\n --caption-* as pixel font sizes, and a second spacing vocabulary in\n --space-*, --padding-*, --container-*, --inset-*, --stack-* and\n --inline-*. Forty-nine tokens, every one a duplicate of something on\n a live scale under a different name, and not one of them referenced\n by any component. They are gone. Type comes from\n --typography-fontSize-* and the component type tokens above it;\n spacing comes from --spacing-*. */\n\n /* Accessibility Spacing Tokens\n -----------------------------------------------*/\n /* Touch Target Sizes - WCAG 2.1 Success Criterion 2.5.5 (AAA) and 2.5.8 (AA) */\n /* The dimension steps that carry these values, rather than px\n literals beside them: a target is matched to a finger, not to the\n reader's text size, so it is px, which --dimension-* is. */\n --touch-target-size: var(--dimension-44); /* Minimum touch target size (44px × 44px) */\n --touch-target-spacing: var(--dimension-8); /* Minimum space between touch targets */\n\n /* Readable Line Lengths - For optimal readability */\n --content-width-readable: 70ch; /* Approximately 70 characters per line */\n --content-width-max: 1200px; /* Maximum overall content width */\n\n /** GRID AND BREAKPOINT TOKENS\n\n The breakpoint tokens have no consumer in this package and are kept\n deliberately. A media condition cannot read a custom property — @media\n (max-width: var(--breakpoint-sm)) is not valid CSS — so a breakpoint\n token can never be referenced the way a colour is. It exists so the\n seven values have one place to be read from, by the lint that checks\n media queries against them and by anything generating CSS. The grid\n tokens below are read: --grid-container-max-* and --grid-padding-*\n are the page column, through shared/ensemble.css.ts and layout.css,\n and the header and compare read them too. --grid-gutter-* has no\n reader, and carries the same values as --grid-padding-*.\n\n The breakpoints are the exception. Everything else here that nothing\n references is dead weight, and the OLD VALUES and FONT TOKENS blocks\n that used to sit below were removed for exactly that reason.\n */\n /* Grid container max widths\n\n The top two steps are set by the site's menu and footer, not by the\n grid's own progression: a page built from these modules sits between\n the two, so its content edges have to land on theirs. Measured on\n bitdefender.com on 2026-10-16, the menu and footer share one container\n whose content is 1200px wide from 1300 to 1599 (1300 max, 50px gutter)\n and 1292px from 1600 up (1332 max, 20px gutter). The column keeps its\n own 40px gutter, so each cap is that content plus 80: xxl 1280 gives\n 1200 and xxxl 1372 gives 1292. xxl was 1320, a 1240 column that sat\n 20px outside the menu's edges at 1440 and 26px inside them at 1920. */\n --grid-container-max-xs: 100%; /* mobile full width */\n --grid-container-max-sm: 540px;\n --grid-container-max-md: 720px;\n --grid-container-max-lg: 960px;\n --grid-container-max-xl: 1140px;\n --grid-container-max-xxl: 1280px;\n --grid-container-max-xxxl: 1372px;\n\n /* Column count (usually 12) */\n --grid-columns: 12;\n\n /* Gutter spacing between columns */\n --grid-gutter-xs: 16px;\n --grid-gutter-sm: 24px;\n --grid-gutter-md: 32px;\n --grid-gutter-lg: 40px;\n\n /* Container padding (horizontal spacing) */\n --grid-padding-xs: 16px;\n --grid-padding-sm: 24px;\n --grid-padding-md: 32px;\n --grid-padding-lg: 40px;\n\n /* Breakpoints */\n --breakpoint-xs: 0px;\n --breakpoint-sm: 576px;\n --breakpoint-md: 768px;\n --breakpoint-lg: 992px;\n --breakpoint-xl: 1200px;\n --breakpoint-xxl: 1400px;\n --breakpoint-xxxl: 1600px; /* the site menu and footer widen here */\n /* =====================\n FONT-FACE DEFINITIONS\n Intentionally NOT here. @font-face nested inside a :host rule is\n discarded at parse time, and even at the top level of a shadow-root\n stylesheet it never reaches document.fonts. Font faces must be\n loaded in document scope: see src/tokens/fonts.css.\n ====================== */\n\n /* The FONT TOKENS block stood here: --font-weight-mono-*,\n --font-weight-sans-*, --font-style-mono-* and --font-style-sans-*.\n Thirteen tokens duplicating --typography-fontWeight-* under a second\n name, with regular where the live scale says normal, and nothing\n consuming any of them. --font-family-mono went earlier, with bd-li.\n A weight is a weight whichever face it is set in. */\n\n /* Awards section — Orbit Frame 14 (node 1882:9342) */\n --layout-awards-section-background: var(--color-brand-50);\n --layout-awards-cluster-max-width: 49.5625rem; /* 793px — trust banner column */\n --layout-awards-intro-max-width: 39.4375rem; /* 631px — headline stack */\n /* The page column has no width token of its own. --content-width-max,\n above, is a 1200px cap that no bd-* component reads; the blog's page\n layout does (--blog-layout-page-max-width). The page column is an implementation --\n src/components/shared/ensemble.css.ts -- on the grid container scale\n above (--grid-container-max-* with --grid-padding-*), which is what\n Foundations/Grid System documented and nothing had built. A width token\n here is how six ensembles came to hold one literal each and seven other\n modules a different one. --layout-ensemble-inline-padding went the\n same way once bd-features, its last reader, stopped padding its host. */\n\n `;\n\nconst LAYER = 'bd-tokens';\nconst INSTALLED = '__bdDesignTokens';\ntype TokenSheet = CSSStyleSheet & { [INSTALLED]?: boolean };\n\n/* The light/dark pairs, woven into the roles that have a dark value, and the\n data-theme scopes (src/tokens/scheme-layer.ts). Before the brand layer, which\n is handed the paired text: a [data-brand] block then re-declares a brand\n role with both halves, so a partner page can be dark too. */\nconst scheme = schemeLayer(declarations, DARK);\n\nfunction install() {\n if (typeof document === 'undefined') return;\n\n /* The scopes and the brand blocks sit in the same layer, after :root, so a\n consuming page's unlayered CSS still beats them, and a data-theme or a\n [data-brand] on <html> beats :root by order. The brand blocks are empty\n while only the Bitdefender theme is registered -- see\n src/tokens/brand-layer.ts. build-tokens writes the same text into\n tokens.css from the same functions, so the two cannot disagree. */\n const rule = `@layer ${LAYER} { :root {${scheme.declarations}} ${scheme.scopes} ${themeLayer(scheme.declarations, THEMES, THEME_CONTRACT, DEFAULT_THEME)} }`;\n\n /* Constructable stylesheets are Widely available, so there is one path. A\n <style> fallback stood here for engines without them, with a duplicate\n guard of its own: a second copy of the package that took the other path\n installed the layer twice. The flag on the sheet is how every copy on\n the page sees that one is already there. */\n if (document.adoptedStyleSheets.some(sheet => (sheet as TokenSheet)[INSTALLED])) return;\n const sheet: TokenSheet = new CSSStyleSheet();\n sheet.replaceSync(rule);\n sheet[INSTALLED] = true;\n document.adoptedStyleSheets = [...document.adoptedStyleSheets, sheet];\n}\n\ninstall();\n\n/** The declaration text as :root gets it -- each role with a dark value as its\n light-dark() pair -- for tooling that needs to emit tokens elsewhere, the\n brand layer included. */\nexport const tokenDeclarations = scheme.declarations;\n\n/**\n * @deprecated Components no longer need to adopt this — the tokens live in\n * document scope. Kept, and deliberately empty, so that any existing\n * `static styles = [tokens, componentCSS]` keeps working unchanged.\n */\nexport const tokens = css``;\n"],"mappings":"A,4QA6BA,IAAME,EAAe,qt/BA4xDfC,EAAQ,YACRC,EAAY,mBAOZC,EAASC,EAAYJ,EAAcF,CAAI,EAE7C,SAASO,GAAU,CACjB,GAAI,OAAO,SAAa,IAAa,OAQrC,IAAMC,EAAO,UAAUL,EAAM,YAAYE,EAAO,aAAa,IAAIA,EAAO,OAAO,GAAGI,EAAWJ,EAAO,aAAcK,EAAQC,EAAgBC,CAAa,EAAE,IAOzJ,GAAI,SAAS,mBAAmB,KAAK,GAAUC,EAAqBT,EAAU,EAAG,OACjF,IAAMS,EAAoB,IAAI,cAC9BA,EAAM,YAAYL,CAAI,EACtB,EAAMJ,GAAa,GACnB,SAAS,mBAAqB,CAAC,GAAG,SAAS,mBAAoBS,CAAK,CACtE,CAEAN,EAAQ,EAKR,IAAaO,EAAoBT,EAAO,aAO3BU,EAAS,CAAG,G"}
|
|
1
|
+
{"version":3,"file":"tokens.js","names":["DARK","dark_default","declarations","LAYER","INSTALLED","scheme","schemeLayer","install","rule","themeLayer","THEMES","THEME_CONTRACT","DEFAULT_THEME","sheet","tokenDeclarations","tokens"],"sources":["../../../src/tokens/tokens.ts"],"sourcesContent":["import { css } from 'lit';\nimport DARK from './themes/dark.ts';\nimport { DEFAULT_THEME, THEMES } from './themes/index.ts';\nimport { THEME_CONTRACT } from './themes/contract.ts';\nimport { themeLayer } from './brand-layer.ts';\nimport { schemeLayer } from './scheme-layer.ts';\n\n/**\n * Design tokens.\n *\n * These are declared on :root in document scope, inside the `bd-tokens` cascade\n * layer, rather than on :host inside every component. Both halves of that\n * matter:\n *\n * - A :host declaration beats an inherited value. While every component\n * re-declared the full token set on its own :host, an application could not\n * override a token from the page at all — its `:root` never reached the\n * shadow tree.\n * - Moving to :root is not sufficient on its own. adoptedStyleSheets are\n * ordered after the document's own author stylesheets, so an unlayered\n * :root here would still beat the application's CSS. Anything inside a\n * cascade layer loses to unlayered CSS, which is what makes the override\n * work.\n *\n * The upshot: an application can now do `:root { --color-blue-500: ... }`, or a\n * whole `@media (prefers-color-scheme: dark)` block, and it wins.\n *\n * Importing any component installs this once. Nothing else is required.\n */\nconst declarations = `\n --typography-fontFamily-sans: \"IBM Plex Sans\", system-ui, -apple-system,\n BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n /* The csg blog's heading face, falling back to the sans stack's own\n fallbacks. Its faces are in fonts.css; nothing loads until a page\n sets text in it. */\n --typography-fontFamily-sans-condensed: \"IBM Plex Sans Condensed\", system-ui, -apple-system,\n BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n --typography-fontFamily-mono: \"IBM Plex Mono\", ui-monospace, SFMono-Regular,\n Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n\n --typography-fontSize-xxs: 0.6875rem; /* 11px */\n --typography-fontSize-xs: 0.75rem; /* 12px */\n --typography-fontSize-sm: 0.875rem; /* 14px */\n --typography-fontSize-base: 1rem; /* 16px */\n --typography-fontSize-lg: 1.125rem; /* 18px */\n --typography-fontSize-xl: 1.25rem; /* 20px */\n --typography-fontSize-2xl: 1.5rem; /* 24px */\n --typography-fontSize-3xl: 2rem; /* 32px */\n --typography-fontSize-4xl: 2.25rem; /* 36px */\n --typography-fontSize-5xl: 3rem; /* 48px */\n --typography-fontSize-6xl: 3.75rem; /* 60px */\n --typography-fontSize-7xl: 4.5rem; /* 72px */\n --typography-fontSize-8xl: 6rem; /* 96px */\n --typography-fontSize-9xl: 8rem; /* 128px */\n\n --typography-fontWeight-light: 300;\n --typography-fontWeight-normal: 400;\n --typography-fontWeight-medium: 500;\n --typography-fontWeight-semibold: 600;\n --typography-fontWeight-bold: 700;\n\n --typography-lineHeight-none: 1;\n --typography-lineHeight-tight: 1.25;\n /* There is no snug (1.375). It was Tailwind's step, it carried the\n heading roles until the leading was measured against IBM Plex Sans,\n and once those moved to tight and 130 its only readers were four\n documentation-chrome files setting 11px text. 11px is what\n label-extra-small already answers, at normal, so they were repointed\n there and the step was retired rather than kept alive by its own\n documentation. */\n --typography-lineHeight-normal: 1.5;\n --typography-lineHeight-relaxed: 1.625;\n --typography-lineHeight-loose: 2;\n\n /* The three steps above named for a density -- none .. loose -- are\n Tailwind's default scale, values and names both, and nothing in them\n was derived from IBM Plex Sans. These three were, and they are named\n numerically because that is what the rest of this system does for a\n scale step: --spacing-14, --dimension-44, --border-width-2.\n\n 130 the font's own declared line box. hhea, OS/2 sTypo and OS/2\n usWin in IBMPlexSans-*.woff2 all state 1.30, which is both\n unusual and deliberate -- it is why the same text does not\n change height between macOS and Windows.\n 140 IBM's own published value for Plex at 20px (@carbon/type,\n productive-heading-03 and expressive-heading-03).\n 145 between IBM's 1.5 at 16px and 1.4 at 20px.\n\n The floor under all of them is ink, not taste. The deepest glyphs in\n this family are the Romanian comma-below letters -- s-comma and\n t-comma, -0.275em in Bold, a third deeper than g -- and the tallest\n are grave and acute capitals at +0.977em. Measured per weight, ink\n spans 1.174 Light, 1.194 Regular, 1.219 Medium, 1.235 SemiBold,\n 1.252 Bold. Tight, 1.25, sits 0.002 under the Bold floor -- the\n tallest accented capital and the deepest comma-below letter would\n have to fall in consecutive lines, one above the other, to touch --\n which is why the display roles stay at tight and are never tightened\n further.\n Foundations/Typography/Vertical Rhythm reaches 1.231 for 48px Bold\n from canvas metrics; this is the same number from outline bounds. */\n /* 110: a headline or a figure set close, below the ink floor above on\n purpose. Two consumers asked for it, which made it a missing step\n rather than one component's choice (typography-pairings.json, the\n trust panel's review trigger): the trust panel's stat value, a\n number on one line, and the product hero's headline, the first\n thing on a product page, which the product pages draw close\n (DEX-28696). Under 1.252 the tallest accented capital and the\n deepest comma-below letter can touch when they fall in consecutive\n lines; on a single-line figure they never do, and on the headline\n it is the design's accepted cost. Nothing else should take it. */\n --typography-lineHeight-110: 1.1;\n --typography-lineHeight-130: 1.3;\n --typography-lineHeight-140: 1.4;\n --typography-lineHeight-145: 1.45;\n\n --typography-letterSpacing-tighter: -0.05em;\n --typography-letterSpacing-tight: -0.025em;\n --typography-letterSpacing-normal: 0em;\n --typography-letterSpacing-wide: 0.025em;\n --typography-letterSpacing-wider: 0.05em;\n --typography-letterSpacing-widest: 0.1em;\n\n /* =====================\n COLORS\n ====================== */\n --color-blue-50: #f0f7ff;\n --color-blue-100: #d6e8ff;\n --color-blue-200: #9ec8ff;\n --color-blue-300: #6babff;\n --color-blue-400: #338bff;\n --color-blue-500: #006dff;\n --color-blue-600: #0059d6;\n --color-blue-700: #0045ad;\n --color-blue-800: #003385;\n --color-blue-900: #00225c;\n --color-blue-950: #001947;\n\n --color-red-50: #fff0f0;\n --color-red-100: #ffd6d6;\n --color-red-200: #ff9e9e;\n --color-red-300: #ff6b6b;\n --color-red-400: #ff3333;\n --color-red-500: #ff0000;\n --color-red-600: #d60000;\n --color-red-700: #ad0000;\n --color-red-800: #850000;\n --color-red-900: #5c0000;\n --color-red-950: #470000;\n\n --color-green-50: #edfdf1;\n --color-green-100: #d1fadc;\n --color-green-200: #9af4b4;\n --color-green-300: #63ee8d;\n --color-green-400: #2ce767;\n --color-green-500: #15c14f;\n --color-green-600: #12a641;\n --color-green-700: #0e8532;\n --color-green-800: #0b6a26;\n --color-green-900: #084a1a;\n --color-green-950: #063c14;\n --color-green-975: #011705;\n\n --color-yellow-50: #fffbf0;\n --color-yellow-100: #fff5d6;\n --color-yellow-200: #ffe89e;\n --color-yellow-300: #ffdc6b;\n --color-yellow-400: #ffcf33;\n --color-yellow-500: #ffc400;\n --color-yellow-600: #d6a000;\n --color-yellow-700: #ad7f00;\n --color-yellow-800: #855f00;\n --color-yellow-900: #5c4000;\n --color-yellow-950: #473100;\n --color-yellow-975: #1a0f00;\n\n --color-neutral-0: #ffffff;\n --color-neutral-25: #fafafa;\n --color-neutral-50: #f1f2f3;\n --color-neutral-100: #e1e3e5;\n --color-neutral-200: #c5c9ce;\n --color-neutral-300: #a6adb4;\n --color-neutral-400: #88909b;\n /* The five in-between steps -- 450, 850, 925 here, and the two 975s\n above -- exist for a dark theme, and nothing in light reads them.\n The dark mode study (Foundations/Theming/Dark mode) found the ramps\n too coarse at the dark end: container and subtle had to share\n neutral-900 (finding 2), no step kept text-subtle both quieter than\n muted and over 4.5:1 (finding 3), and green-950 and yellow-950 sat\n 1.5:1 off the dark page where every other tint sits near 1.1\n (finding 5). Each is interpolated in OKLCH between its two\n neighbours to the ratio the derivation asks for: 450 is 4.75:1 on\n a dark card (4.93 on the dark page), midway between 500 and 400 at\n 1.22:1 from each -- subtle text sits on a page or a card, so it is\n measured on the card (decision 17); 925 and 850 are 1.04 and 1.12\n off it, the light container and subtle steps; the 975s are 1.04\n and 1.03, the light tints. Measured against neutral-950, the dark\n page, in src/tokens/dark-derivation.ts. */\n --color-neutral-450: #78818c;\n /* #6a737e, moved one step from #6c7580. neutral-500 is\n --color-text-subtle, and at #6c7580 subtle text on a card\n (--color-surface-container, neutral-25) measured 4.48:1 -- under\n 4.5 on the ground most subtle text sits on. #6a737e gives 4.61 on a\n card and 4.81 on the page, and stays a clear step above\n neutral-600 (1.37:1 apart, the gap was 1.39). It does not clear\n subtle on surface-subtle or the status tints (4.29 to 4.46):\n that needs a step this ramp does not have, and is its own\n decision. */\n --color-neutral-500: #6a737e;\n --color-neutral-600: #565e66;\n --color-neutral-700: #41474d;\n --color-neutral-800: #2c3035;\n --color-neutral-850: #181b1d;\n --color-neutral-900: #151719;\n --color-neutral-925: #111214;\n --color-neutral-950: #0c0d0e;\n --color-neutral-1000: #000000;\n\n /* =====================\n BRAND\n ====================== */\n /* The brand is a ramp, not a colour. Components reach the brand hue at\n ten different steps -- 50 for a tinted wash, 200 for a tinted edge, 400\n and 950 for gradient stops and glows, 500 for the action, 600 and 700\n for brand text -- so a brand that only named its primary would leave\n every one of those behind. These eleven aliases are the whole of what a\n brand has to restate.\n\n Today they are the Bitdefender blue, step for step, so nothing renders\n differently for their being here. They are the colour half of the\n theme contract (src/tokens/themes/contract.ts): a partner theme\n restates them, and build-tokens re-declares every token that depends\n on them inside that brand's [data-brand] scope. See Foundations/Brands.\n\n What deliberately does NOT read this ramp: the info status tone\n (--status-info-*, --color-surface-info). Info is a feedback colour,\n not the brand, and it has to stay recognisable under every brand --\n a business line whose brand were red would otherwise paint its info\n alerts the colour of an error. Those keep --color-blue-* directly.\n\n Components never name --color-blue-* for brand work; the lint rule\n brand-hue-primitive holds that line. */\n --color-brand-50: var(--color-blue-50);\n --color-brand-100: var(--color-blue-100);\n --color-brand-200: var(--color-blue-200);\n --color-brand-300: var(--color-blue-300);\n --color-brand-400: var(--color-blue-400);\n --color-brand-500: var(--color-blue-500);\n --color-brand-600: var(--color-blue-600);\n --color-brand-700: var(--color-blue-700);\n --color-brand-800: var(--color-blue-800);\n --color-brand-900: var(--color-blue-900);\n --color-brand-950: var(--color-blue-950);\n\n /* ================================\n CORE BORDER TOKENS\n ================================ */\n --border-width-0: 0;\n --border-width-1: 1px;\n --border-width-2: 2px;\n --border-width-3: 3px;\n --border-width-4: 4px;\n --border-width-8: 8px;\n\n --radius-none: 0;\n --radius-sm: 0.25rem; /* 4px */\n --radius-md: 0.375rem; /* 6px */\n --radius-lg: 0.5rem; /* 8px */\n --radius-xl: 0.75rem; /* 12px */\n --radius-2xl: 1rem; /* 16px */\n --radius-3xl: 1.5rem; /* 24px */\n --radius-full: 9999px;\n\n /* =====================\n SHAPE\n ====================== */\n /* The corner steps a theme restates -- the shape half of the theme\n contract, as --color-brand-* is the colour half. A partner whose brand\n is square sets these to 0, one whose brand is soft raises them, and\n every card, button, field, panel and chip that reads a step follows.\n Today they are the radius scale, step for step, so nothing renders\n differently for their being here.\n\n Two steps are deliberately left out, because a brand must not move\n them: --radius-full is a circle (a dot, a pill, a switch, an avatar),\n and --radius-none is a corner someone decided should be square. The\n focus ring keeps --focus-outline-radius on the scale too: focus\n geometry is the host's, not a partner's.\n\n Components never read --radius-sm..3xl directly; the lint rule\n shape-primitive holds that line. */\n --shape-radius-sm: var(--radius-sm);\n --shape-radius-md: var(--radius-md);\n --shape-radius-lg: var(--radius-lg);\n --shape-radius-xl: var(--radius-xl);\n --shape-radius-2xl: var(--radius-2xl);\n --shape-radius-3xl: var(--radius-3xl);\n\n /* ================================\n CORE DIMENSION TOKENS\n ================================ */\n\n\n --dimension-4: 4px;\n --dimension-8: 8px;\n --dimension-12: 12px;\n --dimension-16: 16px;\n --dimension-20: 20px;\n --dimension-24: 24px;\n --dimension-32: 32px;\n --dimension-36: 36px;\n --dimension-40: 40px;\n --dimension-44: 44px;\n --dimension-48: 48px;\n --dimension-56: 56px;\n --dimension-64: 64px;\n\n /* ================================\n CORE TRANSITION TOKENS\n ================================ */\n\n --transition-duration-fast: 150ms;\n --transition-duration-normal: 200ms;\n --transition-duration-slow: 300ms;\n --transition-duration-slower: 500ms;\n\n --transition-easing-linear: linear;\n --transition-easing-smooth: ease-in-out;\n /* The CSS default curve. It was missing, and its absence was the single\n reason eleven component transitions could not be expressed in tokens:\n ease is not ease-in-out — it front-loads, and swapping one for the\n other is a visible change. Named after the keyword, as linear and\n ease-out beside it are; smooth is the outlier that aliases a keyword\n rather than naming it. ease-in and a bounce curve stood here too and\n went on 2026-10-15, because nothing read either. */\n --transition-easing-ease: ease;\n --transition-easing-ease-out: ease-out;\n\n /* ================================\n CORE SHADOW TOKENS\n ================================ */\n\n --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),\n 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),\n 0 8px 10px -6px rgb(0 0 0 / 0.1);\n /* The ladder stops at xl. --shadow-2xl and the inset --shadow-inner\n stood beside it until 2026-10-15, and nothing read either. */\n\n /* The focus glow: the brand at 15% (--color-brand-500), mixed from the palette. It\n was rgba(6, 109, 255, 0.15) -- a blue one unit off blue-500 -- with a\n red and a green beside it that were Tailwind's red-500 and green-500,\n in no palette here. Nothing read the red or the green, so they went;\n --form-input-focus-boxShadow reads this one. */\n --shadow-focus-outline-blue: 0 0 0 3px color-mix(in srgb, var(--color-brand-500) 15%, transparent);\n\n /* Focus Outlines - Two-Color System for Universal Visibility.\n\n Every band reads a role, never a palette step, because a ring is a\n composite: light-dark() takes one colour, so a ring cannot carry a\n pair of its own and gets its dark values from the roles it reads\n (src/tokens/scheme-layer.ts). Until 2026-11-10 the bands were\n --color-neutral-0 and --color-brand-500, so on a dark page every\n focused control wore a white halo the page did not have.\n\n The gap band is the page's ground, --color-surface-default: white\n on a light page, the dark ground on a dark one. Its job is to hold\n the ring off the control in the colour the control sits on.\n\n The ring band is --color-action-primary: the ring marks the control\n the reader is about to act on, in the action colour, and that is the\n colour every theme must hold 3:1 against the page in light and in\n dark (brands.test.ts, the action fill against the page) -- the 3:1 a\n focus indicator needs. Not --color-border-brand: a focus ring is\n never a border role (CLAUDE.md, Dividers are not borders). Brand-500\n in both themes on Bitdefender, so a light page draws what it drew:\n 4.53:1 on white, and 4.29:1 on the dark page. */\n --focus-outline-primary: 0 0 0 2px var(--color-surface-default),\n 0 0 0 4px var(--color-action-primary);\n\n /* Secondary, error and success rings stood here until 2026-10-15.\n Nothing read them -- every component rings with primary -- and the\n success ring was green-500, 2.39:1 against white, under the 3:1 a\n focus indicator needs. */\n\n /* The one above puts the WHITE band against the control, which is what\n keeps it visible on a coloured hero. That fails on a control which\n is itself white: bd-button-link variant=\"white\" measured 1.00:1 for\n the inner band against its own fill and 2.38:1 for the blue band\n against a blue hero, so neither band reached the 3:1 WCAG 2.4.11\n asks of a focus indicator. This one inverts the pair -- dark band\n against the control, white band against the ground -- so the inner\n band carries the contrast whatever the control is sitting on.\n\n This is also what the Figma library draws around a filled or\n bordered button on a dark or brand ground (focus/ring-inverse).\n Figma builds a ring from spread shadows, so every band in it is a\n painted colour, and the band between control and ring has to be\n chosen per surface. On a brand hero that painted neutral-900 band\n reads as a black outline. bd-button does not use this one; it draws\n the outline below, whose gap is not painted at all.\n\n Its two bands are the inverse pair, the inverse ground against the\n control and its ink against the page: neutral-900 and white in\n light, as before, and the two swapped where the theme swaps them. */\n --focus-outline-inverse: 0 0 0 2px var(--color-surface-inverse),\n 0 0 0 4px var(--color-text-inverse);\n\n /* The CTA ring in code: one band, held off the control by\n --focus-outline-offset. The offset leaves the gap TRANSPARENT, so it\n is always the surface the control sits on -- white on a light page,\n neutral-900 on a dark hero, blue on a brand one -- and never merges\n into a white fill or a white border, which is the job the painted\n inner band of every two-band ring above does by hand. Figma has no\n offset outline, which is why its rings paint that gap and need one\n style per surface; code does not.\n\n Only the band's colour follows the ground. Blue on light, 4.53:1\n against white. White on dark and brand, the one colour that clears\n 3:1 on both: 4.53:1 on blue-500, 6.18 on blue-600, 8.56 on blue-700,\n 17.97 on neutral-900. A blue band on a brand hero is 1.00:1.\n\n An outline also survives forced-colors mode, where a box-shadow ring\n is not drawn at all. bd-button reads these; see its FOCUS block.\n\n The band reads a role, as the two-band rings above do: the action\n colour on the page, and the inverse ink on a dark ground. A ground\n that is dark in every theme -- a hero, a brand band -- is drawn in\n the light scheme by the component that sits on it (bd-button and\n bd-link under surface=\"dark\"), so there the inverse ink is white in\n a dark page too; on a --color-surface-inverse band, which turns\n light in dark, it turns dark with it. */\n --focus-outline-traditional: 2px solid var(--color-action-primary);\n --focus-outline-traditional-inverse: 2px solid var(--color-text-inverse);\n /* On a brand band (surface=\"brand\"): the brand's own ink, which a\n theme must clear 4.5:1 on its fill, so the ring clears the 3:1 a\n focus indicator needs under every theme -- white on Bitdefender,\n where it is the inverse ring, and dark ink on a light partner, where\n a white one would vanish. */\n --focus-outline-traditional-on-brand: 2px solid var(--color-brand-on-fill);\n --focus-outline-offset: 2px;\n\n /* The ring is a box-shadow, so it already follows the radius of the\n element it is on. This is the default for elements that have no\n radius of their own — a link, a tab, an accordion header — so the\n ring is not a hard rectangle. An element with its own radius should\n set nothing and let the ring follow its shape. */\n --focus-outline-radius: var(--radius-sm);\n\n /* ================================\n SEMANTIC ROLE - SELECTED INDICATOR\n ================================\n What marks the current item in a set. Two components already drew it\n — Components/Tab List and the anchor nav — and they drifted apart on\n easing while both used valid tokens. The role is named here so there\n is one answer, not two spellings.\n\n THE COLOUR IS NOT NAMED FOR A SHAPE, and that is the whole point of\n the split below. It was --indicator-underline-color, which described\n the underline three components happen to draw rather than the job the\n value does. awards-flex marks its current slide with a DOT: same job,\n same blue-500, and it could not adopt the token because a dot is not\n an underline, so it reached for the primitive instead. Vocabulary\n question E1 found that — see plans/reports/phase-2-vocab-e-has-role-pass.md.\n\n Renamed with no back-compat alias, following the same convention as\n --typography-label-xsmall becoming --typography-body-xsmall: rename\n cleanly and say why here.\n\n The geometry stays underline-specific, because it genuinely is — a\n 3px height and a width transition describe a rule sliding under a\n tab, and a dot scales instead. A fourth consumer needing dot\n geometry should name it for the dot, not borrow these. */\n --indicator-color: var(--color-brand-500);\n --indicator-underline-height: var(--border-width-3);\n --indicator-underline-duration: var(--transition-duration-slow);\n --indicator-underline-easing: var(--transition-easing-smooth);\n\n /* ================================\n SEMANTIC ROLE - CARD SHAPE\n ================================\n The corner and the inset that make a card a card here. Eleven\n card-shaped objects agree on both -- the Card box, CardFeatures,\n LightCarousel, Bento, the Awards feature card, the TrustPanel card,\n the CompareSection card, the Carousel item, the Comparison Panel\n column and both Pricing cards -- and they only agree because the two\n that did not were brought in one at a time.\n\n This role is named now and was deliberately not named before, and\n the difference is evidence rather than appetite. CLAUDE.md said\n there was no semantic radius scale because \"the components do not\n agree closely enough for a shared role to be honest\", which was true\n when it was written: the compare card sat at --radius-3xl and the\n carousel item at --radius-3xl with a 2em inset. Both have since been\n measured, argued and moved. A role declared then would have imposed\n a consensus; declared now it records one.\n\n It is a role, not a scale. There is still no --card-* family and no\n semantic step between radii -- naming the job is the whole point,\n and the same reasoning is why --panel-radius is NOT here: the eight\n --radius-xl consumers are a code block, a bar track, a table\n container, a discount pill, two public image variants, a modal and a\n terminal. That is not a family, and calling it one would be the\n mistake this comment is describing.\n\n scripts/card-shapes.json lists the eleven and lint:tokens checks it\n both ways, so a card that stops using the role and a registry entry\n that stops matching are both findings. */\n --card-radius: var(--shape-radius-2xl);\n --card-padding: var(--spacing-32);\n\n /* The inset a card takes when the viewport is too narrow to afford the\n full one. Four cards reached for this independently before it had a\n name -- Bento below sm, the Comparison Panel and Trust Panel below\n md, and LightCarousel with an em literal -- and three of the four\n picked exactly 24. That is the agreement that makes it a role rather\n than four local decisions.\n\n Two steps, not a scale. A card is either affording its inset or it\n is not; there is no third size, and a component that wants one is\n asking a design question rather than a token question. */\n --card-padding-compact: var(--spacing-24);\n\n /* ================================\n SEMANTIC ROLES - COLOUR\n ================================\n The tier the architecture always described and the components never\n had. Measured before this landed: 71.8% of the colour references in\n the atom layer pointed straight at a palette step — 38 distinct\n primitives across 233 references, where the roles underneath them\n number about thirty. That gap is why four text atoms ended up with\n four different inks, and why two components disagreed about which\n green means \"success\".\n\n None of these are new decisions. Every value is the step something\n already uses, and the text roles are the ones COLOR_ROLES in\n src/components/shared/token-scales.ts had already chosen as clearing\n 4.5:1 on white — that map should now resolve through these rather\n than reaching past them into the palette.\n\n Reach for the role, not the step. The palette stays available for\n what no role covers yet; when that happens, add the role.\n\n ---\n\n ONE SHEET. The blog used to declare its own copy of these names, on\n each blog element's :host, with seven of them at other values. It\n reads these now, as the shipped blog (www-blog-csg) does, and\n declares no token on a :host (__tests__/blog-host-tokens.test.ts),\n so the websites and the blog share this one sheet. */\n\n /* Text. -primary is the default ink for anything that reads as body\n or heading copy. -brand is blue-600 rather than blue-500 on purpose:\n blue-500 is 4.53:1 on pure white and fails on any tint. */\n --color-text-primary: var(--color-neutral-900);\n --color-text-secondary: var(--color-neutral-700);\n --color-text-muted: var(--color-neutral-600);\n /* Subtle sits on the page or a card, and nowhere else: on a band\n (surface-subtle, surface-muted) or a status tint, step up to\n -muted. No value can be both quieter than muted and 4.5:1 on every\n ground -- on surface-muted it would have to be muted -- so the rule\n is where it goes, not how dark it is. Dark mode decision 17. */\n --color-text-subtle: var(--color-neutral-500);\n --color-text-disabled: var(--color-neutral-400);\n --color-text-inverse: var(--color-neutral-0);\n /* Subordinate text on an inverse surface. --color-text-inverse is the\n high-emphasis step there; this is the one below it, and until now the\n system had no such step at all -- the light-side -secondary, -muted and\n -subtle roles invert to 1.91, 2.73 and 3.74 against\n --color-surface-inverse and cannot be used.\n\n Two components had already invented it independently and spelled it\n differently: bd-terminal-message with rgba(255,255,255,0.5) and\n bd-process-steps with --color-neutral-300 twice. neutral-300 is the\n value here because it is the portable one. Measured on the three\n inverse grounds in use -- neutral-900, neutral-800 and the #0b1626 the\n process-steps gradient ends on -- it reads 7.92, 5.85 and 8.00, while\n the white-at-half-alpha spelling reads 5.27, 3.89 and 5.32 and only\n clears 4.5 because the terminal's ground happens to be the darkest of\n the three.\n\n There is deliberately no -secondary-inverse: bd-cta-banner has a third\n tier at white 0.85 and it is one consumer, which is not a\n responsibility. An earlier draft of this note also called it a\n contrast failure, from a worst-case calculation against the lightest\n stop in its gradient. Sampling the pixels actually behind the text\n disproved that -- the radial highlight sits at 78% -10% and is mostly\n outside the banner, so the three tiers measure 4.60, 4.57 and 4.46 at\n their worst pixel rather than the 3.35, 2.84 and 2.13 the arithmetic\n predicted. The tier is fine; it is still not a role. */\n --color-text-muted-inverse: var(--color-neutral-300);\n /* Ink on --color-surface-media, fixed with it: a part that does not\n switch needs ink that does not switch either (the white button\n preset, dark mode finding 8). text-inverse and text-muted-inverse\n flip in a dark theme and would put dark ink on the dark frame --\n a video play icon at 3.13:1, a terminal's quieter lines at 1.91. */\n --color-text-on-media: var(--color-neutral-0);\n --color-text-on-media-muted: var(--color-neutral-300);\n --color-text-brand: var(--color-brand-600);\n /* Brand text, hovered: a link or a citation reference under the\n pointer. Before this role existed, the hover read\n --color-action-primary-active -- a pressed button fill used as ink.\n The value is the same blue-700, so nothing moves in this theme; the\n difference is that a fill and a text colour answer different\n questions, and a dark theme has to answer them differently. Measured\n in the Figma Dark mode study: the fill stays put on a dark page and\n the link it borrowed falls to 2.27:1. */\n --color-text-brand-hover: var(--color-brand-700);\n --color-text-success: var(--color-green-800);\n /* Warning text sits on the page, a card, surface-subtle (5.16) or its\n own tint (--color-surface-warning, 5.59) -- not on surface-muted,\n where it measures 4.49:1, a hair under 4.5. The same rule as\n -subtle above: the role is right and the ground is wrong, so the\n fix is the ground. Nothing in the package draws the pair today:\n bd-tag and bd-badge draw this yellow through --status-warning-text,\n on --status-warning-surface. The way a page reaches it is the\n color=\"warning\" value the text atoms take (token-scales.ts). */\n --color-text-warning: var(--color-yellow-800);\n --color-text-error: var(--color-red-700);\n\n /* Surfaces. The feedback four are the tints a message sits on, each\n measured against the matching --color-text-* step above: success\n 6.42, warning 5.59, error 6.83, info 5.72.\n\n -brand is the one to watch. --color-text-inverse on it measures\n 4.53:1 — it passes, with no headroom at all, and it is the same\n blue-500 the contrast note warns about elsewhere. White on brand is\n fine for a button label; do not build a tinted variant on top of it\n without re-measuring. */\n --color-surface-default: var(--color-neutral-0);\n /* The ground a self-contained content object sits on: one step off the\n page, so a card, tile or panel reads as its own object without\n needing a border or a shadow to say so. Twelve components were\n reaching past the surface family for this, eight of them declaring\n the same local alias, because the role did not exist.\n\n Container is not subtle. Subtle groups things that already belong\n together and is meant to recede; container is the default ground of\n an object that stands on its own. They also differ visibly -- the\n step between them is the difference between an object on the page\n and a wash behind a group -- so they are not interchangeable.\n\n The name means a visual container for content. It has nothing to do\n with CSS container queries. */\n --color-surface-container: var(--color-neutral-25);\n --color-surface-subtle: var(--color-neutral-50);\n --color-surface-muted: var(--color-neutral-100);\n --color-surface-inverse: var(--color-neutral-900);\n /* The frame around media: a video letterbox, a terminal panel. Dark in\n every theme, because what it frames is dark -- which is why it is\n not --color-surface-inverse, the polarity flip, that both used to\n read. Inverse turns light in a dark theme; a letterbox must not,\n and the terminal's own palette (blue-400, the traffic-light green)\n is only legible on a dark ground. Dark mode decision 15. */\n --color-surface-media: var(--color-neutral-900);\n /* The plate a multi-colour mark sits on: an award badge, a partner's\n logo, artwork whose owner fixed its colours. Light in every theme,\n the media frame's counterpart -- a mark drawn for a white page reads\n on this plate on a dark page too, so no mark needs a dark version\n and no page decides per mark. A one-ink mark does not take it: it\n draws in currentColor or a text role, and follows the theme. */\n --color-surface-mark: var(--color-neutral-0);\n --color-surface-brand: var(--color-brand-500);\n --color-surface-disabled: var(--color-neutral-100);\n /* The ground of a control while it is held down, one step below\n -muted (its hover). bd-back read neutral-200 for this and said in a\n no-token comment that the surface roles stopped at -muted; reading\n the primitive meant it could not follow a theme, and on a dark page\n it measured 1.48:1 under a label that did (dark mode finding 14). */\n --color-surface-pressed: var(--color-neutral-200);\n --color-surface-success: var(--color-green-50);\n --color-surface-warning: var(--color-yellow-50);\n --color-surface-error: var(--color-red-50);\n --color-surface-info: var(--color-blue-50);\n\n /* Borders, measured on --color-surface-default. Only the two that\n bound a live control clear the 3:1 WCAG 1.4.11 asks of a UI\n component: -default at 3.23 and -brand at 4.53.\n\n -subtle (1.66) and -disabled (2.27) sit below it on purpose.\n -subtle is a decorative hairline between things that already belong\n together, not the edge of anything actionable, and disabled controls\n are exempt under 1.4.3. Do not reach for -subtle to outline a\n control.\n\n -default's 3.23 holds on white and nowhere darker: on a band it is\n 2.88 (surface-subtle) and 2.51 (surface-muted), and on the brand\n tint 2.99. So a control drawn in it carries a fill of its own --\n surface-default, the ground it was measured on -- and its edge is\n read against that fill wherever it is placed. A field already does\n (--form-input-default-backgroundColor). A control with no fill, or\n whose fill IS this colour (the switch's off track), belongs on the\n page or a card, not on a band. The rule is where it goes; a darker\n -default would move every field edge in the system to fix a case\n nothing in the package draws. */\n --color-border-subtle: var(--color-neutral-200);\n --color-border-default: var(--color-neutral-400);\n --color-border-strong: var(--color-neutral-900);\n --color-border-brand: var(--color-brand-500);\n --color-border-disabled: var(--color-neutral-300);\n\n /* The boundary of a self-contained object -- a card, a panel, a\n navigation band -- drawn only so the object is perceptible, never so\n it looks operable. It is the border counterpart of\n --color-surface-container, and the two answer the same question from\n opposite sides: is this its own thing.\n\n It exists because eight components needed it and none could ask for\n it. Seven reached past the roles to --color-neutral-100 directly and\n one more declared a private --border-card-grey alias in seven files\n to say --color-neutral-50. Measured on --color-surface-default it is\n 1.29:1, and on --color-surface-container 1.23:1 -- deliberately below\n -subtle's 1.66, because -subtle is already spoken for as the hairline\n between things that belong together, and a long way below the 3:1\n WCAG 1.4.11 asks of anything actionable. That is the point: an object\n boundary is not a control edge, and must not read as one.\n\n -inverse is the same responsibility on an inverse surface, the way\n --color-text-inverse and --color-surface-inverse are, and not a\n second role. It is spelled as a proportion of --color-neutral-0\n rather than a raw rgba for the same reason\n --button-outline-white-border-default is: the value stays traceable\n to a token when the palette moves. Over --color-surface-inverse it\n measures 1.42:1, which puts it in the same perceptual band as the\n light value rather than at the 10.8:1 --color-border-subtle would\n give there.\n\n This role says what a low-emphasis boundary looks like. It does not\n say whether a component should have one -- that stays a component\n decision, and the evidence says the components genuinely disagree. */\n --color-border-container: var(--color-neutral-100);\n --color-border-container-inverse: color-mix(in srgb, var(--color-neutral-0) 12%, transparent);\n\n /* Action. The interactive ramp, one step down the palette per state.\n accent is this system's conversion colour — Buy now and the like —\n and is not a danger signal; see the bd-button story notes. */\n --color-action-primary: var(--color-brand-500);\n --color-action-primary-hover: var(--color-brand-600);\n --color-action-primary-active: var(--color-brand-700);\n --color-action-accent: var(--color-red-600);\n --color-action-accent-hover: var(--color-red-700);\n --color-action-accent-active: var(--color-red-800);\n /* The neutral action fill: the secondary button, and the ghost\n button's pressed state. Both read neutral-950 / 800 / 1000 straight\n from the palette, which no theme can reach -- and the dark page is\n neutral-950 too, so in a dark theme the fill would vanish into it\n (dark mode finding 8). A role gives the fill a value of its own in\n each theme. */\n --color-action-secondary: var(--color-neutral-950);\n --color-action-secondary-hover: var(--color-neutral-800);\n --color-action-secondary-active: var(--color-neutral-1000);\n /* Ink on an action fill: a button label, a checkmark, a radio dot, a\n switch thumb. Before this role existed the buttons read\n --color-text-inverse (\"text on an inverse surface\") and the controls\n read --color-surface-default (\"the page\"). Both resolve to white in\n this theme, which is why the borrowing never showed -- and both must\n flip to near-black in a dark one, which would turn every label and\n mark dark on its blue or red fill. White clears every action fill:\n 4.53 to 10.51:1 on the blue and red ones, 13.28 to 21:1 on the\n near-black secondary ones. Measured in the Figma Dark mode study,\n and re-measured on the live tokens 2026-10-15. */\n --color-action-on-fill: var(--color-neutral-0);\n /* Ink on a BRAND fill: a label, a checkmark, a dot or a thumb sitting on\n a colour from the brand ramp. White today, the same pixel\n --color-action-on-fill gives, so nothing moves. It exists because the\n two stop agreeing the moment a partner's brand is light: white on a\n typical brand orange is about 2.6:1, black about 8:1. A partner theme\n sets this to whichever clears its fill, and --color-action-on-fill\n stays white for the fills that are not the brand's -- the red accent\n and the near-black secondary, where black would fail. Part of the\n theme contract (src/tokens/themes/contract.ts). */\n --color-brand-on-fill: var(--color-neutral-0);\n\n /* ================================\n SEMANTIC ROLES - STACKING\n ================================\n Thirty z-index declarations across eight values that were never\n chosen relative to one another: -1, 1, 2, 10, 200, 1000, 1001 and\n 9999. Both bd-modal and the carousel sit on 9999, so there is no\n answer to which of the two wins — that is what an unscaled ladder\n costs.\n\n The rungs are far apart on purpose, so a component can take a rung\n and still stack its own internals inside it with a calc. A tooltip\n opened from inside a dialog has to clear the dialog, which is why\n it is the top rung rather than the first. */\n --z-below: -1;\n --z-base: 1;\n --z-raised: 2;\n --z-sticky: 200;\n --z-overlay: 1000;\n --z-modal: 1100;\n --z-tooltip: 1200;\n\n /* ================================\n SEMANTIC ROLES - OPACITY\n ================================\n One role, because one role is what the evidence supports. The dim\n end of a reduced-motion pulse is spelled three times in the atom\n layer — bd-button and bd-spinner at 0.4, bd-skeleton at 0.45 — and\n is the same intent each time: a mark that cannot spin should still\n read as busy.\n\n Disabled is deliberately absent. This system expresses disabled with\n the neutral ramp rather than by dimming, and the one token that said\n otherwise (--button-shared-disabled-opacity: 0.6) is unused. */\n --opacity-pulse: 0.4;\n\n /* ================================\n SEMANTIC ROLE - STATUS TONES\n ================================\n bd-badge, bd-tag and bd-alert say the same things -- six on the badge\n and the tag, five on the alert, which has no brand -- and each\n spelled them out for itself. The text colours already matched across\n badge and tag — the tag story says so — but by coincidence rather\n than construction, and the one place they had drifted proves the\n point: alert drew its success rule in green-600 where badge's\n success dot used green-700.\n\n Seven roles, because the three components need different weights of\n the same tone:\n\n -text ink on a tinted chip badge shade, tag\n -surface the light tint tag, alert\n -surface-strong the heavier tint badge shade\n -border the hairline tag\n -accent the saturated step badge dot, alert rule\n -fill / -on-fill a saturated chip and its ink badge fill\n\n What is deliberately *not* unified: a tag carries a border and sits\n on -surface, a badge has no border and sits on -surface-strong. That\n difference is documented in the tag story — the lighter fill is what\n lets the tag's border read — so it is expressed as two roles rather\n than flattened into one.\n\n Brand's -surface-strong is brand-100, which under Bitdefender is\n info's blue-100, so a brand badge on it could not be told from an\n info badge: the badge keeps sitting on -surface like its tag. The\n role exists for the blog, whose chips step between the brand's two\n washes, as every other tone's do. */\n\n --status-neutral-text: var(--color-neutral-700);\n --status-neutral-surface: var(--color-neutral-50);\n --status-neutral-surface-strong: var(--color-neutral-100);\n --status-neutral-border: var(--color-neutral-200);\n --status-neutral-accent: var(--color-neutral-700);\n --status-neutral-fill: var(--color-neutral-900);\n --status-neutral-on-fill: var(--color-neutral-0);\n\n --status-brand-text: var(--color-brand-600);\n --status-brand-surface: var(--color-brand-50);\n --status-brand-surface-strong: var(--color-brand-100);\n --status-brand-border: var(--color-brand-200);\n --status-brand-accent: var(--color-brand-600);\n --status-brand-fill: var(--color-brand-500);\n --status-brand-on-fill: var(--color-brand-on-fill);\n\n --status-info-text: var(--color-blue-600);\n --status-info-surface: var(--color-blue-50);\n --status-info-surface-strong: var(--color-blue-100);\n --status-info-border: var(--color-blue-200);\n --status-info-accent: var(--color-blue-500);\n --status-info-fill: var(--color-blue-500);\n --status-info-on-fill: var(--color-neutral-0);\n\n --status-success-text: var(--color-green-800);\n --status-success-surface: var(--color-green-50);\n --status-success-surface-strong: var(--color-green-100);\n --status-success-border: var(--color-green-200);\n --status-success-accent: var(--color-green-700);\n --status-success-fill: var(--color-green-700);\n --status-success-on-fill: var(--color-neutral-0);\n\n --status-warning-text: var(--color-yellow-800);\n --status-warning-surface: var(--color-yellow-50);\n --status-warning-surface-strong: var(--color-yellow-100);\n --status-warning-border: var(--color-yellow-200);\n --status-warning-accent: var(--color-yellow-700);\n --status-warning-fill: var(--color-yellow-500);\n --status-warning-on-fill: var(--color-neutral-900);\n\n --status-error-text: var(--color-red-700);\n --status-error-surface: var(--color-red-50);\n --status-error-surface-strong: var(--color-red-100);\n --status-error-border: var(--color-red-200);\n --status-error-accent: var(--color-red-600);\n --status-error-fill: var(--color-red-600);\n --status-error-on-fill: var(--color-neutral-0);\n\n /* ================================\n COMPONENT TOKENS - TYPOGRAPHY\n ================================ */\n\n\n /* ===============================================================\n FLUID TYPE - the roles that cannot hold their size on a phone.\n\n WHY. Measured in the Figma file (page \"Type on mobile\"), the\n binding constraint on large type is not how many lines a sentence\n takes, it is whether the longest UNBREAKABLE WORD fits the column.\n The column is the viewport minus twice --grid-padding-*, so a 320px\n phone gives type 288px -- 10% of the screen is gutter. Against that\n column, the widest real words in the nine shipping languages --\n harvested from live localized copy, see type-ceiling-words.ts and\n plans/LATER.md entry 8 -- set two ceilings: 28px for any copy\n (Swedish \"kalenderinbjudningar\", 10.16px of width per px of size)\n and 31px for headline copy (German \"Gründungsmitglied\", 9.05).\n heading-h1 is 48. It overflowed at 375 as well as at 320. (This\n rested on a Finnish word once; Finnish is not a market, and three\n real words beat it.)\n\n WHY NOT A BREAKPOINT STEP. Tried first and abandoned, measured:\n stepping h1 to 36 below sm still overflows at 320 (needs 327 of\n 288) and changes nothing at 576-767 where the ceiling is already 54.\n The constraint moves continuously with the column, because the\n column is a function of viewport width -- a step function\n approximates a line with a staircase. clamp() states the line.\n\n THE WINDOW IS 320 -> 992. The minimum is reached at 320 and the\n maximum at 992, which is the lg breakpoint. Above lg NOTHING\n changes from the sizes this system shipped with, so every desktop\n layout that has been reviewed stays exactly as reviewed, and the\n whole change is confined to the widths where the failures were\n measured.\n\n THE MIDDLE TERM CARRIES A rem, AND THAT IS NOT OPTIONAL.\n clamp(2rem, 4vw, 3rem) is the spelling everyone reaches for and it\n breaks text resize: a size depending only on viewport width ignores\n the reader's own font-size setting, which is WCAG 1.4.4. With a rem\n in the middle term the type still grows when the reader enlarges\n it. This package already refuses the equivalent mistake twice --\n line-height is always unitless, and --spacing-* is rem precisely so\n boxes grow with the text.\n\n THE TWO LITERALS PER ROLE ARE DERIVED, NOT CHOSEN. For a role\n running from min m to max M across the window V1..V2:\n\n slope = (M - m) / (V2 - V1) px of size per px of width\n vw term = slope x 100\n rem term = (m - slope x V1) / 16\n\n With V1=320 and V2=992 that is (M-m)/6.72 vw and\n (m - (M-m)/2.1) / 16 rem. Every pair below is that arithmetic and\n nothing else; each line states its own m and M so it can be checked\n without re-deriving. Changing the mobile ladder means changing the\n -fontSizeMin token and re-running the two formulas.\n\n THE MOBILE LADDER IS THE DESIGN DECISION HERE, and it is these six\n numbers: 30 27 24 21 18 16 for h1 through h6. Its ratios are 1.11,\n 1.13, 1.14, 1.17, 1.13 -- near-even, against the desktop ladder's\n irregular 1.33, 1.13, 1.33, 1.20, 1.11. A phone has less range to\n spend (16 to the 31px headline ceiling, a factor of 1.94, where\n desktop has 18 to 48, a factor of 2.67), so the ladder has to\n compress, and compressing it evenly is what keeps six levels\n distinguishable. Measured on the harvest: h1 at 30 sets the widest\n headline word in 272px of a 288px column. The widest word of any\n tier would need 305, so a headline word wider than 960px per 100px\n of size is a stated copy constraint (LATER.md entry 8) rather than\n a margin the ladder holds -- none of the five such words is a\n headline today.\n\n WHAT IS DELIBERATELY NOT FLUID.\n - Every role at 24px and below except body-lead. Nothing that small\n overflows, and the small end's own failure is measure, not\n overflow -- see below.\n - display-lg, display-xl, display-2xl, display-3xl (60 to 128px).\n Above display-md the family has NO mobile identity to give it:\n four roles would all have to squeeze between 30 and the 31px\n headline ceiling. They are desktop-only, and a component that\n needs one of them on a phone should reach for a heading role\n instead. Recorded rather than papered over.\n - body-regular at 16px. It runs 40 characters per line on a 288px\n column, which the study first called \"below the comfortable\n 45-75 band\" -- and that band is a print and desktop yardstick.\n Reaching 45 CPL on a 288px column needs 14.2px body text, and 50\n CPL needs 12.8px; applying it to a phone trades the 16px\n accessibility floor for a soft readability target. 40 characters\n is what every phone does. body-lead is the one prose role that\n does move, 20 -> 18, because at 20 it ran 32 characters -- five\n or six words a line -- and an intro paragraph has no claim on\n being the largest thing on a small screen.\n =============================================================== */\n\n /* Heading Tokens */\n /* fluid: 30px at 320 -> 48px at 992. (48-30)/6.72=2.6786vw, (30-(48-30)/2.1)/16=1.33929rem */\n --typography-heading-h1-fontSizeMin: 1.875rem; /* 30px */\n --typography-heading-h1-fontSize: clamp(\n var(--typography-heading-h1-fontSizeMin),\n calc(1.33929rem + 2.6786vw),\n var(--typography-fontSize-5xl)\n );\n --typography-heading-h1-fontWeight: var(--typography-fontWeight-bold);\n --typography-heading-h1-lineHeight: var(--typography-lineHeight-tight);\n --typography-heading-h1-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-heading-h1-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 27px at 320 -> 36px at 992. (36-27)/6.72=1.3393vw, (27-(36-27)/2.1)/16=1.41964rem */\n --typography-heading-h2-fontSizeMin: 1.6875rem; /* 27px */\n --typography-heading-h2-fontSize: clamp(\n var(--typography-heading-h2-fontSizeMin),\n calc(1.41964rem + 1.3393vw),\n var(--typography-fontSize-4xl)\n );\n --typography-heading-h2-fontWeight: var(--typography-fontWeight-bold);\n --typography-heading-h2-lineHeight: var(--typography-lineHeight-tight);\n --typography-heading-h2-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-heading-h2-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 24px at 320 -> 32px at 992. (32-24)/6.72=1.1905vw, (24-(32-24)/2.1)/16=1.26190rem */\n --typography-heading-h3-fontSizeMin: 1.5rem; /* 24px */\n --typography-heading-h3-fontSize: clamp(\n var(--typography-heading-h3-fontSizeMin),\n calc(1.26190rem + 1.1905vw),\n var(--typography-fontSize-3xl)\n );\n --typography-heading-h3-fontWeight: var(--typography-fontWeight-semibold);\n --typography-heading-h3-lineHeight: var(--typography-lineHeight-130);\n --typography-heading-h3-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-heading-h3-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 21px at 320 -> 24px at 992. (24-21)/6.72=0.4464vw, (21-(24-21)/2.1)/16=1.22321rem */\n --typography-heading-h4-fontSizeMin: 1.3125rem; /* 21px */\n --typography-heading-h4-fontSize: clamp(\n var(--typography-heading-h4-fontSizeMin),\n calc(1.22321rem + 0.4464vw),\n var(--typography-fontSize-2xl)\n );\n --typography-heading-h4-fontWeight: var(--typography-fontWeight-semibold);\n --typography-heading-h4-lineHeight: var(--typography-lineHeight-130);\n --typography-heading-h4-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-heading-h4-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 18px at 320 -> 20px at 992. (20-18)/6.72=0.2976vw, (18-(20-18)/2.1)/16=1.06548rem */\n --typography-heading-h5-fontSizeMin: 1.125rem; /* 18px */\n --typography-heading-h5-fontSize: clamp(\n var(--typography-heading-h5-fontSizeMin),\n calc(1.06548rem + 0.2976vw),\n var(--typography-fontSize-xl)\n );\n --typography-heading-h5-fontWeight: var(--typography-fontWeight-medium);\n --typography-heading-h5-lineHeight: var(--typography-lineHeight-140);\n --typography-heading-h5-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-heading-h5-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 16px at 320 -> 18px at 992. (18-16)/6.72=0.2976vw, (16-(18-16)/2.1)/16=0.94048rem */\n --typography-heading-h6-fontSizeMin: 1rem; /* 16px */\n --typography-heading-h6-fontSize: clamp(\n var(--typography-heading-h6-fontSizeMin),\n calc(0.94048rem + 0.2976vw),\n var(--typography-fontSize-lg)\n );\n --typography-heading-h6-fontWeight: var(--typography-fontWeight-medium);\n --typography-heading-h6-lineHeight: var(--typography-lineHeight-145);\n --typography-heading-h6-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-heading-h6-fontFamily: var(--typography-fontFamily-sans);\n\n /* Body Text Tokens */\n --typography-body-large-fontSize: var(--typography-fontSize-lg);\n --typography-body-large-fontWeight: var(--typography-fontWeight-normal);\n --typography-body-large-lineHeight: var(--typography-lineHeight-145);\n --typography-body-large-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-body-large-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-body-regular-fontSize: var(--typography-fontSize-base);\n --typography-body-regular-fontWeight: var(--typography-fontWeight-normal);\n --typography-body-regular-lineHeight: var(--typography-lineHeight-normal);\n --typography-body-regular-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --typography-body-regular-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-body-small-fontSize: var(--typography-fontSize-sm);\n --typography-body-small-fontWeight: var(--typography-fontWeight-normal);\n --typography-body-small-lineHeight: var(--typography-lineHeight-145);\n --typography-body-small-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-body-small-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 18px at 320 -> 20px at 992. (20-18)/6.72=0.2976vw, (18-(20-18)/2.1)/16=1.06548rem */\n --typography-body-lead-fontSizeMin: 1.125rem; /* 18px */\n --typography-body-lead-fontSize: clamp(\n var(--typography-body-lead-fontSizeMin),\n calc(1.06548rem + 0.2976vw),\n var(--typography-fontSize-xl)\n );\n --typography-body-lead-fontWeight: var(--typography-fontWeight-normal);\n --typography-body-lead-lineHeight: var(--typography-lineHeight-140);\n --typography-body-lead-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-body-lead-fontFamily: var(--typography-fontFamily-sans);\n\n /* Label Tokens */\n --typography-label-default-fontSize: var(--typography-fontSize-sm);\n --typography-label-default-fontWeight: var(--typography-fontWeight-medium);\n --typography-label-default-lineHeight: var(--typography-lineHeight-normal);\n --typography-label-default-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --typography-label-default-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-label-small-fontSize: var(--typography-fontSize-xs);\n --typography-label-small-fontWeight: var(--typography-fontWeight-medium);\n --typography-label-small-lineHeight: var(--typography-lineHeight-normal);\n --typography-label-small-letterSpacing: var(--typography-letterSpacing-wide);\n --typography-label-small-fontFamily: var(--typography-fontFamily-sans);\n\n /* The only role for the 11px step, and it carried a size and nothing\n else -- so anything using it inherited its leading from whatever it\n happened to sit inside, which is not a typography contract. The four\n missing axes match label-small, one step up. It has no consumers\n today; the five components that render 11px reach past it for the\n primitive, and moving them is a visual change this phase does not\n make. */\n --typography-label-extra-small-fontSize: var(--typography-fontSize-xxs);\n --typography-label-extra-small-fontWeight: var(--typography-fontWeight-medium);\n --typography-label-extra-small-lineHeight: var(--typography-lineHeight-normal);\n --typography-label-extra-small-letterSpacing: var(--typography-letterSpacing-wide);\n --typography-label-extra-small-fontFamily: var(--typography-fontFamily-sans);\n\n /* Deliberately size-only: bd-p variant=xsmall composes it with\n body-small's weight, leading and tracking, so giving it axes of its\n own would create a second answer to those questions.\n\n It lives in the body family, not the label one. It was\n --typography-label-xsmall-fontSize, one character away from\n label-extra-small, which is a complete 11px role with a weight, a\n leading and a family. Two names that close, describing things that\n different, is a trap: one is a role you can ask for and the other is\n a bare size that matches any one-axis 12px declaration on size\n alone. Naming it for the component that owns it says which is\n which. */\n --typography-body-xsmall-fontSize: var(--typography-fontSize-xs);\n\n --typography-label-large-fontSize: var(--typography-fontSize-base);\n --typography-label-large-fontWeight: var(--typography-fontWeight-medium);\n --typography-label-large-lineHeight: var(--typography-lineHeight-normal);\n --typography-label-large-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --typography-label-large-fontFamily: var(--typography-fontFamily-sans);\n\n /* Control Label Tokens\n\n label-* at control leading. Every label-* rung is lineHeight-normal\n (1.5); a control -- a badge, a button -- needs 1.25 so its box can be\n padding-driven without the line box forcing it taller.\n scripts/typography-pairings.json already records 16px at 1.25 as\n physically valid \"because control text needs it\", and rule 8 says\n that file is a technical boundary rather than authorization, so the\n authorization is here: this is the role that means \"a label on a\n control\".\n\n Motivated by badge.css.ts and button.css.ts's .bd-contact-btn, which\n each arrived independently at medium + tight and had no role to ask\n for. The three rungs mirror label-small / label-default /\n label-large step for step. The one place they do not mirror is\n tracking on the small rung: label-small is letterSpacing-wide, but\n badge -- the atom this rung exists for -- renders normal, so the rung\n describes its consumer rather than its twin. Everywhere else the only\n axis that differs from the label-* rung of the same name is the\n leading. */\n --typography-control-label-small-fontSize: var(--typography-fontSize-xs);\n --typography-control-label-small-fontWeight: var(--typography-fontWeight-medium);\n --typography-control-label-small-lineHeight: var(--typography-lineHeight-tight);\n --typography-control-label-small-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-control-label-small-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-control-label-default-fontSize: var(--typography-fontSize-sm);\n --typography-control-label-default-fontWeight: var(--typography-fontWeight-medium);\n --typography-control-label-default-lineHeight: var(--typography-lineHeight-tight);\n --typography-control-label-default-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-control-label-default-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-control-label-large-fontSize: var(--typography-fontSize-base);\n --typography-control-label-large-fontWeight: var(--typography-fontWeight-medium);\n --typography-control-label-large-lineHeight: var(--typography-lineHeight-tight);\n --typography-control-label-large-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-control-label-large-fontFamily: var(--typography-fontFamily-sans);\n\n /* The rung label-xl used to occupy. label-xl was lg/medium/normal and\n documented in vertical-rhythm.stories.ts as \"the name of a large\n control\" -- the same job this family names, but at label leading\n rather than control leading, and with no consumer in the package.\n Retired in favour of this. Note it was byte-identical to heading-h6,\n which stays: that pair was two questions with coincidentally equal\n answers, and heading-h6 is the one bd-h actually renders. */\n --typography-control-label-xl-fontSize: var(--typography-fontSize-lg);\n --typography-control-label-xl-fontWeight: var(--typography-fontWeight-medium);\n --typography-control-label-xl-lineHeight: var(--typography-lineHeight-tight);\n --typography-control-label-xl-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-control-label-xl-fontFamily: var(--typography-fontFamily-sans);\n\n /* Caption Tokens */\n --typography-caption-default-fontSize: var(--typography-fontSize-xs);\n --typography-caption-default-fontWeight: var(--typography-fontWeight-normal);\n --typography-caption-default-lineHeight: var(--typography-lineHeight-normal);\n --typography-caption-default-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --typography-caption-default-fontFamily: var(--typography-fontFamily-sans);\n --typography-caption-default-color: var(--color-text-muted);\n\n /* \"small\" is not smaller. It is caption-default with the tracking\n opened to wide -- 0.025em, which is the design's caption/small at\n 2.5% -- and every other axis equal. The repeated axes are the role\n being complete, as every role is, not a second copy to remove;\n bd-caption size=\"sm\" reads all five. */\n --typography-caption-small-fontSize: var(--typography-fontSize-xs);\n --typography-caption-small-fontWeight: var(--typography-fontWeight-normal);\n --typography-caption-small-lineHeight: var(--typography-lineHeight-normal);\n --typography-caption-small-letterSpacing: var(\n --typography-letterSpacing-wide\n );\n --typography-caption-small-fontFamily: var(--typography-fontFamily-sans);\n\n /* Link Tokens */\n --typography-link-default-fontSize: inherit;\n --typography-link-default-fontWeight: var(--typography-fontWeight-normal);\n --typography-link-default-lineHeight: inherit;\n --typography-link-default-letterSpacing: inherit;\n --typography-link-default-fontFamily: inherit;\n --typography-link-default-textDecoration-default: underline;\n --typography-link-default-textDecoration-hover: none;\n /* The gap between the text and its underline. It was spelled as a 2px\n literal in seven places in bd-link, on a property the length rule\n does not check, so nothing could see it and nothing could change it\n in one move. */\n --typography-link-underlineOffset: var(--spacing-2);\n --typography-link-underlineThickness: var(--border-width-2);\n\n --typography-link-standalone-fontSize: var(--typography-fontSize-base);\n --typography-link-standalone-fontWeight: var(--typography-fontWeight-medium);\n --typography-link-standalone-lineHeight: var(--typography-lineHeight-normal);\n --typography-link-standalone-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --typography-link-standalone-fontFamily: var(--typography-fontFamily-sans);\n --typography-link-standalone-textDecoration-default: underline;\n --typography-link-standalone-textDecoration-hover: none;\n\n /* Code Tokens */\n --typography-code-inline-fontSize: 0.875em;\n --typography-code-inline-fontWeight: var(--typography-fontWeight-normal);\n --typography-code-inline-lineHeight: inherit;\n --typography-code-inline-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --typography-code-inline-fontFamily: var(--typography-fontFamily-mono);\n\n --typography-code-block-fontSize: var(--typography-fontSize-sm);\n --typography-code-block-fontWeight: var(--typography-fontWeight-normal);\n --typography-code-block-lineHeight: var(--typography-lineHeight-relaxed);\n --typography-code-block-letterSpacing: var(--typography-letterSpacing-normal);\n --typography-code-block-fontFamily: var(--typography-fontFamily-mono);\n\n /* Display Typography Tokens */\n --typography-display-3xl-fontSize: var(--typography-fontSize-9xl);\n --typography-display-3xl-fontWeight: var(--typography-fontWeight-bold);\n --typography-display-3xl-lineHeight: var(--typography-lineHeight-tight);\n --typography-display-3xl-letterSpacing: var(--typography-letterSpacing-tight);\n --typography-display-3xl-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-display-2xl-fontSize: var(--typography-fontSize-8xl);\n --typography-display-2xl-fontWeight: var(--typography-fontWeight-bold);\n --typography-display-2xl-lineHeight: var(--typography-lineHeight-tight);\n --typography-display-2xl-letterSpacing: var(--typography-letterSpacing-tight);\n --typography-display-2xl-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-display-xl-fontSize: var(--typography-fontSize-7xl);\n --typography-display-xl-fontWeight: var(--typography-fontWeight-bold);\n --typography-display-xl-lineHeight: var(--typography-lineHeight-tight);\n --typography-display-xl-letterSpacing: var(--typography-letterSpacing-tight);\n --typography-display-xl-fontFamily: var(--typography-fontFamily-sans);\n\n --typography-display-lg-fontSize: var(--typography-fontSize-6xl);\n --typography-display-lg-fontWeight: var(--typography-fontWeight-bold);\n --typography-display-lg-lineHeight: var(--typography-lineHeight-tight);\n --typography-display-lg-letterSpacing: var(--typography-letterSpacing-tight);\n --typography-display-lg-fontFamily: var(--typography-fontFamily-sans);\n\n /* fluid: 30px at 320 -> 48px at 992. (48-30)/6.72=2.6786vw, (30-(48-30)/2.1)/16=1.33929rem */\n --typography-display-md-fontSizeMin: 1.875rem; /* 30px */\n --typography-display-md-fontSize: clamp(\n var(--typography-display-md-fontSizeMin),\n calc(1.33929rem + 2.6786vw),\n var(--typography-fontSize-5xl)\n );\n --typography-display-md-fontWeight: var(--typography-fontWeight-bold);\n --typography-display-md-lineHeight: var(--typography-lineHeight-tight);\n --typography-display-md-letterSpacing: var(--typography-letterSpacing-tight);\n --typography-display-md-fontFamily: var(--typography-fontFamily-sans);\n\n /* 36px at every width: the floor meets the 4xl ceiling, so the fluid\n middle term never wins. It is kept for a brand that lowers the floor\n (it ramps 30px at 320 -> 36px at 992). */\n --typography-display-sm-fontSizeMin: 2.25rem; /* 36px */\n --typography-display-sm-fontSize: clamp(\n var(--typography-display-sm-fontSizeMin),\n calc(1.69643rem + 0.8929vw),\n var(--typography-fontSize-4xl)\n );\n --typography-display-sm-fontWeight: var(--typography-fontWeight-bold);\n --typography-display-sm-lineHeight: var(--typography-lineHeight-tight);\n --typography-display-sm-letterSpacing: var(--typography-letterSpacing-tight);\n --typography-display-sm-fontFamily: var(--typography-fontFamily-sans);\n\n /* ================================\n COMPONENT TOKENS - FORM\n ================================ */\n\n /* Form Label Tokens\n\n The type of a field's label is the label role's, read through: the\n default and small rungs were the same five values as\n --typography-label-default-* and -small-*, written out a second time,\n so a change to the role would have reached bd-text and missed every\n form. Colour and margin stay here; they are the form's own and no\n role carries them.\n\n Large differs on one axis. Its size is 18px where label-large is\n 16px, set to the large field's own text (--form-input-large-fontSize)\n so the label and the value read at the same step; a field's own\n label at size lg, bd-label size=lg and the bd-fieldset legend all\n render it. That size stays a\n primitive -- no label role sits at 18px -- and the other four axes\n are label-large's. */\n --form-label-default-fontSize: var(--typography-label-default-fontSize);\n --form-label-default-fontWeight: var(--typography-label-default-fontWeight);\n --form-label-default-lineHeight: var(--typography-label-default-lineHeight);\n --form-label-default-letterSpacing: var(--typography-label-default-letterSpacing);\n --form-label-default-fontFamily: var(--typography-label-default-fontFamily);\n --form-label-default-color: var(--color-text-primary);\n --form-label-default-marginBottom: var(--spacing-4);\n\n --form-label-large-fontSize: var(--typography-fontSize-lg);\n --form-label-large-fontWeight: var(--typography-label-large-fontWeight);\n --form-label-large-lineHeight: var(--typography-label-large-lineHeight);\n --form-label-large-letterSpacing: var(--typography-label-large-letterSpacing);\n --form-label-large-fontFamily: var(--typography-label-large-fontFamily);\n --form-label-large-color: var(--color-text-primary);\n --form-label-large-marginBottom: var(--spacing-8);\n\n --form-label-small-fontSize: var(--typography-label-small-fontSize);\n --form-label-small-fontWeight: var(--typography-label-small-fontWeight);\n --form-label-small-lineHeight: var(--typography-label-small-lineHeight);\n --form-label-small-letterSpacing: var(--typography-label-small-letterSpacing);\n --form-label-small-fontFamily: var(--typography-label-small-fontFamily);\n --form-label-small-color: var(--color-text-primary);\n --form-label-small-marginBottom: var(--spacing-4);\n\n --form-label-required-color: var(--status-error-accent);\n --form-label-required-marginLeft: var(--spacing-4);\n\n /* Form Input Tokens */\n\n /* The height of a control is derived, not chosen: padding, type step and\n line-height, the same three bd-button derives its own height from.\n That derivation is what keeps a field and a button of the same size\n the same height on one row of a form.\n\n These three said --dimension-36/44/56 and stated a height the system\n does not draw. A small field renders 33.5px and a large one 54.5px;\n only medium agreed, and it agreed by coincidence. Nothing read them,\n so nothing surfaced the disagreement -- which is the argument for\n spelling the derivation here rather than a rounder number, and for\n shared/form-field.css.ts reading these instead of repeating the calc\n three times. Changing them changes no pixel; it changes what the\n package tells a consumer the height is.\n\n The derivation counts padding but not the 1px border on each edge,\n and the box is border-box, so these heights leave the line box 2px\n taller than the content box. An input hides that -- it centres its\n line and paints into the padding -- but a select clips at the\n content box, and at md its descenders lost their bottoms.\n Correcting the height would move a field off its button, so the\n border comes out of the block padding instead: see the note after\n the size rules in shared/form-field.css.ts. */\n --form-input-small-height: calc(\n var(--spacing-8) * 2 + var(--typography-fontSize-sm) * var(--typography-lineHeight-tight)\n );\n --form-input-small-fontSize: var(--typography-fontSize-sm);\n --form-input-small-padding: var(--spacing-8) var(--spacing-12);\n --form-input-small-borderRadius: var(--shape-radius-sm);\n\n --form-input-medium-height: calc(\n var(--spacing-12) * 2 + var(--typography-fontSize-base) * var(--typography-lineHeight-tight)\n );\n --form-input-medium-fontSize: var(--typography-fontSize-base);\n --form-input-medium-padding: var(--spacing-12) var(--spacing-16);\n --form-input-medium-borderRadius: var(--shape-radius-md);\n\n --form-input-large-height: calc(\n var(--spacing-16) * 2 + var(--typography-fontSize-lg) * var(--typography-lineHeight-tight)\n );\n --form-input-large-fontSize: var(--typography-fontSize-lg);\n --form-input-large-padding: var(--spacing-16) var(--spacing-20);\n --form-input-large-borderRadius: var(--shape-radius-lg);\n\n --form-input-default-backgroundColor: var(--color-surface-default);\n --form-input-default-borderColor: var(--color-border-default);\n --form-input-default-borderWidth: var(--border-width-1);\n --form-input-default-color: var(--color-text-primary);\n --form-input-default-fontFamily: var(--typography-fontFamily-sans);\n /* There is deliberately no --form-input-default-lineHeight. There was\n one, it said normal (1.5), it had no consumer, and it described the\n opposite of what the control does: form-field.css.ts sets tight and\n records why -- at normal the line box stood taller than the content\n box the derived height leaves, and the select clipped the descenders\n of its own option text.\n\n It is not restored as tight either. The control's height is\n DERIVED from padding, type step and this leading, so exposing the\n leading as a component token would let a consuming page change the\n height by setting something that reads like a type preference. The\n primitive is used at the one site that needs it, with its reason on\n the line, which is what keeps the box and the text unable to\n disagree. */\n\n --form-input-focus-borderColor: var(--color-border-brand);\n --form-input-focus-boxShadow: var(--shadow-focus-outline-blue);\n\n --form-input-error-backgroundColor: var(--status-error-surface);\n --form-input-error-borderColor: var(--status-error-accent);\n\n --form-input-success-backgroundColor: var(--status-success-surface);\n --form-input-success-borderColor: var(--color-green-600);\n\n --form-input-disabled-backgroundColor: var(--color-surface-disabled);\n --form-input-disabled-borderColor: var(--color-border-disabled);\n --form-input-disabled-color: var(--color-text-subtle);\n\n /* Form Help Text Tokens */\n --form-help-text-default-fontSize: var(--typography-fontSize-xs);\n --form-help-text-default-fontWeight: var(--typography-fontWeight-normal);\n --form-help-text-default-lineHeight: var(--typography-lineHeight-normal);\n --form-help-text-default-letterSpacing: var(\n --typography-letterSpacing-normal\n );\n --form-help-text-default-fontFamily: var(--typography-fontFamily-sans);\n --form-help-text-default-color: var(--color-text-muted);\n --form-help-text-default-marginTop: var(--spacing-4);\n\n /* Measured against the tint the field itself takes in each state, not\n against white — that is the background this text actually sits\n beside. red-600 on red-50 is 4.92 and needs nothing.\n\n success was green-700, which is 4.75 on white but only 4.51 on\n green-50: passing by a hundredth, and the kind of margin that stops\n passing the moment a tint moves. green-800 is 6.42 there, and is\n already the step --color-text-success names for this role. */\n --form-help-text-error-color: var(--status-error-accent);\n --form-help-text-success-color: var(--color-text-success);\n\n /* Form Layout Tokens\n\n These were written against a step-indexed spacing scale, where the\n number is the position on the scale, and never converted when the\n scale became pixel-named, where the number is the value. So\n --spacing-6 stopped meaning \"the sixth step, 24px\" and started\n meaning 6px, silently — every token still resolved, and the lint has\n no way to see it.\n\n bd-fieldset consumes fieldSpacing, so a form built from it has been\n stacking its fields 6px apart. Decoded as indices these read 24 and\n 32, which is what a form actually wants and what the value is set to\n here. */\n --form-fieldSpacing: var(--spacing-24);\n\n /* ================================\n COMPONENT TOKENS - BUTTON\n ================================ */\n\n /* Button Size Tokens */\n /* One size family. There were two — this one and --button-size-*, with\n different padding in each and neither matching what the component\n rendered. bd-button reads these.\n\n No -height. The component derives its height from padding, type step\n and line-height rather than pinning it, which is what keeps it equal\n to a field of the same size; a height token here would be a second\n answer that could disagree. */\n --button-small-fontSize: var(--typography-fontSize-sm);\n --button-small-padding: var(--spacing-8) var(--spacing-16);\n --button-small-gap: var(--spacing-4);\n --button-small-borderRadius: var(--shape-radius-sm);\n\n --button-medium-fontSize: var(--typography-fontSize-base);\n --button-medium-padding: var(--spacing-12) var(--spacing-24);\n --button-medium-gap: var(--spacing-8);\n --button-medium-borderRadius: var(--shape-radius-md);\n\n --button-large-fontSize: var(--typography-fontSize-lg);\n --button-large-padding: var(--spacing-16) var(--spacing-32);\n --button-large-gap: var(--spacing-8);\n --button-large-borderRadius: var(--shape-radius-lg);\n\n /* Removed 2026-10-15, because nothing read them: the seven\n --button-default-* (a state no variant draws), and\n --button-shared-focus-boxShadow, -disabled-opacity and\n -disabled-cursor (the button draws focus with the outline below and\n disabled through its own rules). Likewise the three\n --form-input-*-placeholderColor tokens, the --form-section-,\n -label- and -helpTextSpacing trio, and two --layout-awards- widths.\n None was mirrored in Figma, which carries no component tokens. */\n /* Button Shared Tokens */\n --button-shared-fontFamily: var(--typography-fontFamily-sans);\n --button-shared-fontWeight: var(--typography-fontWeight-medium);\n --button-shared-lineHeight: var(--typography-lineHeight-tight);\n --button-shared-letterSpacing: var(--typography-letterSpacing-normal);\n --button-shared-borderWidth: var(--border-width-1);\n --button-shared-transition-properties: background-color, border-color, color,\n box-shadow;\n --button-shared-transition-duration: var(--transition-duration-normal);\n --button-shared-transition-easing: var(--transition-easing-smooth);\n --button-shared-focus-outline: var(--focus-outline-traditional);\n --button-shared-focus-outlineOffset: var(--focus-outline-offset);\n\n /* ---- variant colours -------------------------------------------\n Named for the kind attribute they serve, because that is the public\n vocabulary: primary, secondary, tertiary, ghost, accent, white and\n outline-white. They used to be named tertiaryPrimary,\n tertiarySecondary and cta, which no consumer could map onto the\n component without reading its source.\n\n bd-button aliases each of these onto a --button-*-bg property on its\n own :host, so there are two override points and they do different\n jobs: set the token on :root to move every button in the document,\n or the alias on the bd-button element to move one. The alias is also what\n surface=\"dark\" switches, which is why the component keeps it.\n\n Every value here is what the component already renders. The old\n values had drifted apart from it in four places — secondary's hover\n and active, tertiary's hover border and ghost's active fill — so\n wiring them up unchanged would have moved pixels.\n\n The per-variant -focus and -disabled sets are gone. The component\n draws its focus ring as an offset outline -- the blue one through\n --button-shared-focus-outline by default, the white one from\n --focus-outline-traditional-inverse under surface=\"dark\" and on\n white and outline-white -- and one shared disabled treatment;\n thirty tokens described per-variant versions of both that nothing\n rendered. --button-empty-* went with them: there is no empty kind. */\n\n /* primary: blue fill */\n --button-primary-background-default: var(--color-action-primary);\n --button-primary-background-hover: var(--color-action-primary-hover);\n --button-primary-background-active: var(--color-action-primary-active);\n --button-primary-text-default: var(--color-brand-on-fill);\n\n /* secondary: near-black fill */\n --button-secondary-background-default: var(--color-action-secondary);\n --button-secondary-background-hover: var(--color-action-secondary-hover);\n --button-secondary-background-active: var(--color-action-secondary-active);\n --button-secondary-text-default: var(--color-action-on-fill);\n\n /* tertiary: blue outline. text-hover is blue-600, not blue-500: on the\n blue-50 hover fill the lighter step measures 4.20:1 and fails 1.4.3,\n where blue-600 gives 5.72.\n .\n text-default is blue-600 for the same reason, applied to the state a\n reader actually sits in. The line above fixed hover, where blue-500\n failed outright, and left the resting state on blue-500 at 4.53:1 --\n passing 4.5 by 0.03 on pure white and failing on any tint, which is\n the margin CLAUDE.md says is not real. Both states now name the same\n ink role, and the role is the category-correct one: --color-action-primary\n is an interaction role for fills, not ink, and it was being read by a\n color: property. Measured 4.53:1 -> 6.18:1 on all six consumers.\n The ring is deliberately NOT changed here and stays blue-500: it is\n non-text UI at a 3:1 bar, it passes, and moving it would mean naming a\n blue-600 border role that does not exist. See the plan's backlog. */\n --button-tertiary-text-default: var(--color-text-brand);\n --button-tertiary-border-default: var(--color-border-brand);\n --button-tertiary-background-hover: var(--color-surface-info);\n --button-tertiary-text-hover: var(--color-text-brand);\n --button-tertiary-border-hover: var(--color-action-primary-hover);\n --button-tertiary-background-active: var(--color-action-primary);\n --button-tertiary-text-active: var(--color-brand-on-fill);\n\n /* ghost: dark outline */\n --button-ghost-text-default: var(--color-text-primary);\n --button-ghost-border-default: var(--color-border-strong);\n --button-ghost-background-hover: var(--color-surface-muted);\n --button-ghost-text-hover: var(--color-text-primary);\n --button-ghost-background-active: var(--color-action-secondary);\n --button-ghost-text-active: var(--color-action-on-fill);\n\n /* accent: red fill. This system's conversion colour — Buy now and the\n like — not a danger signal; there is deliberately no danger variant.\n red-600, not red-500: white on red-500 measures 4.00:1 and fails. */\n --button-accent-background-default: var(--color-action-accent);\n --button-accent-background-hover: var(--color-action-accent-hover);\n --button-accent-background-active: var(--color-action-accent-active);\n --button-accent-text-default: var(--color-action-on-fill);\n --button-accent-ring-default: transparent;\n\n /* white and outline-white: fixed presets for a solid-colour banner,\n where even a surface=\"dark\" primary would sit too close in tone.\n They ignore surface on purpose.\n\n text-default is blue-600 rather than blue-500: white is the fill\n here, and blue-500 on white is 4.53:1 — the marginal step the\n contrast note warns against for text.\n\n The translucent whites were rgba(255,255,255,…) and #ffffff8c\n literals, which no theme could reach. color-mix keeps the alpha and\n puts the colour back on the palette. */\n --button-white-background-default: var(--color-neutral-0);\n --button-white-background-hover: var(--color-brand-50);\n --button-white-background-active: var(--color-brand-100);\n /* A ramp step by name (--color-brand-600), not --color-text-brand. The\n preset is fixed -- a white fill on a brand band, in any theme -- so\n its ink must be fixed too. Reading the role mixed a fill that never\n switches with a label that does: text-brand goes light in a dark\n theme and measured 2.36:1 on the white fill (dark mode finding 8).\n\n The ramp keeps that property and still follows the business line: a\n step never flips with light or dark, but it is the brand's step, so\n the label matches the band it sits on under every brand. It was\n --color-blue-600 when blue was the only brand. */\n --button-white-text-default: var(--color-brand-600);\n\n --button-outline-white-text-default: var(--color-brand-on-fill);\n /* 71% rather than 55%. This edge is the only thing bounding an\n outline-white button, so it carries the 3:1 of WCAG 1.4.11 on its\n own. Measured over the grounds the preset is actually used on, 55%\n gave 2.34 on blue-500 and 2.90 on blue-600 and only cleared on\n blue-700 at 3.65. 71% is the lowest value that clears all three\n with one number, so the token stops depending on which blue is\n behind it. */\n --button-outline-white-border-default: color-mix(in srgb, var(--color-brand-on-fill) 71%, transparent);\n /* Hover and press DARKEN the band, they do not wash it white. A white\n wash lightened the blue under a white label: 3.91:1 on hover and\n 3.38 pressed over blue-500, and 4.22 pressed over blue-600 -- under\n the 4.5 the label needs. 10% and 20% black take blue-500 to 5.40\n and 6.49 and give the 71% edge more ground (3.46 and 4.03); every\n ground the preset sits on now clears, the CTA gradient included.\n Darker on hover is also what every filled button already does.\n .\n The trade-off, chosen knowingly: on the navy end of the CTA\n gradient (#061a5c) darkening barely shows, a 1.05 step where the\n white wash gave 1.31. The label is what must pass; the hover there\n is carried by the cursor. A white wash cannot work on blue-500 at\n all, where the label clears 4.5 at rest by 0.03. */\n --button-outline-white-background-hover: color-mix(in srgb, var(--color-neutral-1000) 10%, transparent);\n --button-outline-white-background-active: color-mix(in srgb, var(--color-neutral-1000) 20%, transparent);\n\n /* Shared across every variant. Filled kinds go grey; outlined ones keep\n a transparent fill and take the subtle border. Contrast is exempt\n here under WCAG 1.4.3.\n\n borderColor is --color-border-disabled: the role named for the state\n it expresses, and the one disabled-edge value the whole control\n family now shares. It read neutral-300 once, then moved to\n neutral-200 to match what the component drew; bd-checkbox and\n bd-radio have since moved to neutral-300, so token and component\n agree again -- a step darker, 2.27:1 against the page where\n neutral-200 gave 1.66, and still lighter than any enabled edge. */\n --button-disabled-backgroundColor: var(--color-surface-disabled);\n --button-disabled-borderColor: var(--color-border-disabled);\n --button-disabled-color: var(--color-text-subtle);\n\n /* ================================\n COMPONENT TOKENS - ANNOTATION\n ================================ */\n\n /* Footnote Tokens */\n --footnote-reference-fontSize: 0.75em;\n --footnote-reference-fontWeight: var(--typography-fontWeight-normal);\n --footnote-reference-lineHeight: 1;\n --footnote-reference-verticalAlign: super;\n --footnote-reference-color: inherit;\n --footnote-reference-marginLeft: 0.1em;\n --footnote-reference-marginRight: 0.2em;\n\n /* Citation Tokens */\n --citation-reference-fontSize: inherit;\n --citation-reference-fontWeight: var(--typography-fontWeight-normal);\n --citation-reference-lineHeight: inherit;\n --citation-reference-color: var(--color-text-brand);\n --citation-reference-textDecoration: underline;\n --citation-reference-hover-color: var(--color-text-brand-hover);\n --citation-reference-hover-textDecoration: none;\n\n /* Mathematical Notation Tokens */\n --math-superscript-fontSize: 0.75em;\n --math-superscript-fontWeight: var(--typography-fontWeight-normal);\n --math-superscript-lineHeight: 1;\n --math-superscript-verticalAlign: super;\n --math-superscript-marginLeft: 0.05em;\n\n --math-subscript-fontSize: 0.75em;\n --math-subscript-fontWeight: var(--typography-fontWeight-normal);\n --math-subscript-lineHeight: 1;\n --math-subscript-verticalAlign: sub;\n --math-subscript-marginLeft: 0.05em;\n\n /* ================================\n COMPONENT TOKENS - ICON\n ================================ */\n\n /* Icon Size Tokens */\n --icon-xs-size: var(--dimension-12);\n --icon-sm-size: var(--dimension-16);\n --icon-md-size: var(--dimension-20);\n --icon-lg-size: var(--dimension-24);\n --icon-xl-size: var(--dimension-32);\n --icon-2xl-size: var(--dimension-48);\n --icon-3xl-size: var(--dimension-64);\n\n /* The context aliases (--icon-button-*, --icon-form-*) and the ten\n --icon-*-color tokens were removed when the icon elements moved onto\n the size scale and currentColor. The aliases said the same thing as a\n step — --icon-button-small-size and --icon-sm-size were both 16px —\n and the colours described states an icon no longer has: it takes the\n colour of the text it sits in, so there is nothing per-state to keep\n in step. */\n\n /* ================================\n CORE SPACING TOKENS\n ================================ */\n \n --spacing-0: 0;\n --spacing-1: 0.0625rem; /* 1px */\n --spacing-2: 0.125rem; /* 2px */\n --spacing-4: 0.25rem; /* 4px */\n --spacing-6: 0.375rem; /* 6px */\n --spacing-8: 0.5rem; /* 8px */\n --spacing-10: 0.625rem; /* 10px */\n --spacing-12: 0.75rem; /* 12px */\n --spacing-14: 0.875rem; /* 14px */\n --spacing-16: 1rem; /* 16px */\n --spacing-18: 1.125rem; /* 18px */\n --spacing-20: 1.25rem; /* 20px */\n --spacing-22: 1.375rem; /* 22px */\n --spacing-24: 1.5rem; /* 24px */\n --spacing-28: 1.75rem; /* 28px */\n --spacing-32: 2rem; /* 32px */\n --spacing-36: 2.25rem; /* 36px */\n --spacing-40: 2.5rem; /* 40px */\n --spacing-44: 2.75rem; /* 44px */\n --spacing-48: 3rem; /* 48px */\n --spacing-52: 3.25rem; /* 52px */\n --spacing-56: 3.5rem; /* 56px */\n --spacing-64: 4rem; /* 64px */\n --spacing-80: 5rem; /* 80px */\n --spacing-96: 6rem; /* 96px */\n --spacing-112: 7rem; /* 112px */\n --spacing-128: 8rem; /* 128px */\n\n /* The OLD VALUES block stood here: --display-*, --heading-*, --body-* and\n --caption-* as pixel font sizes, and a second spacing vocabulary in\n --space-*, --padding-*, --container-*, --inset-*, --stack-* and\n --inline-*. Forty-nine tokens, every one a duplicate of something on\n a live scale under a different name, and not one of them referenced\n by any component. They are gone. Type comes from\n --typography-fontSize-* and the component type tokens above it;\n spacing comes from --spacing-*. */\n\n /* Accessibility Spacing Tokens\n -----------------------------------------------*/\n /* Touch Target Sizes - WCAG 2.1 Success Criterion 2.5.5 (AAA) and 2.5.8 (AA) */\n /* The dimension steps that carry these values, rather than px\n literals beside them: a target is matched to a finger, not to the\n reader's text size, so it is px, which --dimension-* is. */\n --touch-target-size: var(--dimension-44); /* Minimum touch target size (44px × 44px) */\n --touch-target-spacing: var(--dimension-8); /* Minimum space between touch targets */\n\n /* Readable Line Lengths - For optimal readability */\n --content-width-readable: 70ch; /* Approximately 70 characters per line */\n --content-width-max: 1200px; /* Maximum overall content width */\n\n /** GRID AND BREAKPOINT TOKENS\n\n The breakpoint tokens have no consumer in this package and are kept\n deliberately. A media condition cannot read a custom property — @media\n (max-width: var(--breakpoint-sm)) is not valid CSS — so a breakpoint\n token can never be referenced the way a colour is. It exists so the\n seven values have one place to be read from, by the lint that checks\n media queries against them and by anything generating CSS. The grid\n tokens below are read: --grid-container-max-* and --grid-padding-*\n are the page column, through shared/ensemble.css.ts and layout.css,\n and the header and compare read them too. --grid-gutter-* has no\n reader, and carries the same values as --grid-padding-*.\n\n The breakpoints are the exception. Everything else here that nothing\n references is dead weight, and the OLD VALUES and FONT TOKENS blocks\n that used to sit below were removed for exactly that reason.\n */\n /* Grid container max widths\n\n The top two steps are set by the site's menu and footer, not by the\n grid's own progression: a page built from these modules sits between\n the two, so its content edges have to land on theirs. Measured on\n bitdefender.com on 2026-10-16, the menu and footer share one container\n whose content is 1200px wide from 1300 to 1599 (1300 max, 50px gutter)\n and 1292px from 1600 up (1332 max, 20px gutter). The column keeps its\n own 40px gutter, so each cap is that content plus 80: xxl 1280 gives\n 1200 and xxxl 1372 gives 1292. xxl was 1320, a 1240 column that sat\n 20px outside the menu's edges at 1440 and 26px inside them at 1920. */\n --grid-container-max-xs: 100%; /* mobile full width */\n --grid-container-max-sm: 540px;\n --grid-container-max-md: 720px;\n --grid-container-max-lg: 960px;\n --grid-container-max-xl: 1140px;\n --grid-container-max-xxl: 1280px;\n --grid-container-max-xxxl: 1372px;\n\n /* Column count (usually 12) */\n --grid-columns: 12;\n\n /* Gutter spacing between columns */\n --grid-gutter-xs: 16px;\n --grid-gutter-sm: 24px;\n --grid-gutter-md: 32px;\n --grid-gutter-lg: 40px;\n\n /* Container padding (horizontal spacing) */\n --grid-padding-xs: 16px;\n --grid-padding-sm: 24px;\n --grid-padding-md: 32px;\n --grid-padding-lg: 40px;\n\n /* Breakpoints */\n --breakpoint-xs: 0px;\n --breakpoint-sm: 576px;\n --breakpoint-md: 768px;\n --breakpoint-lg: 992px;\n --breakpoint-xl: 1200px;\n --breakpoint-xxl: 1400px;\n --breakpoint-xxxl: 1600px; /* the site menu and footer widen here */\n /* =====================\n FONT-FACE DEFINITIONS\n Intentionally NOT here. @font-face nested inside a :host rule is\n discarded at parse time, and even at the top level of a shadow-root\n stylesheet it never reaches document.fonts. Font faces must be\n loaded in document scope: see src/tokens/fonts.css.\n ====================== */\n\n /* The FONT TOKENS block stood here: --font-weight-mono-*,\n --font-weight-sans-*, --font-style-mono-* and --font-style-sans-*.\n Thirteen tokens duplicating --typography-fontWeight-* under a second\n name, with regular where the live scale says normal, and nothing\n consuming any of them. --font-family-mono went earlier, with bd-li.\n A weight is a weight whichever face it is set in. */\n\n /* Awards section — Orbit Frame 14 (node 1882:9342) */\n --layout-awards-section-background: var(--color-brand-50);\n --layout-awards-cluster-max-width: 49.5625rem; /* 793px — trust banner column */\n --layout-awards-intro-max-width: 39.4375rem; /* 631px — headline stack */\n /* The page column has no width token of its own. --content-width-max,\n above, is a 1200px cap that no bd-* component reads; the blog's page\n layout does (--blog-layout-page-max-width). The page column is an implementation --\n src/components/shared/ensemble.css.ts -- on the grid container scale\n above (--grid-container-max-* with --grid-padding-*), which is what\n Foundations/Grid System documented and nothing had built. A width token\n here is how six ensembles came to hold one literal each and seven other\n modules a different one. --layout-ensemble-inline-padding went the\n same way once bd-features, its last reader, stopped padding its host. */\n\n `;\n\nconst LAYER = 'bd-tokens';\nconst INSTALLED = '__bdDesignTokens';\ntype TokenSheet = CSSStyleSheet & { [INSTALLED]?: boolean };\n\n/* The light/dark pairs, woven into the roles that have a dark value, and the\n data-theme scopes (src/tokens/scheme-layer.ts). Before the brand layer, which\n is handed the paired text: a [data-brand] block then re-declares a brand\n role with both halves, so a partner page can be dark too. */\nconst scheme = schemeLayer(declarations, DARK);\n\nfunction install() {\n if (typeof document === 'undefined') return;\n\n /* The scopes and the brand blocks sit in the same layer, after :root, so a\n consuming page's unlayered CSS still beats them, and a data-theme or a\n [data-brand] on <html> beats :root by order. The brand blocks are empty\n while only the Bitdefender theme is registered -- see\n src/tokens/brand-layer.ts. build-tokens writes the same text into\n tokens.css from the same functions, so the two cannot disagree. */\n const rule = `@layer ${LAYER} { :root {${scheme.declarations}} ${scheme.scopes} ${themeLayer(scheme.declarations, THEMES, THEME_CONTRACT, DEFAULT_THEME)} }`;\n\n /* Constructable stylesheets are Widely available, so there is one path. A\n <style> fallback stood here for engines without them, with a duplicate\n guard of its own: a second copy of the package that took the other path\n installed the layer twice. The flag on the sheet is how every copy on\n the page sees that one is already there. */\n if (document.adoptedStyleSheets.some(sheet => (sheet as TokenSheet)[INSTALLED])) return;\n const sheet: TokenSheet = new CSSStyleSheet();\n sheet.replaceSync(rule);\n sheet[INSTALLED] = true;\n document.adoptedStyleSheets = [...document.adoptedStyleSheets, sheet];\n}\n\ninstall();\n\n/** The declaration text as :root gets it -- each role with a dark value as its\n light-dark() pair -- for tooling that needs to emit tokens elsewhere, the\n brand layer included. */\nexport const tokenDeclarations = scheme.declarations;\n\n/**\n * @deprecated Components no longer need to adopt this — the tokens live in\n * document scope. Kept, and deliberately empty, so that any existing\n * `static styles = [tokens, componentCSS]` keeps working unchanged.\n */\nexport const tokens = css``;\n"],"mappings":"A,4QA6BA,IAAME,EAAe,qv/BAuyDfC,EAAQ,YACRC,EAAY,mBAOZC,EAASC,EAAYJ,EAAcF,CAAI,EAE7C,SAASO,GAAU,CACjB,GAAI,OAAO,SAAa,IAAa,OAQrC,IAAMC,EAAO,UAAUL,EAAM,YAAYE,EAAO,aAAa,IAAIA,EAAO,OAAO,GAAGI,EAAWJ,EAAO,aAAcK,EAAQC,EAAgBC,CAAa,EAAE,IAOzJ,GAAI,SAAS,mBAAmB,KAAK,GAAUC,EAAqBT,EAAU,EAAG,OACjF,IAAMS,EAAoB,IAAI,cAC9BA,EAAM,YAAYL,CAAI,EACtB,EAAMJ,GAAa,GACnB,SAAS,mBAAqB,CAAC,GAAG,SAAS,mBAAoBS,CAAK,CACtE,CAEAN,EAAQ,EAKR,IAAaO,EAAoBT,EAAO,aAO3BU,EAAS,CAAG,G"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobit/dex-system-design",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "Design system based on Web Components.",
|
|
5
5
|
"author": "Iordache Matei Cezar <miordache@bitdefender.com>",
|
|
6
6
|
"homepage": "https://github.com/bitdefender/dex-core#readme",
|
|
@@ -476,8 +476,8 @@
|
|
|
476
476
|
"devDependencies": {
|
|
477
477
|
"@chromatic-com/storybook": "^5.6.0",
|
|
478
478
|
"@figma/code-connect": "^2.0.0",
|
|
479
|
-
"@repobit/dex-store": "2.0.
|
|
480
|
-
"@repobit/dex-store-elements": "3.0.
|
|
479
|
+
"@repobit/dex-store": "2.0.1",
|
|
480
|
+
"@repobit/dex-store-elements": "3.0.1",
|
|
481
481
|
"@storybook/addon-docs": "^10.6.5",
|
|
482
482
|
"@storybook/addon-vitest": "^10.6.5",
|
|
483
483
|
"@storybook/web-components-vite": "^10.6.5",
|
|
@@ -490,5 +490,5 @@
|
|
|
490
490
|
"volta": {
|
|
491
491
|
"node": "24.22.1"
|
|
492
492
|
},
|
|
493
|
-
"gitHead": "
|
|
493
|
+
"gitHead": "f56b46fd4bb04ef756fc754a96da56a58a471ec9"
|
|
494
494
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifestVersion": 1,
|
|
3
3
|
"package": "@repobit/dex-system-design",
|
|
4
|
-
"packageVersion": "4.
|
|
4
|
+
"packageVersion": "4.4.0",
|
|
5
5
|
"generatedFrom": [
|
|
6
6
|
"package.json exports",
|
|
7
7
|
"Lit reactive properties (static properties or @property/@state)",
|
|
@@ -4344,10 +4344,22 @@
|
|
|
4344
4344
|
"type": "boolean",
|
|
4345
4345
|
"attributeName": "without-padding-bottom",
|
|
4346
4346
|
"description": "Turns the bottom inset off, for a block that meets what is below it."
|
|
4347
|
+
},
|
|
4348
|
+
{
|
|
4349
|
+
"name": "background",
|
|
4350
|
+
"type": "string",
|
|
4351
|
+
"enum": [
|
|
4352
|
+
"none",
|
|
4353
|
+
"container",
|
|
4354
|
+
"tint"
|
|
4355
|
+
],
|
|
4356
|
+
"default": "none",
|
|
4357
|
+
"attributeName": "background",
|
|
4358
|
+
"description": "The section's ground, bd-accordion's words: none (the page's own), container (--color-surface-container) or tint (the brand wash, --status-brand-surface). Painted across the padding. Every edge where the ground changes pads twice the inset, on both sides: this section and the neighbour on that side (edges turned off stay off)."
|
|
4347
4359
|
}
|
|
4348
4360
|
],
|
|
4349
4361
|
"notes": [
|
|
4350
|
-
"The page's vertical rhythm: pads its top and bottom by the section inset (24 below md, 32 from md) and stacks its children twice that apart. No width, no inline padding
|
|
4362
|
+
"The page's vertical rhythm: pads its top and bottom by the section inset (24 below md, 32 from md) and stacks its children twice that apart. No width, no inline padding: the children bring their own page column. A full-bleed band goes in a section of its own. An edge's inset is on or off, never another size, except where the ground changes between two neighbours (background): both sides of that edge pad twice the inset, so content stands as far from the band's edge as from the next section's content."
|
|
4351
4363
|
]
|
|
4352
4364
|
},
|
|
4353
4365
|
{
|