semantic token

A token named for its purpose, such as color.action.bg or color.surface, that points at a global token.

In more detail

Semantic tokens are the middle tier of a three-tier hierarchy. Because components use the purpose name rather than the raw colour, a theme such as dark mode only needs to repoint the semantic tokens to different global values. They are the foundation of theme switching.

Related terms

Taught in

References