global token
A token that holds a literal value from the full palette, such as blue.500 = #3b82f6, with no meaning attached.
In more detail
Global tokens are the bottom tier of a three-tier token hierarchy. They list every available colour, size and duration. Components should not use them directly, because a name like blue.500 says nothing about what the colour is for.
Related terms
- semantic token — A token named for its purpose, such as color.action.bg or color.surface, that points at a global token.
- component token — A token scoped to one component, such as button.primary.bg, that usually points at a semantic token.
- design token — A named design decision, such as a colour, font size or spacing value, stored as data so every platform can use the same value.
Taught in
- Design Tokens: W3C Specs, Global, Semantic & Component Tokens — Design Systems & Component Engineering