Weftv0.4.0
GitHubFigma
Blade AI
Foundations · Tokens

Tokens

How Weft names tokens, what each collection holds, the rules every new token follows, and every token shipped in globals.css.

Nomenclature

#nomenclature

How Weft names tokens. Two tiers, following Razorpay Blade: Global holds raw values, Theme holds meaning. No component tokens.

group.property.intent.emphasis | state

Every Theme colour token, in that order. Global colours read neutral.{ramp}[step] or chromatic.{hue}[step].

Allowed words

Only these words. If none fits, don't invent one: name it undefined- and mark it Needs decision.

Segment
Words
Note
Tier
Global · Theme
Only Theme may alias Global. Components use Theme for colour and Global for every other scale.
Mode (Theme only)
onLight · onDark
Every Theme token gets both.
Global colour
neutral.{zinc, white}[step] · chromatic.{lime, green, red, amber, blue}[step] · alpha a{opacity}
Hue names describe the colour, never its use. Higher step = darker.
Group
surface · feedback · interactive · overlay · popup · data
Pick by what the element is: static, status, actionable, scrim, menu, chart.
Property
background · border · text · icon
Four only.
Intent · surface
gray · primary · onPrimary · staticWhite · staticBlack
onPrimary and static* for text and icon only.
Intent · feedback
positive · negative · notice · information · neutral
Never success, error, warning.
Intent · interactive
positive · negative · notice · information · neutral · gray · primary · staticWhite · staticBlack · onPrimary · onNeutral
onPrimary and onNeutral for text and icon only.
Intent · popup
gray · positive · negative · notice · information · neutral
Gray plus the five feedback intents.
Emphasis
faint · subtle · moderate · intense · strong
surface, feedback, overlay, popup.
Surface text and icon
normal · subtle · muted · disabled
Replaces emphasis for surface text and icons.
Interactive state
default · highlighted · disabled · faded · fadedHighlighted
highlighted covers hover and pressed. No pressed state.
Examples
Token
Means
surface.background.gray.subtle
Page background
surface.border.gray.muted
Divider, table rule
surface.text.gray.muted
Helper and placeholder text
interactive.background.primary.default
Blade AI lime button
interactive.border.gray.default
Input outline
interactive.border.primary.default
Focus border
interactive.text.onPrimary.normal
Text on a lime button
feedback.text.negative.intense
Error message
feedback.background.positive.subtle
Success banner
popup.background.gray.subtle
Select menu
One token in each tool
Where
Format
Spec, TS theme
interactive.background.primary.fadedHighlighted
Figma variable
interactive/background/primary/fadedHighlighted
CSS variable
--interactive-background-primary-faded-highlighted
Paper token
--interactive-background-primary-faded-highlighted

Collections

#collections

The two collections, what each holds, and how they map to Figma. This file is the token source of truth: 246 tokens.

Overview

Aliases point one way: Global, then Theme, then components. Components read non-colour scales straight from Global.

Collection
Modes
Tokens
Used by
Holds
Global
none
163
Theme; components for scales
87 colours (ramps, alpha steps, elevation shadow) and 76 scale values: spacing, size, radius, border width, type, opacity.
Theme
onLight · onDark
83
Components
Colour by meaning: surface 16, interactive 40, popup 2, feedback 22, undefined 3. Each aliases one Global step per mode.
Global scales

Non-colour Global tokens, used directly by components. Steps marked * are off the Blade scale and kept as the next free step.

Scale
Count
Steps · values
spacing.*
18
0–14 = 0 2 4 8 12 16 20 24 32 40 48 56 64 80 96 · 15*=6 16*=10 17*=14
size.*
14
3 4 12 14 16 20 24 28 32 36 40 48 78 240
border.radius.*
10
none 0 · 2xsmall 2 · xsmall 4 · small 8 · medium 12 … max 9999 · round 50%
border.width.*
6
none 0 · thinner 0.5 · thin 1 · thick 1.5 · thicker 2 · 3* 3
typography.fonts.family.*
2
text Geist · code Geist Mono
typography.fonts.size.*
6
75 12 · 1200* 13 · 100 14 · 200 16 · 400 20 · 800 48
typography.fonts.weight.*
5
light* 300 · regular 400 · medium 500 · semibold 600 · bold 700
typography.lineHeights.*
6
50 16 · 100 20 · 1200* 22 · 400 26 · 1300* 28 · 800 56
typography.letterSpacings.*
4
25 -0.03em · 50 -0.01em · 100 0 · 200* +0.01em
opacity.*
5
0 0% · 50 6% · 100 10% · 600 50% · 1300 100%
Needs decisionNeeds decision

Open items. Values from the old Weft · Foundations file that have no token here are listed, not migrated.

Item
Question
undefined.*.pressed (2)
Blade has no pressed state. Keep, or fold into highlighted?
undefined.doc.anatomy
Doc-only colour. Keep outside the Theme tier?
interactive.text.staticWhite.normal
onDark flips to zinc.1100, so not truly static. Rename?
overlay.*, data.*
No scrim or chart tokens yet.
old zinc.750 #333338, zinc.850 #1F1F23
Old dark-mode steps. Add as Global or drop?
old purple.400 #C27AFF, purple.500 #AD46FF
Old chart purple. Add chromatic.purple?
old black a5, a10, a25
Old shadow alphas. Map to elevation.* or neutral.zinc.a*?
old chart-categorical-*
Need data.categorical.* Theme tokens.
old font-heading Instrument Sans
Dropped for Geist. Confirm.
old zinc.950 #09090B
Now zinc.1000. Confirm the renumber.
motion.*, elevation.* scale
Only elevation.midRaised exists. Add Blade motion and elevation?
Figma mapping

Paper has no modes, so a Paper Theme token holds its onLight alias and lists onDark in its description. Figma holds both.

Figma collection
Modes
Variables
Global
none
neutral/* chromatic/* spacing/* border/* typography/* opacity/* elevation/*
Theme
onLight · onDark
every Theme colour token, each aliasing a Global variable

Rules

#rules

Naming and usage rules every new token must follow.

Rule
Do
Avoid
Components use Theme for colour
surface.background.gray.subtle
neutral.white.500 in a component
No component tokens
add a Theme token in its group
button/bg, select/menu-bg, upload/*
Pick the group by what it is
interactive.* for a dropzone
upload.background.*
Use only the allowed intents
feedback.text.negative.intense
feedback.text.error.intense
Theme aliases Global, never a hex
var(--chromatic-lime-300)
#BFE672 in a Theme token
Give every Theme token both modes
onLight lime.100 · onDark lime.1000
onLight only
Hue names describe the colour
chromatic.red[700]
brand.*, error.*
Square corners by default
border.radius.none
border.radius.small on controls
Focus border is zinc, not lime
interactive.border.primary.default
lime.300 border (1.42:1 on white)
Label on lime is dark
interactive.text.onPrimary.normal
white label (1.42:1)
No word fits: don't invent one
undefined-* · Needs decision
interactive.background.primary.pressed
Add to this file and Figma together
Tokens page + Figma mapping
one place only

All tokens

#all-tokens

Every custom property in globals.css (232). Search by name or value, or filter by group. Light and dark values are read live with getComputedStyle.

232 of 232 tokens
Token
Swatch / value
Light
Dark
--neutral-white-500
…#FFFFFF
…#FFFFFF
--neutral-zinc-50
…#FAFAFA
…#FAFAFA
--neutral-zinc-100
…#F4F4F5
…#F4F4F5
--neutral-zinc-200
…#E4E4E7
…#E4E4E7
--neutral-zinc-300
…#D4D4D8
…#D4D4D8
--neutral-zinc-400
…#9F9FA9
…#9F9FA9
--neutral-zinc-450
…#8A8A93
…#8A8A93
--neutral-zinc-500
…#71717B
…#71717B
--neutral-zinc-550
…#6B6B74
…#6B6B74
--neutral-zinc-600
…#52525C
…#52525C
--neutral-zinc-700
…#3F3F46
…#3F3F46
--neutral-zinc-800
…#27272A
…#27272A
--neutral-zinc-900
…#18181B
…#18181B
--neutral-zinc-1000
…#09090B
…#09090B
--neutral-zinc-1100
…#0A0A0A
…#0A0A0A
--neutral-zinc-a50
…#09090B0F
…#09090B0F
--neutral-zinc-a100
…#09090B1A
…#09090B1A
--neutral-zinc-a300
…#09090B29
…#09090B29
--neutral-zinc-400-a600
…#9F9FA980
…#9F9FA980
--neutral-zinc-100-a600
…#F4F4F580
…#F4F4F580
--neutral-white-a200
…#FFFFFF26
…#FFFFFF26
--neutral-white-a550
…#FFFFFF66
…#FFFFFF66
--chromatic-lime-a0
…#EEF8D600
…#EEF8D600
--chromatic-lime-50
…#F7FCEB
…#F7FCEB
--chromatic-lime-100
…#EEF8D6
…#EEF8D6
--chromatic-lime-200
…#DCF0AE
…#DCF0AE
--chromatic-lime-300
…#BFE672
…#BFE672
--chromatic-lime-400
…#A3CC52
…#A3CC52
--chromatic-lime-500
…#86AD3A
…#86AD3A
--chromatic-lime-600
…#688A2C
…#688A2C
--chromatic-lime-700
…#4F6924
…#4F6924
--chromatic-lime-800
…#3E521F
…#3E521F
--chromatic-lime-900
…#33441D
…#33441D
--chromatic-lime-1000
…#1A250B
…#1A250B
--chromatic-green-50
…#F0FDF4
…#F0FDF4
--chromatic-green-100
…#DCFCE7
…#DCFCE7
--chromatic-green-200
…#B9F8CF
…#B9F8CF
--chromatic-green-400
…#05DF72
…#05DF72
--chromatic-green-700
…#008236
…#008236
--chromatic-green-900
…#0D542B
…#0D542B
--chromatic-red-50
…#FEF2F2
…#FEF2F2
--chromatic-red-100
…#FFE2E2
…#FFE2E2
--chromatic-red-200
…#FFC9C9
…#FFC9C9
--chromatic-red-600
…#E7000B
…#E7000B
--chromatic-red-700
…#C10007
…#C10007
--chromatic-red-900
…#82181A
…#82181A
--chromatic-amber-50
…#FFFBEB
…#FFFBEB
--chromatic-amber-200
…#FEE685
…#FEE685
--chromatic-amber-400
…#FFB900
…#FFB900
--chromatic-amber-800
…#973C00
…#973C00
--chromatic-blue-50
…#EFF6FF
…#EFF6FF
--chromatic-blue-200
…#BEDBFF
…#BEDBFF
--chromatic-blue-600
…#155DFC
…#155DFC
--chromatic-blue-700
…#1447E6
…#1447E6
--chromatic-orange-600
…#E8590C
…#E8590C
--neutral-white-a1
…#FFFFFF0A
…#FFFFFF0A
--neutral-white-a100
…#FFFFFF1A
…#FFFFFF1A
--neutral-white-a500
…#FFFFFF52
…#FFFFFF52
--neutral-white-a800
…#FFFFFFA8
…#FFFFFFA8
--neutral-white-a300
…#FFFFFF29
…#FFFFFF29
--neutral-white-a50
…#FFFFFF0F
…#FFFFFF0F
--chromatic-green-600
…#00A63E
…#00A63E
--chromatic-green-1000
…#032E15
…#032E15
--chromatic-red-500
…#FB2C36
…#FB2C36
--chromatic-red-1000
…#460809
…#460809
--chromatic-red-400
…#FF6467
…#FF6467
--chromatic-amber-1000
…#461901
…#461901
--chromatic-blue-1000
…#162456
…#162456
--chromatic-green-800
…#016630
…#016630
--chromatic-red-800
…#9F0712
…#9F0712
--chromatic-blue-800
…#193CB8
…#193CB8
--chromatic-blue-400
…#51A2FF
…#51A2FF
--elevation-mid-raised
…#09090B1A
…var(--neutral-zinc-1100)
--surface-background-gray-subtle
…var(--neutral-white-500)
…var(--neutral-zinc-1100)
--surface-background-gray-faint
…var(--neutral-zinc-100-a600)
…var(--neutral-white-a1)
--surface-background-gray-moderate
…var(--neutral-zinc-100)
…var(--neutral-white-a100)
--surface-background-gray-intense
…var(--neutral-zinc-400)
…var(--neutral-white-a500)
--surface-background-primary-faint
…var(--chromatic-lime-a0)
…var(--chromatic-lime-a0)
--surface-background-primary-subtle
…var(--chromatic-lime-100)
…var(--chromatic-lime-1000)
--surface-background-primary-intense
…var(--chromatic-lime-300)
…var(--chromatic-lime-300)
--surface-text-gray-normal
…var(--neutral-zinc-1000)
…var(--neutral-white-500)
--surface-text-gray-muted
…var(--neutral-zinc-550)
…var(--neutral-white-a800)
--surface-text-gray-disabled
…var(--neutral-zinc-400)
…var(--neutral-white-a500)
--surface-text-static-white-normal
…var(--neutral-white-500)
…var(--neutral-white-500)
--surface-text-static-black-normal
…var(--neutral-zinc-1000)
…var(--neutral-zinc-1000)
--surface-text-on-primary-normal
…var(--neutral-zinc-1000)
…var(--neutral-zinc-1000)
--surface-icon-gray-muted
…var(--neutral-zinc-550)
…var(--neutral-white-a800)
--surface-border-gray-muted
…var(--neutral-zinc-200)
…var(--neutral-white-a100)
--surface-border-primary-normal
…var(--chromatic-lime-400)
…var(--chromatic-lime-400)
--interactive-background-primary-default
…var(--chromatic-lime-300)
…var(--chromatic-lime-300)
--interactive-background-primary-highlighted
…var(--chromatic-lime-400)
…var(--chromatic-lime-400)
--interactive-background-primary-faded
…var(--chromatic-lime-100)
…var(--chromatic-lime-1000)
--undefined-interactive-background-primary-pressed
…var(--chromatic-lime-500)
…var(--chromatic-lime-500)
--interactive-background-gray-default
…var(--neutral-zinc-100)
…var(--neutral-white-a100)
--interactive-background-gray-highlighted
…var(--neutral-zinc-200)
…var(--neutral-white-a300)
--interactive-background-gray-disabled
…var(--neutral-zinc-100)
…var(--neutral-white-a100)
--interactive-background-gray-faded
…var(--neutral-zinc-a50)
…var(--neutral-white-a50)
--interactive-background-gray-faded-highlighted
…var(--neutral-zinc-a100)
…var(--neutral-white-a100)
--undefined-interactive-background-gray-pressed
…var(--neutral-zinc-a300)
…var(--neutral-white-a300)
--interactive-background-positive-default
…var(--chromatic-green-700)
…var(--chromatic-green-600)
--interactive-background-positive-faded
…var(--chromatic-green-50)
…var(--chromatic-green-1000)
--interactive-background-negative-default
…var(--chromatic-red-700)
…var(--chromatic-red-500)
--interactive-background-negative-faded
…var(--chromatic-red-50)
…var(--chromatic-red-1000)
--interactive-background-static-white-default
…var(--neutral-white-500)
…var(--neutral-white-500)
--interactive-background-static-white-faded
…var(--neutral-white-a200)
…var(--neutral-white-a200)
--interactive-background-static-white-faded-highlighted
…var(--neutral-white-a550)
…var(--neutral-white-a550)
--interactive-border-gray-default
…var(--neutral-zinc-450)
…var(--neutral-white-a550)
--interactive-border-gray-highlighted
…var(--neutral-zinc-700)
…var(--neutral-white-a800)
--interactive-border-primary-default
…var(--neutral-zinc-1000)
…var(--neutral-white-500)
--interactive-border-primary-faded
…var(--neutral-zinc-400-a600)
…var(--neutral-white-a550)
--interactive-border-positive-default
…var(--chromatic-green-700)
…var(--chromatic-lime-300)
--interactive-border-negative-default
…var(--chromatic-red-700)
…var(--chromatic-red-400)
--interactive-border-static-white-default
…var(--neutral-white-a550)
…var(--neutral-white-a550)
--interactive-text-gray-normal
…var(--neutral-zinc-1000)
…var(--neutral-white-500)
--interactive-text-gray-muted
…var(--neutral-zinc-550)
…var(--neutral-white-a800)
--interactive-text-gray-disabled
…var(--neutral-zinc-400)
…var(--neutral-white-a500)
--interactive-text-on-primary-normal
…var(--neutral-zinc-1000)
…var(--neutral-zinc-1100)
--interactive-text-primary-normal
…var(--chromatic-green-700)
…var(--chromatic-lime-300)
--interactive-text-positive-normal
…var(--chromatic-green-700)
…var(--chromatic-lime-300)
--interactive-text-negative-normal
…var(--chromatic-red-700)
…var(--chromatic-red-400)
--interactive-text-static-white-normal
…var(--neutral-white-500)
…var(--neutral-zinc-1100)
--interactive-text-static-black-normal
…var(--neutral-zinc-1000)
…var(--neutral-zinc-1000)
--interactive-icon-gray-normal
…var(--neutral-zinc-1000)
…var(--neutral-white-500)
--interactive-icon-on-primary-normal
…var(--neutral-zinc-1000)
…var(--neutral-zinc-1100)
--interactive-icon-primary-normal
…var(--chromatic-green-700)
…var(--chromatic-lime-300)
--interactive-icon-static-white-normal
…var(--neutral-white-500)
…var(--neutral-white-500)
--interactive-background-primary-faded-highlighted
…var(--chromatic-lime-200)
…var(--chromatic-lime-900)
--interactive-background-positive-faded-highlighted
…var(--chromatic-green-100)
…var(--chromatic-green-900)
--interactive-background-negative-faded-highlighted
…var(--chromatic-red-100)
…var(--chromatic-red-900)
--interactive-icon-gray-muted
…var(--neutral-zinc-550)
…var(--neutral-white-a800)
--interactive-icon-gray-disabled
…var(--neutral-zinc-400)
…var(--neutral-white-a500)
--feedback-background-positive-subtle
…var(--chromatic-green-50)
…var(--chromatic-green-1000)
--feedback-background-positive-intense
…var(--chromatic-green-700)
…var(--chromatic-green-600)
--feedback-background-neutral-intense
…var(--neutral-zinc-900)
…var(--neutral-zinc-200)
--feedback-background-negative-intense
…var(--chromatic-red-700)
…var(--chromatic-red-600)
--feedback-background-notice-intense
…var(--chromatic-amber-400)
…var(--chromatic-amber-400)
--feedback-background-information-intense
…var(--chromatic-blue-700)
…var(--chromatic-blue-600)
--feedback-background-negative-subtle
…var(--chromatic-red-50)
…var(--chromatic-red-1000)
--feedback-background-notice-subtle
…var(--chromatic-amber-50)
…var(--chromatic-amber-1000)
--feedback-background-information-subtle
…var(--chromatic-blue-50)
…var(--chromatic-blue-1000)
--feedback-background-neutral-subtle
…var(--neutral-zinc-200)
…var(--neutral-white-a100)
--feedback-border-positive-subtle
…var(--chromatic-green-200)
…var(--chromatic-green-800)
--feedback-border-negative-subtle
…var(--chromatic-red-200)
…var(--chromatic-red-800)
--feedback-border-negative-intense
…var(--chromatic-red-700)
…var(--chromatic-red-400)
--feedback-border-notice-subtle
…var(--chromatic-amber-200)
…var(--chromatic-amber-800)
--feedback-border-information-subtle
…var(--chromatic-blue-200)
…var(--chromatic-blue-800)
--feedback-text-neutral-intense
…var(--neutral-zinc-1000)
…var(--neutral-zinc-50)
--feedback-text-positive-intense
…var(--chromatic-green-700)
…var(--chromatic-lime-300)
--feedback-text-negative-intense
…var(--chromatic-red-700)
…var(--chromatic-red-400)
--feedback-text-notice-intense
…var(--chromatic-amber-800)
…var(--chromatic-amber-400)
--feedback-text-information-intense
…var(--chromatic-blue-700)
…var(--chromatic-blue-400)
--feedback-icon-positive-intense
…var(--chromatic-green-700)
…var(--chromatic-lime-300)
--feedback-icon-negative-intense
…var(--chromatic-red-700)
…var(--chromatic-red-400)
--popup-background-gray-subtle
…var(--neutral-white-500)
…var(--neutral-zinc-900)
--popup-border-gray-subtle
…var(--neutral-zinc-200)
…var(--neutral-white-a100)
--undefined-doc-anatomy
…var(--chromatic-orange-600)
…var(--chromatic-orange-600)
--typography-fonts-family-text
Aa
"Geist"
same in both modes
--typography-fonts-family-code
Aa
"Geist Mono"
same in both modes
--typography-fonts-size-75
Aa
12px
same in both modes
--typography-fonts-size-1200
Aa
13px
same in both modes
--typography-fonts-size-100
Aa
14px
same in both modes
--typography-fonts-size-200
Aa
16px
same in both modes
--typography-fonts-size-400
Aa
20px
same in both modes
--typography-fonts-size-800
Aa
48px
same in both modes
--typography-fonts-weight-light
Aa
300
same in both modes
--typography-fonts-weight-regular
Aa
400
same in both modes
--typography-fonts-weight-medium
Aa
500
same in both modes
--typography-fonts-weight-semibold
Aa
600
same in both modes
--typography-fonts-weight-bold
Aa
700
same in both modes
--typography-letter-spacings-25
Aa Aa
-0.03em
same in both modes
--typography-letter-spacings-50
Aa Aa
-0.01em
same in both modes
--typography-letter-spacings-100
Aa Aa
0em
same in both modes
--typography-letter-spacings-200
Aa Aa
0.01em
same in both modes
--typography-line-heights-50
—
16px
same in both modes
--typography-line-heights-100
—
20px
same in both modes
--typography-line-heights-1200
—
22px
same in both modes
--typography-line-heights-400
—
26px
same in both modes
--typography-line-heights-1300
—
28px
same in both modes
--typography-line-heights-800
—
56px
same in both modes
--opacity-0
0%
same in both modes
--opacity-50
6%
same in both modes
--opacity-100
10%
same in both modes
--opacity-600
50%
same in both modes
--opacity-1300
100%
same in both modes
--spacing-0
0px
same in both modes
--spacing-1
2px
same in both modes
--spacing-2
4px
same in both modes
--spacing-15
6px
same in both modes
--spacing-3
8px
same in both modes
--spacing-16
10px
same in both modes
--spacing-4
12px
same in both modes
--spacing-17
14px
same in both modes
--spacing-5
16px
same in both modes
--spacing-6
20px
same in both modes
--spacing-7
24px
same in both modes
--spacing-8
32px
same in both modes
--spacing-9
40px
same in both modes
--spacing-10
48px
same in both modes
--spacing-11
56px
same in both modes
--spacing-12
64px
same in both modes
--spacing-13
80px
same in both modes
--spacing-14
96px
same in both modes
--size-3
3px
same in both modes
--size-4
4px
same in both modes
--size-12
12px
same in both modes
--size-14
14px
same in both modes
--size-16
16px
same in both modes
--size-20
20px
same in both modes
--size-24
24px
same in both modes
--size-28
28px
same in both modes
--size-32
32px
same in both modes
--size-36
36px
same in both modes
--size-40
40px
same in both modes
--size-48
48px
same in both modes
--size-78
78px
same in both modes
--size-240
240px
same in both modes
--border-width-none
0px
same in both modes
--border-width-thinner
0.5px
same in both modes
--border-width-thin
1px
same in both modes
--border-width-thick
1.5px
same in both modes
--border-width-thicker
2px
same in both modes
--border-width-3
3px
same in both modes
--border-radius-none
0px
same in both modes
--border-radius-2xsmall
2px
same in both modes
--border-radius-xsmall
4px
same in both modes
--border-radius-small
8px
same in both modes
--border-radius-medium
12px
same in both modes
--border-radius-max
9999px
same in both modes
--border-radius-round
50%
same in both modes
--chromatic-blue-500
…#2B7FFF
…#2B7FFF
--chromatic-amber-600
…#E17100
…#E17100
--undefined-chart-purple
…#AD46FF
…#AD46FF