We have multiple files to manage the same theme: tokens.css and preset.ts. The css file is the actual theme, preset is only used for the documentation site.
The main problem of the current solution is having two sources of truth for theming - creating the necessity of changing both for a successful theme change.
Solution
Generate the javascript version from css tokens. For example, the css code:
Problem
We have multiple files to manage the same theme: tokens.css and preset.ts. The css file is the actual theme, preset is only used for the documentation site.
The main problem of the current solution is having two sources of truth for theming - creating the necessity of changing both for a successful theme change.
Solution
Generate the javascript version from css tokens. For example, the css code:
Becomes:
Usage examples
No response
Dependencies
No response
References