Colour
Global colour ramps, Theme tokens, Feedback tokens and how every Theme token resolves in light and dark mode.
Color Spectrum
#color-spectrumGlobal colour ramps: neutral.* and chromatic.*. Raw values with no modes. Only Theme tokens alias them; components never use them directly.
Chromatic palette
chromatic.{hue}[50…1000]. Hue names describe the colour, never its use. Higher step = darker. Lime steps other than 300 and 400 are derived.
Neutral palette
neutral.zinc[50…1100] and white. Alpha steps are a + Blade opacity step; zinc.1000 is the default alpha base. 450, 550 and 1100 are off the Blade step set.
Not in code yet Paper values that @blade-ai/weft/globals.css does not provide yet; shown from Paper.
Theme Tokens
#theme-tokensTheme colour tokens, named {group}.{property}.{intent}.{emphasis | state}. Each aliases one Global step per mode: onLight and onDark. Feedback tokens are on the next section.
Surface
Page, cards, panels and the static text, icons and borders on them. CSS variable = -- plus the token in kebab-case.
Interactive
Anything the user acts on: buttons, inputs, selects, links, toggles, dropzones. States: default · highlighted (hover and pressed) · disabled · faded · fadedHighlighted. 40 tokens.
* staticWhite flips to dark text on dark-mode solid fills, so it is not truly static. Needs decision.
Popup
Menus, popovers, tooltips, dropdown panels. Overlay (scrims) and data (charts) groups have no tokens yet.
Undefined
Needs decisionNo allowed Blade word fits, so these keep an undefined- prefix until a name is agreed.
Feedback Tokens
#feedback-tokensStatus colours for alerts, badges, validation and progress: feedback.{property}.{intent}.{emphasis}. Five intents: positive, negative, notice, information, neutral. 22 tokens.
Positive
Status colours for alerts, badges, validation and progress: feedback.{property}.{intent}.{emphasis}. Five intents: positive, negative, notice, information, neutral. 22 tokens.Success and confirmation. Green on light, lime text on dark.
Negative
Errors, invalid fields and destructive outcomes. Red.
Notice
Warnings that need attention. Amber. Notice intense takes staticBlack text only: white on amber.400 is 1.72:1.
Information
Neutral guidance and tips. Blue.
Neutral
Messages without a status. Zinc. Neutral intense flips to a light fill on dark, so its text flips to staticBlack.
Light & Dark Modes
#light-dark-modesEvery Theme colour token in both modes. Each panel shows the Global step the token aliases in that mode. Contrast checks for the key pairs follow.
onLight
onDark
Contrast
WCAG 2.1 ratios for the key pairs, alpha composited over the background. Text needs 4.5:1, control outlines and focus need 3:1. Disabled text is exempt.
green.700 on white computes to 4.95:1; the Actions & Inputs token note says 4.94:1. Both pass.