Tokens

One set of values that themes, components and modes all read from.

Life of a design token

How one seed color becomes the tokens that antd components and Tailwind classes read.

Seed token
colorPrimary
Map algorithm
defaultAlgorithm
darkAlgorithm
compactAlgorithm
Map token
colorPrimaryBg
colorPrimaryBorder
colorPrimary
102 more...
colorPrimaryBg
colorPrimaryBorder
colorPrimary
102 more...
Alias token
controlOutline controlItemBgActive 74 more...
Components
px
50%

Design tokens

Every token with its value in each mode. Search by name, or filter by collection.

All types
All tokens (390)
TokenLightDarkCollectionTypeDescription
borderRadius
6
6
seed
float
Border radius of base components
colorBgBase
#ffffff
#000000
seed
color
Used to derive the base variable of the background color gradient. In v5, we added a layer of background color derivation algorithm to produce map token of background color. But PLEASE DO NOT USE this Seed Token directly in the code!
colorError
colorErrorBase
colorErrorBase
seed
color
Used to represent the visual elements of the operation failure, such as the error Button, error Result component, etc.
colorInfo
colorInfoBase
colorInfoBase
seed
color
Used to represent the operation information of the Token sequence, such as Alert, Tag, Progress, and other components use these map tokens.
colorPrimary
colorPrimaryBase
colorPrimaryBase
seed
color
Brand color is one of the most direct visual elements to reflect the characteristics and communication of the product. After you have selected the brand color, we will automatically generate a complete color palette and assign it effective design semantics.
colorSuccess
colorSuccessBase
colorSuccessBase
seed
color
Used to represent the token sequence of operation success, such as Result, Progress and other components will use these map tokens.
colorTextBase
#000000
#ffffff
seed
color
Used to derive the base variable of the text color gradient. In v5, we added a layer of text color derivation algorithm to produce gradient variables of text color gradient. But please do not use this Seed Token directly in the code!
colorWarning
colorWarningBase
colorWarningBase
seed
color
Used to represent the warning map token, such as Notification, Alert, etc. Alert or Control component(like Input) will use these map tokens.
controlHeight
32
32
seed
float
The height of the basic controls such as buttons and input boxes
fontFamily
SF Pro
SF Pro
seed
string
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'
fontFamilyCode
SFMono-Regular
SFMono-Regular
seed
string
'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace
fontSize
14
14
seed
float
The most widely used font size in the design system, from which the text gradient will be derived.
lineType
solid
solid
seed
string
Border style of base components
lineWidth
1
1
seed
float
Border width of base components
motion
true
true
seed
boolean
Used to configure the motion effect, when it is `false`, the motion is turned off
motionBase
0
0
seed
float
-
motionEaseInBack
cubic-bezier(0.71, -0.46, 0.88, 0.6)
cubic-bezier(0.71, -0.46, 0.88, 0.6)
seed
string
Preset motion curve.
motionEaseInOut
cubic-bezier(0.645, 0.045, 0.355, 1)
cubic-bezier(0.645, 0.045, 0.355, 1)
seed
string
Preset motion curve.
Theme
The theme object ConfigProvider takes: tokens, algorithms, component tokens and CSS variable options.
Components Config
Tokens for one component, keyed by its name, that override its own tokens or the alias tokens it uses.
cssVar
How antd names its CSS variables: the prefix, and the key that tells two themes apart.