---
title: "Nuxt Color Mode"
description: "Dark and light mode with auto detection made easy with Nuxt 🌗"
canonical_url: "https://color-mode.nuxtjs.org"
---
# Nuxt Color Mode

> Dark and light mode with auto detection made easy with Nuxt 🌗

<u-page-hero orientation="vertical">
<template v-slot:title="">

Dark and light mode with <span className="text-primary">

auto detection

</span>
</template>

<template v-slot:description="">

Plug-and-play color mode module for Nuxt with auto detection made easy. Easily theme your app with `.dark` and `.light` classes.

</template>

<template v-slot:links="">
<u-button icon="i-ph-rocket-launch-duotone" size="xl" to="https://color-mode.nuxtjs.org/getting-started">

Get started

</u-button>

<copy-code-input source="npx nuxt module add color-mode">



</copy-code-input>
</template>
</u-page-hero>

<u-page-section>
<template v-slot:title="">

Get the most of your app with <br />

 <span className="text-primary">

powerful features

</span>
</template>

<template v-slot:features="">
<u-page-card icon="i-ph-moon-duotone" to="https://color-mode.nuxtjs.org/usage/basic">
<template v-slot:title="">

Auto Detection

</template>

<template v-slot:description="">

Automatically detects the user's system color mode preference and applies it to your app.

</template>
</u-page-card>

<u-page-card icon="i-ph-palette-duotone" to="https://color-mode.nuxtjs.org/usage/basic">
<template v-slot:title="">

Easy CSS Theming

</template>

<template v-slot:description="">

Add `.dark` and `.light` classes to your CSS for effortless theming.

</template>
</u-page-card>

<u-page-card icon="i-ph-lock-duotone" to="https://color-mode.nuxtjs.org/usage/force-mode">
<template v-slot:title="">

Force Mode Per Page

</template>

<template v-slot:description="">

Lock specific pages to a color mode, perfect for incremental dark mode implementation.

</template>
</u-page-card>

<u-page-card icon="i-ph-gear-duotone" to="https://color-mode.nuxtjs.org/usage/configuration">
<template v-slot:title="">

Highly Configurable

</template>

<template v-slot:description="">

Customize storage, fallbacks, class names, and more to fit your needs.

</template>
</u-page-card>

<u-page-card icon="i-ph-brackets-angle-duotone" to="https://color-mode.nuxtjs.org/usage/basic">
<template v-slot:title="">

SSR Ready

</template>

<template v-slot:description="">

Works seamlessly with both client-side and server-side rendering.

</template>
</u-page-card>

<u-page-card icon="i-ph-puzzle-piece-duotone" to="https://color-mode.nuxtjs.org/getting-started/installation">
<template v-slot:title="">

Framework Support

</template>

<template v-slot:description="">

Works with any CSS framework by adding configurable classes to `<html>`.

</template>
</u-page-card>
</template>
</u-page-section>

<u-page-section align="center">
<template v-slot:title="">

Trusted by thousands of developers

</template>

<template v-slot:description="">

Nuxt Color Mode is used by companies and developers worldwide to provide seamless dark mode experiences.

</template>

<template v-slot:links="">
<u-button icon="i-ph-rocket-launch-duotone" size="xl" to="https://color-mode.nuxtjs.org/getting-started">

Get started

</u-button>
</template>
</u-page-section>

## Resources for Agents

- [API catalog: every service document this site publishes](https://color-mode.nuxtjs.org/.well-known/api-catalog)
- [Sitemap (XML)](https://color-mode.nuxtjs.org/sitemap.xml)
- [Sitemap (Markdown): every page on the site](https://color-mode.nuxtjs.org/sitemap.md)
- [MCP server card: MCP endpoint at https://color-mode.nuxtjs.org/mcp](https://color-mode.nuxtjs.org/.well-known/mcp/server-card.json)
- [MCP endpoint (streamable HTTP)](https://color-mode.nuxtjs.org/mcp)
- [llms.txt: index of the documentation for LLMs](https://color-mode.nuxtjs.org/llms.txt)
- [llms-full.txt: the full documentation as a single file](https://color-mode.nuxtjs.org/llms-full.txt)
- [OpenAPI document: every route this site serves to agents](https://color-mode.nuxtjs.org/openapi.json)


## Sitemap

See the full [sitemap](https://color-mode.nuxtjs.org/sitemap.md) for all pages.
