TypeScript MIT

color-mode

Dark and Light mode with auto detection made easy with Nuxt 🌗

N

nuxt-modules

Dernière activité 28 sept. 2026
nuxt-modules/color-mode

1,2 k

étoiles

123

forks

51

issues ouvertes

color-schemedark-modedark-themenuxt-module

Ce README est souvent en anglais.

@nuxtjs/color-mode

Nuxt Color Mode

npm version npm downloads License Nuxt Volta board

🌑 Dark and 🌕 Light mode with auto detection made easy with Nuxt.

nuxt-color-mode

Live demo

Features

  • 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

📖  Read more

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.

Contributing

You can contribute to this module online with CodeSandBox:

Edit @nuxtjs/color-mode

Or locally:

  1. Clone this repository
  2. Install dependencies using pnpm install
  3. Start development server using pnpm dev

License

MIT License

Copyright (c) Nuxt Team

Projets similaires

Perfect Next.js dark mode in 2 lines of code. Support System preference and any other theme with no flashing

TypeScriptdark-modedark-themenextjs
Ppacocoursey
6,3 k étoiles254

A simple Windows Color Mode switching tool that enables your enables your system to automatically switch between light and dark themes

TypeScriptautocolordark
TtuyangJs
169 étoiles3

Animated theme toggles for switching between light and dark modes.

TypeScriptdark-theme-togglereactsvelte
AAlfieJones
806 étoiles25