---
title: "Discussion on \"How to Set Up and Customize Light and Dark Mode in shadcn with Next.js\" | Hashnode"
description: "Discussion on \"How to Set Up and Customize Light and Dark Mode in shadcn with Next.js\". If you've created a Next.js project with shadcn/ui recently, there's a good chance dark mode is already set up.\nI noticed this while looking through a fresh project. I opened app/globals.css expecting"
url: "https://hashnode.com/posts/how-to-set-up-and-customize-light-and-dark-mode-in-shadcn-with-next-js/6b06284b7f6906157677974a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Set Up and Customize Light and Dark Mode in shadcn with Next.js](https://freecodecamp.org/news/how-to-set-up-and-customize-light-and-dark-mode-in-shadcn-with-next-js?utm_source=hashnode&utm_medium=feed)

If you've created a Next.js project with shadcn/ui recently, there's a good chance dark mode is already set up. I noticed this while looking through a fresh project. I opened app/globals.css expecting

Nov 25 · 24 min read · freecodecamp.org  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#shadcn](https://hashnode.com/tag/shadcn)
-   [#dark-mode](https://hashnode.com/tag/dark-mode)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Ajay Patel](https://hashnode.com/@ajaypatel9016)

@ajaypatel9016 · Gujarat, IN

  
[View profile](https://hashnode.com/@ajaypatel9016)

Entrepreneur, Programmer, Artist, Photographer, Traveler & Speaker. Co-founder @ CleVision

I’ve spent 15+ years in tech as an entrepreneur, programmer, and builder. As co-founder of Clevision, I’ve worked on products like ThemeSelection, PixInvent, FlyonUI, and shadcn/studio. These days, I’m focused on building AI tools, SaaS apps, and UI components that help developers and businesses turn ideas into reality—faster and with less friction.

## Responses 1

Markdown supported · ⌘↵ to post

[Olivia](https://hashnode.com/@oliviacreates)

[Nov 25](https://hashnode.com/posts/how-to-set-up-and-customize-light-and-dark-mode-in-shadcn-with-next-js/6b06284b7f6906157677974a/comment/6b063b54f47c61f977a9f391)

I liked that you started from a fresh project and checked globals.css first — that's exactly where I got tripped up, expecting to wire the toggle up by hand before realizing most of it was already in place.
