🌑 Dark and 🌕 Light mode with auto detection made easy with Nuxt.
- Add
.${color}class to<html>for easy CSS theming - Force a page to a specific color mode (perfect for incremental development)
- Works with client-side and universal rendering
- Auto detect system color-mode
Note: v4 of @nuxtjs/color-mode is compatible with Nuxt 3+. If you're looking for the previous version of this module, check out the previous docs, or read more about the differences.
You can contribute to this module online with CodeSandBox:
Or locally:
- Clone this repository
- Install dependencies using
pnpm install - Start development server using
pnpm dev
Copyright (c) Nuxt Team

