Protocol
ColorModeMultipleSemanticTokens
This is a group of semantic tokens for colors modes but using MultipleColorModeSemanticToken.
protocol ColorModeMultipleSemanticTokens
Overview
In fact the MultipleColorModeSemanticToken class will help users (i.e. developers) to handle one semantic token for color mode containing values for light and dark modes.
In few words:
// Tokenator defines seevral color mode semantic tokens
var onBrandPrimaryLight: MultipleColorModeSemanticToken { ColorModeRawTokens.monochromeLight }
var onBrandPrimaryDark: MultipleColorModeSemanticToken { ColorModeRawTokens.monochromeLight }
// They are packed
var onBrandPrimary: MultipleColorModeSemanticToken { MultipleColorModeSemanticToken(onBrandPrimary) }
Since
0.13.0
Topics
Instance Properties
Instance Methods