Loading...
Next.js framework with App Router, TypeScript, and Tailwind CSS
Navigate to your downloaded project directory
cd your-project-nameInstall all dependencies
npm installStart the development server
npm run devYour Next.js project includes pre-configured color variables in the globals.css file located in the app directory.
All colors are defined as CSS custom properties in app/globals.css:
:root {
--primary: /* Your primary color */;
--secondary: /* Your secondary color */;
--accent: /* Your accent color */;
--text-on-primary: /* Text color for primary bg */;
--text-on-secondary: /* Text color for secondary bg */;
--text-on-accent: /* Text color for accent bg */;
}Colors are automatically available in Tailwind CSS through the tailwind.config.ts file.
Apply colors using Tailwind classes:
<div className="bg-primary text-text-on-primary">
<h1>Primary Background</h1>
</div>
<button className="bg-accent text-text-on-accent">
Call to Action
</button>All color variables work seamlessly with Next.js Server Components and Client Components.
The template includes dark mode support. Colors automatically adjust based on the user's preference.
Generate your color scheme and download the Next.js 15 template
Generate Colors