An AI-powered color palette discovery tool that generates harmonious color combinations based on mood descriptions, drawing from the Sanzo Wada Dictionary of Color Combinations (1933).
This application uses Claude AI to interpret artistic inspirations and moods, then intelligently selects a perfect palette from Sanzo Wada's 348 carefully curated color combinations. Each palette is visualized through 14 classical art composition principles. The idea is for these compositional inspirations to serve as a creative jumping-off point for any project — from digital art and painting to photography, illustration, or even decoration ideas for a kid's birthday party!
recording.mov
The Sanzo Wada Dictionary of Color Combinations is a legendary reference work created by Japanese artist Sanzo Wada in 1933. It contains 348 meticulously crafted color palettes that reflect Japanese aesthetic principles.
- AI-powered selection using Claude 3.5 Haiku
- Structured responses via tool calling ensuring reliable palette selections and reasoning every time
- Interactive composition views to explore each palette
- Reasoning explanations for every palette selection
- Keyboard navigation between composition styles
- Node.js 18+
- Anthropic API key (for production)
# Install dependencies
npm install
# Copy environment variables
cp .env.example .env
# Add your API key to .env# In .env
VITE_USE_MOCK_API=true
# Run dev server
npm run devVisit http://localhost:5173
# In .env
VITE_USE_MOCK_API=false
ANTHROPIC_API_KEY=your_key_here
# Run with API support
npm run dev:apiVisit http://localhost:3000
# Toggle between mock and production API
VITE_USE_MOCK_API=true
# Your Anthropic API key
ANTHROPIC_API_KEY=your_api_key_hereEndpoint: POST /api/generate-palette
Request:
{
"mood": "Calm horizon between the ocean and the sky"
}Response:
{
"mood": "Calm horizon between the ocean and the sky",
"palette": {
"id": 1,
"colors": [
{ "name": "English Red", "hex": "#de4500" },
{ "name": "Cerulian Blue", "hex": "#29bdad" }
],
"reasoning": "This palette captures the essence..."
},
"timestamp": "2025-10-29T..."
}- React + TypeScript + Vite
- Claude 3.5 Haiku (Anthropic)
- Vercel Serverless Functions
npm run dev # Development (mock API)
npm run dev:api # Development (with API)
npm run build # Build for production
npm run format # Format code with Prettier