Defining values in a contract which compile down to values not CSS variables #528
AndrewLeedham
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
If the values can never change is it really part of a theme? Or is it just a lookup for a constant. Feels like two different concepts. You could build something like this by building on top of the vanilla-extract core API's. Not sure it makes sense to build directly into them though. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Given a theming system that has a static set of properties say a sizing scale, but then has themeable values like font families, it seems redundant to define those sizes as CSS variables as they never changed on the client, and only a subset may be used.
Perhaps the API could allow defining values in a theme contract that are not overriden in a theme. For example:
Would output something like:
But what I am wanting it to output is:
Beta Was this translation helpful? Give feedback.
All reactions