---
name: sanzo-wada-palettes
description: >-
Selects, adapts, and applies 348 curated color combinations from Sanzo Wada's
A Dictionary of Color Combinations with precomputed moods, theme roles, and
WCAG contrast ratios. Use when designing websites, landing pages, dashboards,
UI themes, design systems, or when asked to pick or fix colors and contrast.
---
# Sanzo Wada Color Palettes
Use this skill to ground web, app, and UI color choices in Sanzo Wada's 348 historical color combinations (`references/palettes.json`) instead of guessing hex codes or defaulting to generic gradients.
## Workflow
1. **Query, never dump.** Do not read all of `references/palettes.json` into context. Run `scripts/find_palette.py` with filters matching the project's domain, mood, and theme:
```bash
python scripts/find_palette.py --use fintech --theme light --accessible --limit 5
python scripts/find_palette.py --mood calm --temperature cool --size 3
python scripts/find_palette.py --id 114 --theme dark
```
2. **Pick one palette** that fits the user's mood, brand temperature (`warm`, `cool`, `balanced`), and light/dark mode target.
3. **Verify contrast before writing CSS.** Check `text_grade` and `accent_grade` in the script output (and `pairs` in `palettes.json` if needed).
4. **Emit semantic tokens** (CSS custom properties or Tailwind theme tokens) rather than scattering raw hex values across components.
## Rules for Applying a Palette
### 1. Enforce 60 / 30 / 10 Hierarchy
- **60% Background / Canvas:** Use `background` for the main page and primary whitespace.
- **30% Secondary Surfaces:** Use `secondary` (or a subtle tint/shade of `background`) for cards, sidebars, borders, and alternating sections.
- **10% Accent:** Reserve `accent` for primary CTAs, active states, key badges, and focal highlights. Never flood a layout with the accent color.
### 2. Handle Low-Contrast Palettes Safely
Many 2-color and mid-tone Wada combinations were designed for print and fail body-text contrast when paired directly (`text_grade: "fail"`).
- **Body text must be `>= 4.5:1` (`AA`).** Large headings (`>= 24px` or `18.66px` bold) and UI boundaries must be `>= 3.0:1` (`AA-large`).
- **When `text_grade` is `fail` (or you want `AAA`):** Do not force unreadable text. Keep the Wada colors for accents, hero blocks, borders, or illustrations, and pair them with a subtly tinted neutral surface (`#faf8f5` / `#141413`) and high-contrast neutral ink (`#1a1917` / `#f5f4f0`).
- **When you need a palette that works out-of-the-box:** Pass `--accessible` to `find_palette.py`.
### 3. Stay Faithful to the Palette
- Use the exact hex values returned by `find_palette.py`. Do not invent unrelated brand hues.
<!-- ‹guest · 2026-12-02› -->
- If you need hover, border, or muted-text states, derive them by adjusting opacity or lightness of the existing palette colors (e.g., `color-mix(in srgb, var(--accent) 12%, transparent)`), not by introducing new hues.
### 4. Output Semantic Design Tokens
Define tokens at `:root` (and `[data-theme="dark"]` if supporting both modes):
```css
:root {
--color-bg: #...;
--color-surface: #...;
--color-text: #...;
--color-text-muted: color-mix(in srgb, var(--color-text) 70%, transparent);
--color-accent: #...;
--color-border: color-mix(in srgb, var(--color-text) 14%, transparent);
}
```
## CLI Reference (`scripts/find_palette.py`)
| Flag | Values / Example | Purpose |
|---|---|---|
| `--mood` | `calm`, `cozy`, `dramatic`, `earthy`, `elegant`, `energetic`, `harmonious`, `high-impact`, `playful`, `professional`, `serene`, `soft`, `trustworthy`, `vintage` | Filter by computed mood |
| `--use` | `fintech`, `SaaS`, `meditation`, `cafes`, `fashion`, `editorial` | Substring match against `suggested_for` |
| `--temperature` | `warm`, `cool`, `balanced` | Filter by color temperature |
| `--tone` | `light`, `mid`, `dark` | Filter by average lightness |
| `--saturation` | `muted`, `moderate`, `vivid` | Filter by saturation |
| `--size` | `2`, `3`, `4` | Number of colors in the combination |
| `--theme` | `light` (default), `dark` | Which precomputed role set to display |
| `--accessible` | flag | Require `text_grade` of `AA` or `AAA` |
| `--contains` | `#007190` or `007190` | Match palettes containing a hex color |
| `--id` | `1`–`348` | Inspect a specific Wada combination |
| `--limit` | integer (default `5`) | Max palettes to print |
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.