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>
);

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.