ComponentsBlocksDocsExamples

Token UI Docs Introduction
Token UI Installation
Registry
MCP
Theming
Dark mode
RTL
References
Changelog
v1.0.27
llms.txt

Getting Started

Dark Mode

Enable dark mode support for your app.

Setup

Add Dark Mode Variant

Ensure the following Tailwind Variant is added to your entry style file styles/globals.css:

/** Dark Mode Variant **/
@custom-variant dark (&:where(.dark, .dark *));

Enable Dark Mode

To enable dark mode, toggle the dark class on the <html> element.

export default () => (
  <html lang="en" className="dark">
    <body>{/* Your app */}</body>
  </html>
);

For Next.js projects we recommend using next-themes package for easy dark mode toggle support in your app.

PreviouseThemingNextRTL

On This Page

  • Setup
    • Add Dark Mode Variant
    • Enable Dark Mode

We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking Accept, you agree to our use of cookies.
Learn more.

Token UI

Components

  • Overview
  • Pricing
  • Marketplace
  • Features
  • Integrations
  • Pricing

Blocks

  • Charts
  • Team
  • Blog
  • Careers
  • Contact
  • Privacy

Examples

  • Help
  • Sales
  • Advertise

Docs

  • Twitter
  • Instagram
  • LinkedIn

© 2025 TOUI.dev. All rights reserved.

  • Terms and Conditions
  • Privacy Policy