nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.8k stars 464 forks source link

Strip all dark mode classes #1965

Open schillerenrico opened 2 months ago

schillerenrico commented 2 months ago

Description

Hello, referencing this issue https://github.com/nuxt/ui/issues/1588 i want to strip all dark: related css classes. I set the default/preferenced mode to light and not using a mode switch. So all the dark: related css classes in the dom are dead code.

So is there a nuxt:ui config to strip all dark: classes or a way to remove them from the dom?

benjamincanac commented 1 month ago

Unfortunately, nothing comes to mind to achieve this right now. Maybe this can be done through a Vite plugin? 🤔

schillerenrico commented 1 month ago

Well it would be cool to have the option build into nuxt ui. Less css class classes inside the dom would be more performant as well. Especially while developing. Hope there is something like that planned