component token
A token scoped to one component, such as button.primary.bg, that usually points at a semantic token.
In more detail
Component tokens are the top tier of a three-tier hierarchy. They give designers a precise override handle for one component without affecting others. Most of the time they simply alias a semantic token.
Related terms
- semantic token — A token named for its purpose, such as color.action.bg or color.surface, that points at a global token.
- global token — A token that holds a literal value from the full palette, such as blue.500 = #3b82f6, with no meaning attached.
- token alias — A token whose value is a reference to another token, written in curly braces such as {semantic.action.bg}.
Taught in
- Design Tokens: W3C Specs, Global, Semantic & Component Tokens — Design Systems & Component Engineering