Shadcn Color Palette Generator
Create custom color palettes for your Shadcn projects. Select a base color and get instant, compatible CSS variables for your global styles.
How to use
- Select a primary color using the color picker or input a hex code.
- Preview your palette in both Light and Dark modes to ensure accessibility and aesthetic.
- Click the "Code" tab or the "Copy CSS" button.
- Paste the generated CSS into your
app/globals.cssfile, replacing the existing:rootand.darkvariables.
Why use this generator?
Standard Shadcn themes are great, but sometimes you need a specific brand color. This tool automatically generates all the necessary derivative colors (secondary, accent, muted, border, ring) based on your primary selection, ensuring a cohesive and accessible design system instantly. It outputs standard CSS variables compatible with Tailwind CSS v4 and the latest Shadcn setup.