Replies: 1 comment
-
Using strings would mean giving up type safety, which is one of the principles of style9. If you want to do so you could use something like css-to-js.macro. Using string literals would have no impact on shorthand support. |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Seems to me that it would be possible to provide a
css
template function that converts CSS into the object format.So e.g.
could be written as
Furthermore, shorthand attributes could be used, and they would be converted to their longhand versions, with proper overriding of attributes as would be expected from object notation.
Thoughts? I already implemented something like this for vanilla-extract, so this is more of a "is this desirable" discussion :-)
Beta Was this translation helpful? Give feedback.
All reactions