lightDark helper in css-utils #1640
johnnyggalt
started this conversation in
Ideas
Replies: 1 comment
-
|
Utils haven't been a priority recently, especially ones that are simple string replacements like light-dark. calc is common enough, quite generic but can be used to form quite complex expressions, so it made sense to provide a utility for it early on. light-dark on the other hand is very simple, and might make more sense implemented in userland with values scoped to known design token strings, for example. TL;DR most utils aren't high priority and can be easily (and often to better effect) implemented in userland. They may eventually be implemented in the future. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi,
Maybe I'm missing or misunderstanding something, but would it make sense for the
css-utilspackage to include alightDarkfunction? I went there looking for one and was surprised to find only thecalcfunction in it. Basically I want something to replace interpolatinglight-darkCSS calls:I can of course write my own helper, but my immediate thought was: surely vanilla-extract already provides something for this.
Beta Was this translation helpful? Give feedback.
All reactions