Codú
‹ Back to feed

// freeCodeCamp · 25 November 2026

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. I noticed this while looking through a fresh project. I opened app/globals.css expecting

freeCodeCamp
@freecodecamp · Ajay Patel
www.freecodecamp.org
Read Full Article at www.freecodecamp.org
freeCodeCamp@freecodecamp

Discussion 0

Loading

Got something to say?

or to join the conversation.

Learn to build with AI and grow with people doing the same — it's free.