macaron-css / macaron

Compiler-augmented typesafe CSS-in-JS with zero runtime, colocation, maximum safety and productivity
https://macaron.js.org/
MIT License
735 stars 16 forks source link

Support css native kebab-case? #7

Closed MrFoxPro closed 1 year ago

MrFoxPro commented 1 year ago

I know this library is using VE under the hood. But solid gives opportunity to define style properties as they are named in CSS, so, and as I found out it does work, but Typescript shows error: image

Mokshit06 commented 1 year ago

This will be fixed very soon

Mokshit06 commented 1 year ago

I gave this some thought and have decided that I don't want to add this to macaron. Supporting both camel case and kebab-case css in typescript would allow for same properties to exist more than once without error like background-color and backgroundColor. Adding this would also mean to fork the type definitions from vanilla-extract and then rewrite them to support kebab-case at every point.