glaze icon indicating copy to clipboard operation
glaze copied to clipboard

Customizable runtime tokens

Open kripod opened this issue 5 years ago • 0 comments

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.

kripod avatar Mar 27 '20 22:03 kripod