ui icon indicating copy to clipboard operation
ui copied to clipboard

Strip all dark mode classes

Open schillerenrico opened this issue 1 year ago • 2 comments

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?

schillerenrico avatar Jul 15 '24 08:07 schillerenrico

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

benjamincanac avatar Jul 23 '24 14:07 benjamincanac

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

schillerenrico avatar Jul 30 '24 01:07 schillerenrico

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 08 '24 01:10 github-actions[bot]

Closing this as we won't be implementing this in the current version. However, in v3 with the new design system all dark: classes have been removed!

benjamincanac avatar Oct 10 '24 21:10 benjamincanac