title | description | toc |
---|---|---|
Dark Mode |
Example of enabling dark mode with the module. |
false |
This is an example using the Tailwind Dark Mode with the help of @nuxtjs/color-mode
module.
export default defineNuxtConfig({
modules: [
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode'
],
})
See the working demo below:
:sandbox{src="https://stackblitz.com/github/nuxt-modules/tailwindcss/tree/docs-examples/examples/dark-mode"}