jjranalli / nightwind

An automatic, customisable, overridable Tailwind dark mode plugin
https://nightwindcss.com
MIT License
713 stars 45 forks source link

Dark classes in separate files #49

Open LeMatosDeFuk opened 2 years ago

LeMatosDeFuk commented 2 years ago

Hi, first of all, I want to thank you for this package, I love it.

Is there a feature of splitting dark and light classes to separate files? For example, if there is enabled dark mode, I can load only dark classes + light classes and in the light mode, it will load only light classes. If not, this would be really cool feature.

Thank you.

jjranalli commented 2 years ago

Really glad to hear you like Nightwind!

I don't think doing this with light classes would be feasible as I would have to mess with classes tailwind generates, but there may be a way to optimize loading dark classes. Will keep this in mind for future releases, thanks for the suggestion!