Learn how to quickly set up BrandCn themes in your Next.js project with shadcn/ui and Tailwind CSS.
Follow these steps to add a BrandCn theme to your project:
Visit our theme gallery and find a theme that matches your project.
Click the "Copy CSS" button on your chosen theme. This copies all the CSS variables to your clipboard.
Open your project's globals.css file and paste the theme variables.
/* globals.css */
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
/* Paste your theme variables here */
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;
/* ... more variables */
}
.dark {
/* Dark mode variables */
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;
}
}Your project now has a beautiful new theme. The theme will automatically apply to all your shadcn/ui components and Tailwind CSS elements.