glaze
glaze copied to clipboard
Customizable runtime tokens
Motivation
As outlined in https://github.com/seek-oss/treat/issues/97, some theming tokens are useful during runtime. Currently, the list of shared tokens is hard-coded and thus, not alterable.
For highly dynamic styling with design system constraints applied, colors or other tokens may be useful at runtime.
Details
An optional runtimeTokens theme entry with the default value of ['breakpoints', 'shorthands', 'aliases'] could be added. createTheme should embed tokens with the given keys.