Naming Convention
Every value travels one path: a raw value is stored once as a global token, theme tokens alias it by purpose, and components only use theme tokens. Change the global and everything downstream follows.
Token Flow
#token-flowEvery value travels one path: a raw value is stored once as a global token, theme tokens alias it by purpose, and components only use theme tokens. Change the global and everything downstream follows.
One global token feeds many theme tokens. Spacing and size tokens go to components directly. Rewritten with real tokens from this file.
Light & Dark Modes
#modesA theme token keeps one name but points to a different global token in each mode. Designs and code use the name; the mode picks the value.
Each row shows the onLight path above the onDark path. Rewritten with real tokens from this file.
Naming · Global tokens
#global-tokensGlobal tokens are the raw palette and scales. Named by what they are, never where they are used. Theme tokens point at them.
Pattern: --{tier}-{family}-{step}. Steps run light to dark; a-prefixed steps are alpha.
All 9 rows rewritten to Blade structure. Old global-colors/... and global-sizes/size-N names, the purple ramp and the size-00 to size-360 scale are not in this file.
Naming · Foundation
#foundationFoundation tokens describe non-colour scales: spacing, size, radius, border width, opacity and type. Named by property, then a step. One value mode.
Pattern: --{property}-{step}. Numeric steps are Blade scale ids, not pixel values; read the value from the token.
All 10 rows rewritten (old spacing/4, radius/md, font-size/sm style). Old ring-width, icon-size, container, grid-gap and motion groups have no tokens in this file and are dropped.
Naming · Theme
#themeTheme tokens are the semantic colours every component uses, named {group}-{property}-{intent}-{emphasis|state}. onLight and onDark decide which global colour each points to.
Pattern: --{group}-{property}-{intent}-{emphasis|state}. Group, then property (background, text, border, icon), then intent, then emphasis or state.
All 4 rows rewritten. Old action, content, line, state, effect, chart and sidebar groups fold into these four or have no token yet.
The same name points to a different global token in each mode. Values read from the token descriptions.
All 6 rows rewritten to real tokens in this file (old surface/background, line/border, action/primary rows replaced).
Naming · Size
#sizeSize tokens are global dimensions. Component-level control tokens (control-*, button-*, input-*) are not part of Weft New: the old rows are dropped and listed below.
Components take dimensions from Global spacing and size tokens directly. There is no per-component size group.
All 3 rows rewritten. Old control/{xs,sm,md,lg} rows are dropped (see below).
Component-level tokens are not used in Weft New. These rows were removed, not ported.
Naming · Layout
#layoutLayout tokens describe the page grid per breakpoint. None exist in this file yet: names are kept from the old file and marked UNDEFINED · needs decision.
Three groups, each needing Mobile, Tablet and Desktop values. Grid spacing can alias --spacing-5 and --spacing-7.
All 5 rows rewritten to {property}-{step} names. No breakpoint or container tokens exist in this file.
Values carried over from the old file. Gutter and margin map to existing spacing tokens.
5 rows. Token names are UNDEFINED · needs decision; breakpoint, frame and column values have no token yet.
Naming · Styles
#stylesText and effect roles bundle size, line height and tracking tokens. Named by role; values come from the typography tokens used on the doc pages.
Role, then the size, line-height and tracking tokens it uses. Size ids are --typography-fonts-size-{n}, line heights --typography-line-heights-{n}, tracking --typography-letter-spacings-{n}.
All 7 rows rewritten. Old heading/h1-h4, body/sm-medium, ui/button-* and code/sm style names are dropped; no named text styles exist in this file. Weights are set per role on the Typography page.