mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
940 B
940 B
title, description, links, navigation
| title | description | links | navigation | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Color Mode | Nuxt UI integrates with `@nuxtjs/color-mode` to allow for easy switching between light and dark themes. |
|
false |
Usage
Nuxt UI automatically registers the @nuxtjs/color-mode module for you and takes advantage of Tailwind CSS dark mode class strategy, so there's no additional setup required.
You can disable dark mode by setting the preference to light instead of system in your nuxt.config.ts.
export default defineNuxtConfig({
colorMode: {
preference: 'light'
}
})
::tip
If you're stuck in dark mode even after changing this setting, you might need to remove the nuxt-color-mode entry from your browser's local storage.
::