A brutalist-style web application for extracting color palettes from images. Upload any image and generate beautiful, harmonious color palettes for your design projects.
- Image Upload: Upload your own images or use random images
- Color Extraction: Extract up to 16 colors from any image using K-means clustering algorithm
- Color Formats: View colors in HEX, RGB, or HSL formats
- Copy Colors: Click on any color to copy its value to your clipboard
- Download Options: Export palettes as PNG images or JSON files
- Responsive Design: Works on all device sizes
- Brutalist UI: High-contrast, bold interface with a raw aesthetic
- React
- TypeScript
- Styled Components
- HTML Canvas API
- Node.js (v14 or higher)
- npm or yarn
-
Clone the repository:
git clone https://github.com/yourusername/palettegen.git cd palettegen
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open http://localhost:3000 to view it in the browser.
- Upload an image using the "Upload Image" button or click "Random Image"
- Adjust the number of colors using the slider
- Select your preferred color format (HEX, RGB, HSL)
- Click on any color to see all available formats
- Click on a color value to copy it to your clipboard
- Download your palette as an image or JSON file
npm run build
This builds the app for production to the build
folder.
MIT License