theming / Class

TokensBuilder

An implementation of ThemeBuilder that simply accepts an object of pre-defined theme tokens as configuration and returns them as is when requested to generate tokens.

Notes

The name assigned to this builder has no effects.

Methods

build()

implements ThemeBuilder

No documentation has been provided.

Presentation
Parameters
NameTypeDescription
context
ThemeBuilderContext<TokensBuilderConfig>
Returns

Example usage

withThemeBuilder("name-does-not-matter", TokensBuilder, {
  "primary-color": "#ff0000",
}),