Package Exports
- @nuxtjs/color-mode
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nuxtjs/color-mode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@nuxtjs/color-mode
🌑 Dark and 🌕 Light mode with auto detection made easy with NuxtJS
Features
- Add
.${color}-mode
class to<html>
for easy CSS theming - Force a page to a specific color mode (perfect for incremental development)
- Works with any NuxtJS target (
static
orserver
) and rendering (universal
andspa
) - Auto detect the system color-mode
- Sync dark mode across tabs and windows 🔄
- Supports IE9+ 👴
Contributing
You can contribute to this module online with CodeSandBox:
Or locally:
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
yarn dev
ornpm run dev
License
Copyright (c) NuxtJS Team