myFavShrimp / turf

Macro based compile-time SCSS transpilation, CSS minification, and class name uniquification toolchain inspired by CSS modules.
MIT License
58 stars 3 forks source link

tailwindcss support? #16

Open nothendev opened 8 months ago

nothendev commented 8 months ago

is there any way to use, for example, tailwind's @apply or theme() in turf modules?

myFavShrimp commented 8 months ago

No, this is currently not possible but I am not against the idea to provide support for tailwind.

If you want to use tailwindcss and turf together, you first need to process the tailwind styles (e.g. by calling the tailwind cli from a build.rs build script) and then refer to the resulting css files in turf's macros.