New feature: allow using CSS variables for scale values #177
Labels
config
Configuration issues (theme, variants, breakpoints...)
css
Issues related with the output css
request-feature
Request a new feature for siimple
Milestone
Feature type
Other...
Is your feature request related to a problem?
No, this feature is needed for implementing color modes in siimple.
Describe the solution you'd like
Allow using CSS variables to store scale values defined in the configuration of siimple. We will use the
:root
selector to store the default scale values as a CSS variable:Then, in each style we will use the CSS variable instead of using the scale value directly:
This feature will be enabled by default in siimple 4.3.0, but it can be disabled by the user providing a falsy value to the
useCssVariables
flag in the configuration:Describe alternatives you've considered
No response
Additional context
This issue is related to discussion #176.
The text was updated successfully, but these errors were encountered: