You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: