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

Svelte/general vite support? #20

Open endigma opened 1 year ago

Mokshit06 commented 1 year ago

Macaron already has general vite support, so it should work with js/ts files. As for svelte, I think it would require adding a preprocessor for svelte files to make it work with them, but if you create the styles in a seperate js/ts files and then import the classes in your svelte file, I believe that should already work

endigma commented 1 year ago

I'll have a go at it and report what happens here for future reference.

Not-Jayden commented 1 year ago

@endigma Any updates on this? Keen to try this in a future svelte project

endigma commented 1 year ago

Nope, using unocss now, much more ergonomic to extend.