Skip to content

pantoken-root / formats/css/src / schemeOverrideTokens

Function: schemeOverrideTokens() ​

schemeOverrideTokens(theme, scheme): Token[]

Beta

The tokens whose value actually changes when a theme is pinned to scheme — i.e. the ones written with light-dark(). This is the minimal forcing block for [data-pantoken-scheme].

Parameters ​

theme ​

Theme

scheme ​

Scheme

Returns ​

Token[]