Weftv0.4.0
GitHubFigma
Blade AI
Foundations · Colour

Colour

Global colour ramps, Theme tokens, Feedback tokens and how every Theme token resolves in light and dark mode.

Color Spectrum

#color-spectrum

Global 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.

Lime · brand
lime.50#F7FCEB
lime.100#EEF8D6
lime.200#DCF0AE
lime.300#BFE672
lime.400#A3CC52
lime.500#86AD3A
lime.600#688A2C
lime.700#4F6924
lime.800#3E521F
lime.900#33441D
lime.1000#1A250B
Green · positive
green.50#F0FDF4
green.100#DCFCE7
green.200#B9F8CF
green.300#7BF1A8
green.400#05DF72
green.500#00C950
green.600#00A63E
green.700#008236
green.800#016630
green.900#0D542B
green.1000#032E15
Red · negative
red.50#FEF2F2
red.100#FFE2E2
red.200#FFC9C9
red.300#FFA2A2
red.400#FF6467
red.500#FB2C36
red.600#E7000B
red.700#C10007
red.800#9F0712
red.900#82181A
red.1000#460809
Amber · notice
amber.50#FFFBEB
amber.100#FEF3C6
amber.200#FEE685
amber.300#FFD230
amber.400#FFB900
amber.500#FE9A00
amber.600#E17100
amber.700#BB4D00
amber.800#973C00
amber.900#7B3306
amber.1000#461901
Blue · information
blue.50#EFF6FF
blue.100#DBEAFE
blue.200#BEDBFF
blue.300#8EC5FF
blue.400#51A2FF
blue.500#2B7FFF
blue.600#155DFC
blue.700#1447E6
blue.800#193CB8
blue.900#1C398E
blue.1000#162456

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.

Zinc
zinc.50#FAFAFA
zinc.100#F4F4F5
zinc.200#E4E4E7
zinc.300#D4D4D8
zinc.400#9F9FA9
zinc.450#8A8A93
zinc.500#71717B
zinc.550#6B6B74
zinc.600#52525C
zinc.700#3F3F46
zinc.800#27272A
zinc.900#18181B
zinc.1000#09090B
zinc.1100#0A0A0A
White · on zinc.1100
white.500#FFFFFF
white.a80066%
white.a60048%
white.a55040%
white.a50032%
white.a30016%
white.a20015%
white.a10010%
white.a506%
white.a14%
Zinc alpha · on white
zinc.a506%
zinc.a10010%
zinc.a30016%
zinc.400-a60050%
zinc.100-a60050%
Other Global colours
lime.a00%
orange.600#E8590C
elevation.midRaised

Not in code yet Paper values that @blade-ai/weft/globals.css does not provide yet; shown from Paper.

Theme Tokens

#theme-tokens

Theme 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.

Token
onLight
onDark
Use
surface.background.gray.subtle
white.500
zinc.1100
Page, field and secondary-button fill
surface.background.gray.faint
zinc.100-a600
white.a1
Faint row highlight
surface.background.gray.moderate
zinc.100
white.a100
Tinted panels, icon badges
surface.background.gray.intense
zinc.400
white.a500
Strong neutral fill (scrollbar thumb)
surface.background.primary.faint
lime.a0
lime.a0
Transparent brand end (dropzone gradient)
surface.background.primary.subtle
lime.100
lime.1000
Brand tint (dropzone gradient start)
surface.background.primary.intense
lime.300
lime.300
Vivid brand tint (drag-over)
surface.border.gray.muted
zinc.200
white.a100
Dividers, table rules (not control outlines)
surface.border.primary.normal
lime.400
lime.400
Seam between joined primary buttons
surface.text.gray.normal
zinc.1000
white.500
Body text, labels, field value
surface.text.gray.muted
zinc.550
white.a800
Helper, placeholder, secondary text
surface.text.gray.disabled
zinc.400
white.a500
Disabled text, separators
surface.text.onPrimary.normal
zinc.1000
zinc.1000
Text on lime fills
surface.text.staticWhite.normal
white.500
white.500
Text on coloured doc chips
surface.text.staticBlack.normal
zinc.1000
zinc.1000
Always-dark text (on notice intense)
surface.icon.gray.muted
zinc.550
white.a800
Static icons: chevron, search, spinner

Interactive

Anything the user acts on: buttons, inputs, selects, links, toggles, dropzones. States: default · highlighted (hover and pressed) · disabled · faded · fadedHighlighted. 40 tokens.

Background
onLight
onDark
Use
interactive.background.primary.default
lime.300
lime.300
Blade AI lime primary button
interactive.background.primary.highlighted
lime.400
lime.400
Primary hover / pressed
interactive.background.primary.faded
lime.100
lime.1000
Selected option, drag-over
interactive.background.primary.fadedHighlighted
lime.200
lime.900
Hover on selected chip
interactive.background.gray.default
zinc.100
white.a100
Tertiary fill; ghost hover
interactive.background.gray.highlighted
zinc.200
white.a300
Tertiary hover
interactive.background.gray.disabled
zinc.100
white.a100
Disabled field fill
interactive.background.gray.faded
zinc.a50
white.a50
Hover tint on tinted fills
interactive.background.gray.fadedHighlighted
zinc.a100
white.a100
Hover tint on solid fills
interactive.background.positive.default
green.700
green.600
Solid positive button
interactive.background.positive.faded
green.50
green.1000
Secondary positive fill
interactive.background.positive.fadedHighlighted
green.100
green.900
Hover on secondary positive
interactive.background.negative.default
red.700
red.500
Solid negative button
interactive.background.negative.faded
red.50
red.1000
Secondary negative fill
interactive.background.negative.fadedHighlighted
red.100
red.900
Hover on secondary negative
interactive.background.staticWhite.default
white.500
white.500
White button on dark
interactive.background.staticWhite.faded
white.a200
white.a200
White tertiary fill on dark
interactive.background.staticWhite.fadedHighlighted
white.a550
white.a550
White tertiary hover on dark
Border
onLight
onDark
Use
interactive.border.gray.default
zinc.450
white.a550
Control outlines (must stay 3:1)
interactive.border.gray.highlighted
zinc.700
white.a800
Control outline on hover
interactive.border.primary.default
zinc.1000
white.500
Focus border (zinc, not lime)
interactive.border.primary.faded
zinc.400-a600
white.a550
3px focus ring
interactive.border.positive.default
green.700
lime.300
Positive outline
interactive.border.negative.default
red.700
red.400
Negative outline
interactive.border.staticWhite.default
white.a550
white.a550
White outline on dark or image
Text
onLight
onDark
Use
interactive.text.gray.normal
zinc.1000
white.500
Secondary, tertiary, ghost labels
interactive.text.gray.muted
zinc.550
white.a800
Option description
interactive.text.gray.disabled
zinc.400
white.a500
Disabled option text
interactive.text.primary.normal
green.700
lime.300
Link
interactive.text.onPrimary.normal
zinc.1000
zinc.1100
Label on lime
interactive.text.positive.normal
green.700
lime.300
Secondary positive label
interactive.text.negative.normal
red.700
red.400
Secondary negative label
interactive.text.staticWhite.normal
white.500
zinc.1100 *
Label on solid positive / negative *
interactive.text.staticBlack.normal
zinc.1000
zinc.1000
Label on white button

* staticWhite flips to dark text on dark-mode solid fills, so it is not truly static. Needs decision.

Icon
onLight
onDark
Use
interactive.icon.gray.normal
zinc.1000
white.500
Selected check, clear icon hover
interactive.icon.gray.muted
zinc.550
white.a800
Clear / remove icon buttons
interactive.icon.gray.disabled
zinc.400
white.a500
Disabled single control
interactive.icon.primary.normal
green.700
lime.300
Icon on primary Link
interactive.icon.onPrimary.normal
zinc.1000
zinc.1100
Check on lime fill
interactive.icon.staticWhite.normal
white.500
white.500
Icon on white Link on dark

Popup

Menus, popovers, tooltips, dropdown panels. Overlay (scrims) and data (charts) groups have no tokens yet.

Token
onLight
onDark
Use
popup.background.gray.subtle
white.500
zinc.900
Menus, popovers, dropdown panels
popup.border.gray.subtle
zinc.200
white.a100
Menu / popover outline

Undefined

Needs decision

No allowed Blade word fits, so these keep an undefined- prefix until a name is agreed.

Token
onLight
onDark
Why
undefined.interactive.background.primary.pressed
lime.500
lime.500
Blade has no pressed state
undefined.interactive.background.gray.pressed
zinc.a300
white.a300
Blade has no pressed state
undefined.doc.anatomy
orange.600
orange.600
Doc-only annotation, not product UI

Feedback Tokens

#feedback-tokens

Status 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.

Token
onLight
onDark
Use
feedback.background.positive.subtle
green.50
green.1000
Success banner
feedback.background.positive.intense
green.700
green.600
Progress fill
feedback.border.positive.subtle
green.200
green.800
Success banner outline
feedback.text.positive.intense
green.700
lime.300
Success text
feedback.icon.positive.intense
green.700
lime.300
Success icons

Negative

Errors, invalid fields and destructive outcomes. Red.

Token
onLight
onDark
Use
feedback.background.negative.subtle
red.50
red.1000
Error banner, error icon badge
feedback.background.negative.intense
red.700
red.600
Negative intense fill
feedback.border.negative.subtle
red.200
red.800
Error banner outline
feedback.border.negative.intense
red.700
red.400
Invalid field border
feedback.text.negative.intense
red.700
red.400
Error text
feedback.icon.negative.intense
red.700
red.400
Error icons

Notice

Warnings that need attention. Amber. Notice intense takes staticBlack text only: white on amber.400 is 1.72:1.

Token
onLight
onDark
Use
feedback.background.notice.subtle
amber.50
amber.1000
Warning banner
feedback.background.notice.intense
amber.400
amber.400
Notice fill (dark text only)
feedback.border.notice.subtle
amber.200
amber.800
Warning banner outline
feedback.text.notice.intense
amber.800
amber.400
Warning text

Information

Neutral guidance and tips. Blue.

Token
onLight
onDark
Use
feedback.background.information.subtle
blue.50
blue.1000
Info banner
feedback.background.information.intense
blue.700
blue.600
Information fill
feedback.border.information.subtle
blue.200
blue.800
Info banner outline
feedback.text.information.intense
blue.700
blue.400
Info text

Neutral

Messages without a status. Zinc. Neutral intense flips to a light fill on dark, so its text flips to staticBlack.

Token
onLight
onDark
Use
feedback.background.neutral.subtle
zinc.200
white.a100
Progress track
feedback.background.neutral.intense
zinc.900
zinc.200
Neutral badge / counter fill
feedback.text.neutral.intense
zinc.1000
zinc.50
Neutral feedback text

Light & Dark Modes

#light-dark-modes

Every 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

Surface
background.gray.subtle
background.gray.faint
background.gray.moderate
background.gray.intense
background.primary.faint
background.primary.subtle
background.primary.intense
border.gray.muted
border.primary.normal
text.gray.normal
text.gray.muted
text.gray.disabled
text.onPrimary.normal
text.staticWhite.normal
text.staticBlack.normal
icon.gray.muted
Interactive · bg = background
bg.primary.default
bg.primary.highlighted
bg.primary.faded
bg.primary.fadedHighlighted
bg.gray.default
bg.gray.highlighted
bg.gray.disabled
bg.gray.faded
bg.gray.fadedHighlighted
bg.positive.default
bg.positive.faded
bg.positive.fadedHighlighted
bg.negative.default
bg.negative.faded
bg.negative.fadedHighlighted
bg.staticWhite.default
bg.staticWhite.faded
bg.staticWhite.fadedHighlighted
border.gray.default
border.gray.highlighted
border.primary.default
border.primary.faded
border.positive.default
border.negative.default
border.staticWhite.default
text.gray.normal
text.gray.muted
text.gray.disabled
text.primary.normal
text.onPrimary.normal
text.positive.normal
text.negative.normal
text.staticWhite.normal
text.staticBlack.normal
icon.gray.normal
icon.gray.muted
icon.gray.disabled
icon.primary.normal
icon.onPrimary.normal
icon.staticWhite.normal
Popup
background.gray.subtle
border.gray.subtle
Feedback · bg = background
bg.positive.subtle
bg.positive.intense
border.positive.subtle
text.positive.intense
icon.positive.intense
bg.negative.subtle
bg.negative.intense
border.negative.subtle
border.negative.intense
text.negative.intense
icon.negative.intense
bg.notice.subtle
bg.notice.intense
border.notice.subtle
text.notice.intense
bg.information.subtle
bg.information.intense
border.information.subtle
text.information.intense
bg.neutral.subtle
bg.neutral.intense
text.neutral.intense

onDark

Surface
background.gray.subtle
background.gray.faint
background.gray.moderate
background.gray.intense
background.primary.faint
background.primary.subtle
background.primary.intense
border.gray.muted
border.primary.normal
text.gray.normal
text.gray.muted
text.gray.disabled
text.onPrimary.normal
text.staticWhite.normal
text.staticBlack.normal
icon.gray.muted
Interactive · bg = background
bg.primary.default
bg.primary.highlighted
bg.primary.faded
bg.primary.fadedHighlighted
bg.gray.default
bg.gray.highlighted
bg.gray.disabled
bg.gray.faded
bg.gray.fadedHighlighted
bg.positive.default
bg.positive.faded
bg.positive.fadedHighlighted
bg.negative.default
bg.negative.faded
bg.negative.fadedHighlighted
bg.staticWhite.default
bg.staticWhite.faded
bg.staticWhite.fadedHighlighted
border.gray.default
border.gray.highlighted
border.primary.default
border.primary.faded
border.positive.default
border.negative.default
border.staticWhite.default
text.gray.normal
text.gray.muted
text.gray.disabled
text.primary.normal
text.onPrimary.normal
text.positive.normal
text.negative.normal
text.staticWhite.normal
text.staticBlack.normal
icon.gray.normal
icon.gray.muted
icon.gray.disabled
icon.primary.normal
icon.onPrimary.normal
icon.staticWhite.normal
Popup
background.gray.subtle
border.gray.subtle
Feedback · bg = background
bg.positive.subtle
bg.positive.intense
border.positive.subtle
text.positive.intense
icon.positive.intense
bg.negative.subtle
bg.negative.intense
border.negative.subtle
border.negative.intense
text.negative.intense
icon.negative.intense
bg.notice.subtle
bg.notice.intense
border.notice.subtle
text.notice.intense
bg.information.subtle
bg.information.intense
border.information.subtle
text.information.intense
bg.neutral.subtle
bg.neutral.intense
text.neutral.intense

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.

Pair · foreground on background
Where it is used
Ratio
Needs
Result
white.500 on lime.300
Label on Blade AI lime button (not allowed)
1.42:1
4.5
Fail
lime.400 on white.500
Lime as text or focus border (not allowed)
1.86:1
3.0
Fail
white.500 on amber.400
Label on notice intense (not allowed)
1.72:1
4.5
Fail
zinc.400 on white.500
Disabled text
2.62:1
none
Exempt
zinc.1000 on lime.300
interactive.text.onPrimary on primary button
14.00:1
4.5
Pass
zinc.1000 on amber.400
Label on notice intense
11.55:1
4.5
Pass
zinc.450 on white.500
interactive.border.gray.default, onLight
3.42:1
3.0
Pass
white.a550 on zinc.1100
interactive.border.gray.default, onDark
3.77:1
3.0
Pass
zinc.550 on white.500
surface.text.gray.muted, onLight
5.28:1
4.5
Pass
white.a800 on zinc.1100
surface.text.gray.muted, onDark
8.62:1
4.5
Pass
green.700 on white.500
Link, success text, onLight
4.95:1
4.5
Pass
white.500 on green.700
Solid positive button, onLight
4.95:1
4.5
Pass
zinc.1100 on green.600
Solid positive button, onDark
6.15:1
4.5
Pass
white.500 on red.700
Solid negative button, onLight
6.42:1
4.5
Pass
zinc.1100 on red.500
Solid negative button, onDark
5.20:1
4.5
Pass
amber.800 on white.500
Warning text, onLight
7.09:1
4.5
Pass
blue.700 on white.500
Info text, onLight
6.83:1
4.5
Pass
lime.300 on zinc.1100
Link, success text, onDark
13.93:1
4.5
Pass
red.400 on zinc.1100
Error text, onDark
6.85:1
4.5
Pass
green.700 on green.50
Text in success banner
4.72:1
4.5
Pass
red.700 on red.50
Text in error banner
5.87:1
4.5
Pass
amber.800 on amber.50
Text in warning banner
6.84:1
4.5
Pass
blue.700 on blue.50
Text in info banner
6.28:1
4.5
Pass

green.700 on white computes to 4.95:1; the Actions & Inputs token note says 4.94:1. Both pass.