A React component for generating and managing consistent color palettes for metrics visualization. Built with React, Tailwind CSS, and shadcn/ui components.
- 🎨 Generate harmonious color palettes for metrics visualization
- 🔄 Automatic color optimization for maximum contrast
- 📋 One-click color code copying
- 💾 Export palettes in multiple formats (JSON, CSS, Tailwind, SASS, LESS, Sketch)
- 🎯 Add, update, and delete metrics with their associated colors
- 🌈 16 carefully selected base colors
- 💅 Modern UI with shadcn/ui components
# Clone the repository
git clone https://github.com/yourusername/metrics-color-palette-generator
# Navigate to the project directory
cd metrics-color-palette-generator
# Install dependencies
npm install- React 18+
- Tailwind CSS
- shadcn/ui components
- Lucide React icons
- TypeScript (optional)
- Install the required dependencies:
npm install @/components/ui lucide-react- Import and use the component:
import MetricColorPaletteGenerator from './components/MetricColorPaletteGenerator';
function App() {
return (
<div>
<MetricColorPaletteGenerator />
</div>
);
}- Initialize shadcn/ui components:
npx shadcn-ui init- Install required shadcn/ui components:
npx shadcn-ui add card alertThe generator supports exporting color palettes in various formats:
- JSON: For use in JavaScript applications
- CSS Variables: For CSS styling
- Tailwind Config: For Tailwind CSS projects
- SASS Variables: For SASS/SCSS projects
- LESS Variables: For LESS projects
- Sketch Palette: For design handoff
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.