Skip to content

PrasadP27/Colorcn

Repository files navigation

ColorCN

ColorCN is a web app that helps you generate, customize, and export color themes for projects built with shadcn/ui and Tailwind CSS v4. It makes working with design systems faster by letting you visually create color palettes and instantly convert them into production‑ready Tailwind + shadcn theme code.

🚀 Getting Started

Prerequisites

Make sure your project uses:

  • Tailwind CSS
  • shadcn/ui
  • CSS variables enabled

🧩 Usage

  1. Open ColorCN in your browser
  2. Customize your colors (primary, secondary, background, foreground, etc.)
  3. Preview the theme live
  4. Export the generated code
  5. Paste the code into your project (usually globals.css)

📤 Exported Output

ColorCN generates:

  • CSS variables for light and dark mode
  • OKLCH-based color values for accurate and future-proof color theming
  • Tailwind-compatible color tokens
  • shadcn/ui-ready theme structure

Example output:

:root {
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
}

.dark {
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 47.4% 11.2%;
}

🛠️ Tech Stack

  • React / Next.js (if applicable)
  • Tailwind CSS
  • shadcn/ui
  • TypeScript (optional)

🎯 Why ColorCN?

Designing consistent color themes for shadcn + Tailwind can be tedious and error‑prone. ColorCN removes the guesswork by giving you a visual, developer‑friendly workflow that bridges design and code.

🤝 Contributing

Contributions are very welcome! 🙌 Whether it's fixing bugs, improving the UI, adding features, or refining documentation — every contribution helps.

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/your-feature)
  3. Commit your changes
  4. Push to your fork
  5. Open a pull request

About

Generate, customize, and export color themes for Shadcn projects.

Topics

Resources

Stars

Watchers

Forks

Contributors