Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

refactor: inline critical references into color-palette SKILL.md

Marcus Webbd8b825501d4b
diff --git a/plugins/design-assets/skills/color-palette/SKILL.md b/plugins/design-assets/skills/color-palette/SKILL.md
index 69706309..ef818489 100644
--- a/plugins/design-assets/skills/color-palette/SKILL.md
+++ b/plugins/design-assets/skills/color-palette/SKILL.md
@@ -21,79 +21,320 @@ Ask for the primary brand colour. A single hex like `#0D9488` is enough.
### Step 2: Generate 11-Shade Scale
-Convert hex to HSL, then generate shades by varying lightness while keeping hue constant:
-
-| Shade | Lightness | Use Case |
-|-------|-----------|----------|
-| 50 | 97% | Subtle backgrounds |
-| 100 | 94% | Hover states |
-| 200 | 87% | Borders, dividers |
-| 300 | 75% | Disabled states |
-| 400 | 62% | Placeholder text |
-| 500 | 48% | **Brand colour** |
-| 600 | 40% | Primary actions |
-| 700 | 33% | Hover on primary |
-| 800 | 27% | Active states |
-| 900 | 20% | Text on light bg |
-| 950 | 10% | Darkest accents |
-
-See `references/shade-generation.md` for the conversion formula.
+Convert hex to HSL, then generate shades by varying lightness while keeping hue constant.
-### Step 3: Map Semantic Tokens
+#### Hex to HSL Conversion
-**Light mode:**
-```css
---background: white;
---foreground: primary-950;
---card: white;
---card-foreground: primary-900;
---primary: primary-600;
---primary-foreground: white;
---muted: primary-50;
---muted-foreground: primary-600;
---border: primary-200;
+```javascript
+function hexToHSL(hex) {
+ hex = hex.replace(/^#/, '');
+ const r = parseInt(hex.substring(0, 2), 16) / 255;
+ const g = parseInt(hex.substring(2, 4), 16) / 255;
+ const b = parseInt(hex.substring(4, 6), 16) / 255;
+
+ const max = Math.max(r, g, b);
+ const min = Math.min(r, g, b);
+ const diff = max - min;
+
+ let l = (max + min) / 2;
+ let s = 0;
+ if (diff !== 0) {
+ s = l > 0.5 ? diff / (2 - max - min) : diff / (max + min);
+ }
+
+ let h = 0;
+ if (diff !== 0) {
+ if (max === r) h = ((g - b) / diff + (g < b ? 6 : 0)) / 6;
+ else if (max === g) h = ((b - r) / diff + 2) / 6;
+ else h = ((r - g) / diff + 4) / 6;
+ }
+
+ return { h: Math.round(h * 360), s: Math.round(s * 100), l: Math.round(l * 100) };
+}
```
-**Dark mode** — invert lightness while preserving relationships:
-```css
---background: primary-950;
---foreground: primary-50;
---card: primary-900;
---card-foreground: primary-50;
---primary: primary-500;
---primary-foreground: white;
---muted: primary-800;
---muted-foreground: primary-400;
---border: primary-800;
+#### Lightness and Saturation Values
+
+| Shade | Lightness | Saturation Mult | Use Case |
+|-------|-----------|-----------------|----------|
+| 50 | 97% | 0.80 | Subtle backgrounds |
+| 100 | 94% | 0.80 | Hover states |
+| 200 | 87% | 0.85 | Borders, dividers |
+| 300 | 75% | 0.90 | Disabled states |
+| 400 | 62% | 0.95 | Placeholder text |
+| 500 | 48% | 1.00 | **Brand colour baseline** |
+| 600 | 40% | 1.00 | Primary actions (often the brand colour) |
+| 700 | 33% | 1.00 | Hover on primary |
+| 800 | 27% | 1.00 | Active states |
+| 900 | 20% | 1.00 | Text on light bg |
+| 950 | 10% | 1.00 | Darkest accents |
+
+Reduce saturation for lighter shades (50-200 by 15-20%, 300-400 by 5-10%) to prevent overly vibrant pastels. Keep full saturation for 500-950.
+
+#### Complete Scale Generator
+
+```javascript
+function generateShadeScale(brandHex) {
+ const { h, s } = hexToHSL(brandHex);
+ const shades = {
+ 50: { l: 97, sMul: 0.8 }, 100: { l: 94, sMul: 0.8 },
+ 200: { l: 87, sMul: 0.85 }, 300: { l: 75, sMul: 0.9 },
+ 400: { l: 62, sMul: 0.95 }, 500: { l: 48, sMul: 1.0 },
+ 600: { l: 40, sMul: 1.0 }, 700: { l: 33, sMul: 1.0 },
+ 800: { l: 27, sMul: 1.0 }, 900: { l: 20, sMul: 1.0 },
+ 950: { l: 10, sMul: 1.0 }
+ };
+ const result = {};
+ for (const [shade, { l, sMul }] of Object.entries(shades)) {
+ result[shade] = `hsl(${h}, ${Math.round(s * sMul)}%, ${l}%)`;
+ }
+ return result;
+}
```
+#### HSL to Hex Conversion
+
+```javascript
+function hslToHex(h, s, l) {
+ s = s / 100; l = l / 100;
+ const c = (1 - Math.abs(2 * l - 1)) * s;
+ const x = c * (1 - Math.abs((h / 60) % 2 - 1));
+ const m = l - c / 2;
+ let r = 0, g = 0, b = 0;
+ if (h < 60) { r = c; g = x; }
+ else if (h < 120) { r = x; g = c; }
+ else if (h < 180) { g = c; b = x; }
+ else if (h < 240) { g = x; b = c; }
+ else if (h < 300) { r = x; b = c; }
+ else { r = c; b = x; }
+ r = Math.round((r + m) * 255);
+ g = Math.round((g + m) * 255);
+ b = Math.round((b + m) * 255);
+ return `#${r.toString(16).padStart(2, '0')}${g.toString(16).padStart(2, '0')}${b.toString(16).padStart(2, '0')}`.toUpperCase();
+}
+```
+
+#### Verification
+
+Generated shades should look like the same colour family with smooth progression. Light shades (50-300) usable for backgrounds, dark shades (700-950) usable for text. Brand colour recognisable in 500-700.
+
+---
+
+### Step 3: Map Semantic Tokens
+
+Every background token MUST have a paired foreground token. Never use a background without its pair or dark mode will break.
+
+#### Light Mode Tokens
+
+| Token | Shade | Use Case |
+|-------|-------|----------|
+| `background` | white | Page backgrounds |
+| `foreground` | 950 | Body text |
+| `card` | white | Card backgrounds |
+| `card-foreground` | 900 | Card text |
+| `popover` | white | Dropdown/tooltip backgrounds |
+| `popover-foreground` | 950 | Dropdown text |
+| `primary` | 600 | Primary buttons, links |
+| `primary-foreground` | white | Text on primary buttons |
+| `secondary` | 100 | Secondary buttons |
+| `secondary-foreground` | 900 | Text on secondary buttons |
+| `muted` | 50 | Disabled backgrounds, subtle sections |
+| `muted-foreground` | 600 | Muted text, captions |
+| `accent` | 100 | Hover states, subtle highlights |
+| `accent-foreground` | 900 | Text on accent backgrounds |
+| `destructive` | red-600 | Delete buttons, errors |
+| `destructive-foreground` | white | Text on destructive buttons |
+| `border` | 200 | Input borders, dividers |
+| `input` | 200 | Input field borders |
+| `ring` | 600 | Focus rings |
+
+#### Dark Mode Tokens
+
+| Token | Shade | Use Case |
+|-------|-------|----------|
+| `background` | 950 | Page backgrounds |
+| `foreground` | 50 | Body text |
+| `card` | 900 | Card backgrounds |
+| `card-foreground` | 50 | Card text |
+| `popover` | 900 | Dropdown backgrounds |
+| `popover-foreground` | 50 | Dropdown text |
+| `primary` | 500 | Primary buttons (brighter in dark) |
+| `primary-foreground` | white | Text on primary buttons |
+| `secondary` | 800 | Secondary buttons |
+| `secondary-foreground` | 50 | Text on secondary buttons |
+| `muted` | 800 | Disabled backgrounds |
+| `muted-foreground` | 400 | Muted text |
+| `accent` | 800 | Hover states |
+| `accent-foreground` | 50 | Text on accent backgrounds |
+| `destructive` | red-500 | Delete buttons (brighter) |
+| `destructive-foreground` | white | Text on destructive |
+| `border` | 800 | Borders |
+| `input` | 800 | Input borders |
+| `ring` | 500 | Focus rings |
+
+#### Dark Mode Inversion Pattern
+
+Dark mode inverts lightness while preserving hue and saturation. Swap extremes (50 becomes 950, 950 becomes 50), preserve middle (500 stays near 500).
+
+| Light Shade | Dark Equivalent | Role |
+|-------------|-----------------|------|
+| 50 | 950 | Backgrounds |
+| 100 | 900 | Subtle backgrounds |
+| 200 | 800 | Borders |
+| 500 | 500 (slightly brighter) | Brand baseline |
+| 600 | 400 | Primary actions |
+| 950 | 50 | Text colour |
+
+Key dark mode principles:
+- Use shade 500 (not 600) for primary -- brighter for visibility on dark backgrounds
+- Use shade 50 (off-white) for text instead of pure `#FFFFFF` -- easier on eyes
+- Borders need ~10-15% lighter than background (e.g. 800 border on 950 background)
+- Higher elevation = lighter colour (opposite of light mode shadows)
+- Always update foreground when changing background
+
+---
+
### Step 4: Check Contrast
-WCAG minimum ratios:
-- **Text (AA)**: 4.5:1 normal, 3:1 large (18px+)
-- **UI Elements**: 3:1
+#### WCAG Minimum Ratios
+
+| Content Type | AA | AAA |
+|--------------|-----|-----|
+| Normal text (<18px or <14px bold) | 4.5:1 | 7:1 |
+| Large text (>=18px or >=14px bold) | 3:1 | 4.5:1 |
+| UI components (buttons, borders) | 3:1 | Not defined |
+| Graphical objects (icons, charts) | 3:1 | Not defined |
-Quick check: `primary-600` on `white` and `white` on `primary-600`. See `references/contrast-checking.md` for formula.
+Target AA for most projects, AAA for high-accessibility needs (government, healthcare).
+
+#### Luminance and Contrast Formulas
+
+```javascript
+function getLuminance(hex) {
+ hex = hex.replace(/^#/, '');
+ const r = parseInt(hex.substring(0, 2), 16) / 255;
+ const g = parseInt(hex.substring(2, 4), 16) / 255;
+ const b = parseInt(hex.substring(4, 6), 16) / 255;
+ const rsRGB = r <= 0.03928 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
+ const gsRGB = g <= 0.03928 ? g / 12.92 : Math.pow((g + 0.055) / 1.055, 2.4);
+ const bsRGB = b <= 0.03928 ? b / 12.92 : Math.pow((b + 0.055) / 1.055, 2.4);
+ return 0.2126 * rsRGB + 0.7152 * gsRGB + 0.0722 * bsRGB;
+}
+
+function getContrastRatio(hex1, hex2) {
+ const lum1 = getLuminance(hex1);
+ const lum2 = getLuminance(hex2);
+ const lighter = Math.max(lum1, lum2);
+ const darker = Math.min(lum1, lum2);
+ return (lighter + 0.05) / (darker + 0.05);
+}
+```
+
+#### Quick Check Table -- Light Mode
+
+| Foreground | Background | Ratio | Pass? | Use Case |
+|------------|------------|-------|-------|----------|
+| 950 | white | 18.5:1 | AAA | Body text |
+| 900 | white | 14.2:1 | AAA | Card text |
+| 700 | white | 8.1:1 | AAA | Text |
+| 600 | white | 5.7:1 | AA | Text, buttons |
+| 500 | white | 3.9:1 | Fail | Too light for text |
+| white | 600 | 5.7:1 | AA | Button text |
+| white | 700 | 8.1:1 | AAA | Button text |
+| 600 | 50 | 5.4:1 | AA | Muted section text |
+
+#### Quick Check Table -- Dark Mode
+
+| Foreground | Background | Ratio | Pass? | Use Case |
+|------------|------------|-------|-------|----------|
+| 50 | 950 | 18.5:1 | AAA | Body text |
+| 50 | 900 | 14.2:1 | AAA | Card text |
+| 400 | 950 | 8.2:1 | AAA | Muted text |
+| 400 | 900 | 6.3:1 | AA | Muted text |
+| white | 600 | 5.7:1 | AA | Button text |
+
+**Rule of thumb**: For text, aim for 50%+ lightness difference between foreground and background.
+
+#### Essential Pairs to Verify
+
+1. **Body text**: foreground on background (light: 950 on white = 18.5:1, dark: 50 on 950 = 18.5:1)
+2. **Primary button**: primary-foreground on primary (light: white on 600 = 5.7:1, dark: white on 500 = 3.9:1 -- borderline)
+3. **Muted text**: muted-foreground on muted (light: 600 on 50 = 5.4:1, dark: 400 on 800 = 4.1:1 -- may fail)
+4. **Card text**: card-foreground on card (light: 900 on white = 14.2:1, dark: 50 on 900 = 14.2:1)
+
+#### Fixing Common Contrast Failures
+
+**White on primary-500 fails (3.9:1)**: Use primary-600 instead (5.7:1), or use dark text on the button.
+
+**Muted text in dark mode fails (400 on 800 = 4.1:1)**: Use 300 on 900 = 6.8:1.
+
+**Links hard to see (500 on white = 3.9:1)**: Use primary-700 (8.1:1), or add underline decoration.
+
+---
### Step 5: Output Tailwind v4 CSS
```css
+@import "tailwindcss";
+
@theme {
+ /* Shade scale */
--color-primary-50: #F0FDFA;
--color-primary-100: #CCFBF1;
+ --color-primary-200: #99F6E4;
+ --color-primary-300: #5EEAD4;
+ --color-primary-400: #2DD4BF;
--color-primary-500: #14B8A6;
+ --color-primary-600: #0D9488;
+ --color-primary-700: #0F766E;
+ --color-primary-800: #115E59;
+ --color-primary-900: #134E4A;
--color-primary-950: #042F2E;
+ /* Light mode semantic tokens */
--color-background: #FFFFFF;
--color-foreground: var(--color-primary-950);
+ --color-card: #FFFFFF;
+ --color-card-foreground: var(--color-primary-900);
+ --color-popover: #FFFFFF;
+ --color-popover-foreground: var(--color-primary-950);
--color-primary: var(--color-primary-600);
--color-primary-foreground: #FFFFFF;
+ --color-secondary: var(--color-primary-100);
+ --color-secondary-foreground: var(--color-primary-900);
+ --color-muted: var(--color-primary-50);
+ --color-muted-foreground: var(--color-primary-600);
+ --color-accent: var(--color-primary-100);
+ --color-accent-foreground: var(--color-primary-900);
+ --color-destructive: #DC2626;
+ --color-destructive-foreground: #FFFFFF;
+ --color-border: var(--color-primary-200);
+ --color-input: var(--color-primary-200);
+ --color-ring: var(--color-primary-600);
+ --radius: 0.5rem;
}
+/* Dark mode overrides */
.dark {
--color-background: var(--color-primary-950);
--color-foreground: var(--color-primary-50);
+ --color-card: var(--color-primary-900);
+ --color-card-foreground: var(--color-primary-50);
+ --color-popover: var(--color-primary-900);
+ --color-popover-foreground: var(--color-primary-50);
--color-primary: var(--color-primary-500);
+ --color-primary-foreground: #FFFFFF;
+ --color-secondary: var(--color-primary-800);
+ --color-secondary-foreground: var(--color-primary-50);
+ --color-muted: var(--color-primary-800);
+ --color-muted-foreground: var(--color-primary-400);
+ --color-accent: var(--color-primary-800);
+ --color-accent-foreground: var(--color-primary-50);
+ --color-destructive: #EF4444;
+ --color-destructive-foreground: #FFFFFF;
+ --color-border: var(--color-primary-800);
+ --color-input: var(--color-primary-800);
+ --color-ring: var(--color-primary-500);
}
```
@@ -101,19 +342,71 @@ Copy `assets/tailwind-colors.css` as a starting template.
---
+## Component Usage Examples
+
+```tsx
+// Primary button
+<button className="bg-primary text-primary-foreground hover:bg-primary/90">Click me</button>
+
+// Secondary button
+<button className="bg-secondary text-secondary-foreground hover:bg-secondary/80">Cancel</button>
+
+// Card
+<div className="bg-card text-card-foreground border-border rounded-lg">
+ <h2>Title</h2>
+ <p className="text-muted-foreground">Description</p>
+</div>
+
+// Input
+<input className="bg-background text-foreground border-input focus:ring-ring" />
+```
+
+---
+
## Common Adjustments
- **Too vibrant at light shades**: Reduce saturation by 10-20%
- **Poor contrast on primary**: Use shade 700+ for text
- **Dark mode too dark**: Use shade 900 instead of 950 for backgrounds
- **Brand colour too light/dark**: Adjust to shade 500-600 range
+- **Dark mode looks washed out**: Use shade 500 for primary (brighter than light mode's 600)
+- **Pure white text too harsh in dark mode**: Use shade 50 (off-white) instead
+- **Dark mode muted text fails contrast**: Use more extreme shades (300 on 900 instead of 400 on 800)
+
+### Brand Identity Adjustments
+
+- **Conservative brands** (finance, law): Use primary-700 for buttons, reduce saturation in light shades
+- **Vibrant brands** (creative, tech): Use primary-500-600, keep full saturation
+- **Minimal brands** (design, architecture): Use primary sparingly, emphasise muted tones, subtle borders (primary-100)
+
+---
+
+## Verification Checklist
+
+- [ ] Body text: >=4.5:1 (normal) or >=3:1 (large)
+- [ ] Primary button text: >=4.5:1
+- [ ] Secondary button text: >=4.5:1
+- [ ] Muted text: >=4.5:1
+- [ ] Links: >=4.5:1 (or underlined)
+- [ ] UI elements (borders): >=3:1
+- [ ] Focus indicators: >=3:1
+- [ ] Error text: >=4.5:1
+- [ ] Dark mode: All above checks pass
+- [ ] Every background has a foreground pair
+- [ ] Brand colour recognisable in both modes
+- [ ] Borders visible but not harsh
+- [ ] Cards/sections have clear boundaries
+
+**Test both modes before shipping.**
+
+---
-## Reference Files
+## Optional References
-| File | Purpose |
-|------|---------|
-| `references/shade-generation.md` | Hex to HSL conversion, lightness values |
-| `references/semantic-mapping.md` | Token mapping for light/dark modes |
-| `references/dark-mode-palette.md` | Inversion patterns |
-| `references/contrast-checking.md` | WCAG formulas, quick check table |
-| `assets/tailwind-colors.css` | Complete CSS output template |
+- **Online contrast checkers**: WebAIM (webaim.org/resources/contrastchecker), Coolors (coolors.co/contrast-checker), Accessible Colors (accessible-colors.com)
+- **CI/CD contrast tests**: Use `getContrastRatio()` in test suites to assert minimum ratios for all token pairs
+- **Transparent/gradient edge cases**: For colours with opacity, calculate against final rendered colour. For gradients, check both endpoints.
+- **OLED dark mode**: Use `@media (prefers-contrast: high)` with `#000000` background for battery savings on AMOLED screens
+- **Multi-colour palettes**: Generate separate shade scales for each brand colour, map to different semantic roles (primary, accent)
+- **Palette visualisation tools**: coolors.co, paletton.com, Figma swatches
+- `assets/tailwind-colors.css` — Complete CSS output template
diff --git a/plugins/design-assets/skills/color-palette/references/contrast-checking.md b/plugins/design-assets/skills/color-palette/references/contrast-checking.md
deleted file mode 100644
index b9d45ef5..00000000
--- a/plugins/design-assets/skills/color-palette/references/contrast-checking.md
+++ /dev/null
@@ -1,339 +0,0 @@
-# Contrast Checking Reference
-
-WCAG contrast ratio formulas and verification methods for accessible color palettes.
-
----
-
-## WCAG Standards
-
-### Minimum Contrast Ratios
-
-| Content Type | AA | AAA |
-|--------------|-----|-----|
-| **Normal text** (<18px or <14px bold) | 4.5:1 | 7:1 |
-| **Large text** (≥18px or ≥14px bold) | 3:1 | 4.5:1 |
-| **UI components** (buttons, borders) | 3:1 | Not defined |
-| **Graphical objects** (icons, charts) | 3:1 | Not defined |
-
-**Target**: AA for most projects, AAA for high-accessibility needs (government, healthcare).
-
----
-
-## Relative Luminance Formula
-
-Calculate relative luminance for each color:
-
-```javascript
-function getLuminance(hex) {
- // Convert hex to RGB
- hex = hex.replace(/^#/, '');
- const r = parseInt(hex.substring(0, 2), 16) / 255;
- const g = parseInt(hex.substring(2, 4), 16) / 255;
- const b = parseInt(hex.substring(4, 6), 16) / 255;
-
- // Apply gamma correction
- const rsRGB = r <= 0.03928 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
- const gsRGB = g <= 0.03928 ? g / 12.92 : Math.pow((g + 0.055) / 1.055, 2.4);
- const bsRGB = b <= 0.03928 ? b / 12.92 : Math.pow((b + 0.055) / 1.055, 2.4);
-
- // Calculate luminance
- return 0.2126 * rsRGB + 0.7152 * gsRGB + 0.0722 * bsRGB;
-}
-```
-
-**Output**: Value between 0 (black) and 1 (white).
-
-**Examples**:
-- `#FFFFFF` (white) → 1.0
-- `#000000` (black) → 0.0
-- `#14B8A6` (teal-500) → 0.42
-
----
-
-## Contrast Ratio Formula
-
-```javascript
-function getContrastRatio(hex1, hex2) {
- const lum1 = getLuminance(hex1);
- const lum2 = getLuminance(hex2);
-
- const lighter = Math.max(lum1, lum2);
- const darker = Math.min(lum1, lum2);
-
- return (lighter + 0.05) / (darker + 0.05);
-}
-```
-
-**Example**:
-```javascript
-getContrastRatio('#FFFFFF', '#0D9488'); // White text on teal-600
-// → 4.56:1 (passes AA for normal text)
-```
-
----
-
-## Quick Check Table
-
-Approximate contrast ratios for common shade pairs (teal palette):
-
-### Light Mode
-
-| Foreground | Background | Ratio | Pass AA? | Use Case |
-|------------|------------|-------|----------|----------|
-| 950 | white | 18.5:1 | ✅ AAA | Body text |
-| 900 | white | 14.2:1 | ✅ AAA | Card text |
-| 800 | white | 10.8:1 | ✅ AAA | Strong text |
-| 700 | white | 8.1:1 | ✅ AAA | Text |
-| 600 | white | 5.7:1 | ✅ AA | Text, buttons |
-| 500 | white | 3.9:1 | ❌ Fail | Too light for text |
-| 400 | white | 2.8:1 | ❌ Fail | UI only |
-| white | 600 | 5.7:1 | ✅ AA | Button text |
-| white | 700 | 8.1:1 | ✅ AAA | Button text |
-| 600 | 50 | 5.4:1 | ✅ AA | Muted section text |
-
-### Dark Mode
-
-| Foreground | Background | Ratio | Pass AA? | Use Case |
-|------------|------------|-------|----------|----------|
-| 50 | 950 | 18.5:1 | ✅ AAA | Body text |
-| 50 | 900 | 14.2:1 | ✅ AAA | Card text |
-| 100 | 950 | 16.8:1 | ✅ AAA | Text |
-| 400 | 950 | 8.2:1 | ✅ AAA | Muted text |
-| 400 | 900 | 6.3:1 | ✅ AA | Muted text |
-| white | 500 | 3.9:1 | ❌ Fail | Too bright |
-| white | 600 | 5.7:1 | ✅ AA | Button text |
-| white | 700 | 8.1:1 | ✅ AAA | Button text |
-
-**Pattern**: Darker shades (700+) work for text on light backgrounds. Lighter shades (50-100) work on dark backgrounds.
-
----
-
-## Common Pairs to Check
-
-### Essential Checks
-
-1. **Body text**: `foreground` on `background`
- - Light: 950 on white → 18.5:1 ✅
- - Dark: 50 on 950 → 18.5:1 ✅
-
-2. **Primary button text**: `primary-foreground` on `primary`
- - Light: white on 600 → 5.7:1 ✅
- - Dark: white on 500 → 3.9:1 ⚠️ (borderline)
-
-3. **Muted text**: `muted-foreground` on `muted`
- - Light: 600 on 50 → 5.4:1 ✅
- - Dark: 400 on 800 → 4.1:1 ❌ (fails AA)
-
-4. **Card text**: `card-foreground` on `card`
- - Light: 900 on white → 14.2:1 ✅
- - Dark: 50 on 900 → 14.2:1 ✅
-
-5. **Border contrast**: `border` on `background`
- - Light: 200 on white → 2.4:1 ❌ (UI only, no text)
- - Dark: 800 on 950 → 1.9:1 ❌ (subtle, acceptable for borders)
-
----
-
-## Fixing Poor Contrast
-
-### Problem: Text on Primary Button Fails
-
-**Symptom**: White text on teal-500 = 3.9:1 (fails AA 4.5:1).
-
-**Fix 1**: Use darker shade for primary button.
-```css
-/* Instead of shade 500 */
---color-primary: var(--color-primary-600); /* Darker, 5.7:1 contrast */
-```
-
-**Fix 2**: Use dark text instead of white.
-```css
---color-primary-foreground: var(--color-primary-950); /* Dark text */
-```
-
-**Trade-off**: Fix 1 preserves white text (more common pattern).
-
----
-
-### Problem: Muted Text Too Light
-
-**Symptom**: primary-400 on primary-800 = 4.1:1 (fails AA 4.5:1).
-
-**Fix**: Use more extreme shades.
-```css
-.dark {
- --color-muted: var(--color-primary-900); /* Darker background */
- --color-muted-foreground: var(--color-primary-300); /* Brighter text */
-}
-```
-
-**Result**: 300 on 900 = 6.8:1 ✅
-
----
-
-### Problem: Links Hard to See
-
-**Symptom**: primary-500 text on white = 3.9:1 (fails AA).
-
-**Fix 1**: Darken link color.
-```css
-a { color: var(--color-primary-700); } /* 8.1:1 ✅ */
-```
-
-**Fix 2**: Add underline (doesn't rely on color alone).
-```css
-a { text-decoration: underline; color: var(--color-primary-500); }
-```
-
-**Best practice**: Combine color + underline for accessibility.
-
----
-
-## Lightness vs Contrast Quick Reference
-
-Approximate contrast ratios by lightness difference:
-
-| Lightness Difference | Contrast Ratio | Pass AA? |
-|----------------------|----------------|----------|
-| 10% → 90% | ~12:1 | ✅ AAA |
-| 10% → 80% | ~9:1 | ✅ AAA |
-| 10% → 70% | ~7:1 | ✅ AAA |
-| 10% → 60% | ~5.5:1 | ✅ AA |
-| 10% → 50% | ~4.2:1 | ❌ Borderline |
-| 20% → 90% | ~9:1 | ✅ AAA |
-| 30% → 90% | ~7:1 | ✅ AAA |
-| 40% → 90% | ~5.5:1 | ✅ AA |
-| 50% → 90% | ~4.2:1 | ❌ Borderline |
-
-**Rule of thumb**: For text, aim for 50%+ lightness difference (e.g., 10% background + 60%+ foreground).
-
----
-
-## Online Tools
-
-Use these for quick verification:
-
-1. **WebAIM Contrast Checker**: https://webaim.org/resources/contrastchecker/
- - Input two hex colors
- - Shows AA/AAA pass/fail
-
-2. **Coolors Contrast Checker**: https://coolors.co/contrast-checker
- - Visual interface
- - Suggests fixes
-
-3. **Accessible Colors**: https://accessible-colors.com
- - Auto-generates accessible variants
-
-4. **Browser DevTools**:
- - Chrome: Inspect element → Styles → Click color swatch → Shows contrast ratio
- - Firefox: Similar built-in checker
-
----
-
-## Automated Checks
-
-### JavaScript Function
-
-```javascript
-function checkAccessibility(foreground, background, textSize = 'normal') {
- const ratio = getContrastRatio(foreground, background);
- const minRatio = textSize === 'large' ? 3 : 4.5;
-
- return {
- ratio: ratio.toFixed(2),
- passAA: ratio >= minRatio,
- passAAA: ratio >= (textSize === 'large' ? 4.5 : 7),
- };
-}
-
-// Usage
-const result = checkAccessibility('#0D9488', '#FFFFFF', 'normal');
-console.log(result); // { ratio: "5.70", passAA: true, passAAA: false }
-```
-
-### CI/CD Integration
-
-```javascript
-// In test suite
-describe('Color Palette Accessibility', () => {
- test('body text passes AA', () => {
- const ratio = getContrastRatio(
- tokens['color-foreground'],
- tokens['color-background']
- );
- expect(ratio).toBeGreaterThanOrEqual(4.5);
- });
-
- test('primary button text passes AA', () => {
- const ratio = getContrastRatio(
- tokens['color-primary-foreground'],
- tokens['color-primary']
- );
- expect(ratio).toBeGreaterThanOrEqual(4.5);
- });
-});
-```
-
----
-
-## Edge Cases
-
-### 1. Transparent Backgrounds
-
-For colors with opacity, calculate against final rendered color:
-
-```javascript
-// If primary-600 at 50% opacity on white background
-const foreground = '#0D9488';
-const backgroundFinal = blendColors('#0D9488', '#FFFFFF', 0.5); // Helper function
-const ratio = getContrastRatio('#FFFFFF', backgroundFinal);
-```
-
-### 2. Gradients
-
-Check both endpoints:
-```javascript
-const gradient = 'linear-gradient(to right, #14B8A6, #0D9488)';
-// Check: white text on #14B8A6 AND white text on #0D9488
-```
-
-### 3. Overlays
-
-Text on images/videos needs high contrast (prefer 7:1+) or text shadows/backgrounds.
-
-```css
-/* Add semi-opaque background behind text */
-.hero-text {
- background: rgba(0, 0, 0, 0.6);
- color: white; /* Now 7:1+ on darkened background */
-}
-```
-
----
-
-## Verification Checklist
-
-- [ ] Body text: ≥4.5:1 (normal) or ≥3:1 (large)
-- [ ] Primary button text: ≥4.5:1
-- [ ] Secondary button text: ≥4.5:1
-- [ ] Muted text: ≥4.5:1
-- [ ] Links: ≥4.5:1 (or underlined)
-- [ ] UI elements (borders): ≥3:1
-- [ ] Focus indicators: ≥3:1
-- [ ] Error text: ≥4.5:1
-- [ ] Dark mode: All above checks pass
-
-**Test both modes** before shipping.
-
----
-
-## Summary
-
-1. **Calculate luminance** for each color
-2. **Calculate contrast ratio** = (lighter + 0.05) / (darker + 0.05)
-3. **Compare to WCAG minimums** (4.5:1 text, 3:1 UI)
-4. **Fix failures** by adjusting shades (darker foreground or lighter background)
-5. **Verify with online tools** (WebAIM, Coolors)
-6. **Test in both light and dark modes**
-
-**Prioritize readability over brand purity** - accessible colors build trust and expand reach.
diff --git a/plugins/design-assets/skills/color-palette/references/dark-mode-palette.md b/plugins/design-assets/skills/color-palette/references/dark-mode-palette.md
deleted file mode 100644
index 2315dd16..00000000
--- a/plugins/design-assets/skills/color-palette/references/dark-mode-palette.md
+++ /dev/null
@@ -1,365 +0,0 @@
-# Dark Mode Palette Reference
-
-Patterns for creating dark mode color palettes that preserve brand identity while ensuring readability.
-
----
-
-## Inversion Pattern
-
-Dark mode inverts lightness while preserving hue and saturation.
-
-### Shade Mapping
-
-| Light Mode Shade | Dark Mode Shade | Lightness Swap |
-|------------------|-----------------|----------------|
-| 50 (97% L) | 950 (10% L) | Backgrounds |
-| 100 (94% L) | 900 (20% L) | Subtle backgrounds |
-| 200 (87% L) | 800 (27% L) | Borders |
-| 300 (75% L) | 700 (33% L) | Disabled states |
-| 400 (62% L) | 600 (40% L) | Muted text |
-| 500 (48% L) | **500 (slightly brighter)** | Brand color baseline |
-| 600 (40% L) | 400 (62% L) | Primary actions |
-| 700 (33% L) | 300 (75% L) | Rarely used |
-| 800 (27% L) | 200 (87% L) | Rarely used |
-| 900 (20% L) | 100 (94% L) | Card backgrounds |
-| 950 (10% L) | 50 (97% L) | Text color |
-
-**Key principle**: Swap extremes (50↔950), preserve middle (500 stays near 500).
-
----
-
-## CSS Implementation
-
-### Method 1: Override Variables in .dark
-
-```css
-@theme {
- /* Light mode (default) */
- --color-background: #FFFFFF;
- --color-foreground: var(--color-primary-950);
- --color-card: #FFFFFF;
- --color-card-foreground: var(--color-primary-900);
- --color-primary: var(--color-primary-600);
- --color-border: var(--color-primary-200);
-}
-
-.dark {
- /* Dark mode overrides */
- --color-background: var(--color-primary-950);
- --color-foreground: var(--color-primary-50);
- --color-card: var(--color-primary-900);
- --color-card-foreground: var(--color-primary-50);
- --color-primary: var(--color-primary-500);
- --color-border: var(--color-primary-800);
-}
-```
-
-**Advantage**: Single source of truth, easy to maintain.
-
-### Method 2: Separate Light/Dark Scale
-
-```css
-@theme {
- /* Light mode shades */
- --color-primary-50-light: #F0FDFA;
- --color-primary-950-light: #042F2E;
-
- /* Dark mode shades (inverted) */
- --color-primary-50-dark: #042F2E;
- --color-primary-950-dark: #F0FDFA;
-
- /* Active colors (default: light) */
- --color-background: var(--color-primary-50-light);
- --color-foreground: var(--color-primary-950-light);
-}
-
-.dark {
- --color-background: var(--color-primary-950-dark);
- --color-foreground: var(--color-primary-50-dark);
-}
-```
-
-**Advantage**: More explicit, easier to visualize inversion.
-
-**Recommendation**: Use Method 1 (simpler, standard pattern).
-
----
-
-## Preserving Brand Identity
-
-### Problem: Dark Mode Looks Washed Out
-
-**Symptom**: Brand color (primary) loses vibrancy in dark mode.
-
-**Causes**:
-- Using same shade as light mode (too dark against dark background)
-- Over-brightening (shade 300-400 looks neon)
-
-**Fix**: Use shade 500 for dark mode primary (slightly brighter than shade 600 used in light).
-
-```css
-/* Light mode */
---color-primary: var(--color-primary-600); /* #0D9488 - darker for contrast on white */
-
-/* Dark mode */
-.dark {
- --color-primary: var(--color-primary-500); /* #14B8A6 - brighter for visibility */
-}
-```
-
-**Result**: Brand color looks consistent between modes.
-
----
-
-### Problem: Dark Mode Too Dark
-
-**Symptom**: UI feels like a black hole, elements hard to distinguish.
-
-**Fix**: Use shade 900 for backgrounds instead of 950.
-
-```css
-.dark {
- /* Too dark - low contrast between elements */
- --color-background: var(--color-primary-950); /* #042F2E */
-
- /* Better - more visible structure */
- --color-background: var(--color-primary-900); /* #134E4A */
-}
-```
-
-**Trade-off**: Less contrast with pure black, but better visual hierarchy.
-
----
-
-### Problem: Text Hard to Read
-
-**Symptom**: Foreground text on dark background strains eyes.
-
-**Causes**:
-- Pure white text (`#FFFFFF`) - too harsh
-- Wrong shade (900 instead of 50)
-
-**Fix**: Use shade 50 (off-white) for dark mode text.
-
-```css
-.dark {
- /* Too harsh - pure white */
- --color-foreground: #FFFFFF;
-
- /* Better - off-white, easier on eyes */
- --color-foreground: var(--color-primary-50); /* #F0FDFA */
-}
-```
-
-**Tip**: Reduce text opacity further for secondary text:
-```tsx
-<p className="text-foreground/80">Secondary text</p>
-```
-
----
-
-## Elevation in Dark Mode
-
-Lighter colors = higher elevation (opposite of light mode).
-
-### Light Mode Elevation
-```
-Shadows = darkness
-Lower layers darker than higher layers
-```
-
-### Dark Mode Elevation
-```
-No shadows (or subtle)
-Higher layers LIGHTER than lower layers
-```
-
-### Implementation
-
-```css
-.dark {
- /* Base layer (lowest) */
- --color-background: var(--color-primary-950); /* Darkest */
-
- /* Card layer (elevated) */
- --color-card: var(--color-primary-900); /* Slightly lighter */
-
- /* Popover layer (highest) */
- --color-popover: var(--color-primary-850); /* Even lighter */
-}
-```
-
-**Note**: You may need to generate intermediate shades (850, 875) for fine-grained elevation.
-
----
-
-## Borders and Dividers
-
-Borders need higher contrast in dark mode.
-
-### Light Mode
-```css
---color-border: var(--color-primary-200); /* 87% lightness - subtle */
-```
-
-### Dark Mode
-```css
-.dark {
- --color-border: var(--color-primary-800); /* 27% lightness - visible */
-}
-```
-
-**Guideline**: Dark mode borders should be ~10-15% lighter than background.
-
-**Example**:
-- Background: 950 (10% L)
-- Border: 800 (27% L)
-- Difference: 17% ✓
-
----
-
-## Muted/Secondary Content
-
-### Light Mode
-```css
---color-muted: var(--color-primary-50); /* Very light background */
---color-muted-foreground: var(--color-primary-600); /* Darker text */
-```
-
-### Dark Mode
-```css
-.dark {
- --color-muted: var(--color-primary-800); /* Darker background (elevated) */
- --color-muted-foreground: var(--color-primary-400); /* Brighter text */
-}
-```
-
-**Pattern**: Muted background is darker than page background (inverted), text is brighter for readability.
-
----
-
-## Testing Dark Mode
-
-### Visual Checklist
-- [ ] Brand color recognizable
-- [ ] Text readable without eye strain
-- [ ] Borders visible but not harsh
-- [ ] Buttons stand out clearly
-- [ ] Focus rings obvious
-- [ ] Cards/sections have clear boundaries
-- [ ] No pure black or pure white (use shades)
-
-### Automated Tests
-```javascript
-// Check contrast ratios
-const backgroundL = 10; // shade 950
-const foregroundL = 97; // shade 50
-const contrast = (97 + 0.05) / (10 + 0.05); // Should be > 4.5:1
-
-// Check for pure colors
-if (background === '#000000') console.warn('Pure black used');
-if (foreground === '#FFFFFF') console.warn('Pure white used');
-```
-
----
-
-## Common Dark Mode Mistakes
-
-### 1. Direct Inversion (Wrong)
-```css
-/* ❌ This breaks contrast */
-.dark {
- --color-background: var(--color-primary-50); /* Was light, now TOO light */
- --color-foreground: var(--color-primary-950); /* Was dark, now invisible */
-}
-```
-
-**Fix**: Invert semantic mapping, not variable names.
-
-### 2. Same Primary Shade
-```css
-/* ❌ Primary-600 too dark on dark background */
-.dark {
- --color-primary: var(--color-primary-600);
-}
-```
-
-**Fix**: Use brighter shade (500) in dark mode.
-
-### 3. Forgetting Pairs
-```css
-/* ❌ Changed background but not foreground */
-.dark {
- --color-card: var(--color-primary-900);
- /* Missing: --color-card-foreground override */
-}
-```
-
-**Fix**: Always update foreground when changing background.
-
-### 4. Pure Black Backgrounds
-```css
-/* ❌ Pure black shows OLED smearing, no elevation */
-.dark {
- --color-background: #000000;
-}
-```
-
-**Fix**: Use shade 950 or 900 (off-black).
-
----
-
-## Advanced: OLED Dark Mode
-
-For AMOLED/OLED screens, pure black saves battery.
-
-```css
-@media (prefers-contrast: high) {
- .dark {
- --color-background: #000000; /* Pure black on OLED */
- --color-card: var(--color-primary-950); /* Slight elevation */
- }
-}
-```
-
-**Trade-off**: Better battery life, but less elevation hierarchy.
-
----
-
-## Example: Complete Light/Dark Palette
-
-```css
-@theme {
- /* Shade scale (same in both modes) */
- --color-primary-50: #F0FDFA;
- --color-primary-500: #14B8A6;
- --color-primary-600: #0D9488;
- --color-primary-800: #115E59;
- --color-primary-900: #134E4A;
- --color-primary-950: #042F2E;
-
- /* Light mode */
- --color-background: #FFFFFF;
- --color-foreground: var(--color-primary-950);
- --color-card: #FFFFFF;
- --color-card-foreground: var(--color-primary-900);
- --color-primary: var(--color-primary-600);
- --color-border: var(--color-primary-200);
- --color-muted: var(--color-primary-50);
- --color-muted-foreground: var(--color-primary-600);
-}
-
-.dark {
- /* Dark mode overrides */
- --color-background: var(--color-primary-950);
- --color-foreground: var(--color-primary-50);
- --color-card: var(--color-primary-900);
- --color-card-foreground: var(--color-primary-50);
- --color-primary: var(--color-primary-500); /* Brighter */
- --color-border: var(--color-primary-800);
- --color-muted: var(--color-primary-800);
- --color-muted-foreground: var(--color-primary-400); /* Brighter */
-}
-```
-
-**Result**: Consistent brand identity, readable in both modes, proper contrast.
diff --git a/plugins/design-assets/skills/color-palette/references/semantic-mapping.md b/plugins/design-assets/skills/color-palette/references/semantic-mapping.md
deleted file mode 100644
index fd959041..00000000
--- a/plugins/design-assets/skills/color-palette/references/semantic-mapping.md
+++ /dev/null
@@ -1,304 +0,0 @@
-# Semantic Token Mapping Reference
-
-Map shade scale to semantic tokens for components and UI patterns.
-
----
-
-## Core Semantic Tokens
-
-### Light Mode
-
-| Token | Shade | Hex (Teal example) | Use Case |
-|-------|-------|--------------------|----------|
-| `background` | white | `#FFFFFF` | Page/card backgrounds |
-| `foreground` | 950 | `#042F2E` | Body text |
-| `card` | white | `#FFFFFF` | Card backgrounds |
-| `card-foreground` | 900 | `#134E4A` | Card text |
-| `popover` | white | `#FFFFFF` | Dropdown/tooltip backgrounds |
-| `popover-foreground` | 950 | `#042F2E` | Dropdown text |
-| `primary` | 600 | `#0D9488` | Primary buttons, links |
-| `primary-foreground` | white | `#FFFFFF` | Text on primary buttons |
-| `secondary` | 100 | `#CCFBF1` | Secondary buttons |
-| `secondary-foreground` | 900 | `#134E4A` | Text on secondary buttons |
-| `muted` | 50 | `#F0FDFA` | Disabled backgrounds, subtle sections |
-| `muted-foreground` | 600 | `#0D9488` | Muted text, captions |
-| `accent` | 100 | `#CCFBF1` | Hover states, subtle highlights |
-| `accent-foreground` | 900 | `#134E4A` | Text on accent backgrounds |
-| `destructive` | red-600 | `#DC2626` | Delete buttons, errors |
-| `destructive-foreground` | white | `#FFFFFF` | Text on destructive buttons |
-| `border` | 200 | `#99F6E4` | Input borders, dividers |
-| `input` | 200 | `#99F6E4` | Input field borders |
-| `ring` | 600 | `#0D9488` | Focus rings |
-
-### Dark Mode
-
-| Token | Shade | Hex (Teal example) | Use Case |
-|-------|-------|--------------------|----------|
-| `background` | 950 | `#042F2E` | Page/card backgrounds |
-| `foreground` | 50 | `#F0FDFA` | Body text |
-| `card` | 900 | `#134E4A` | Card backgrounds |
-| `card-foreground` | 50 | `#F0FDFA` | Card text |
-| `popover` | 900 | `#134E4A` | Dropdown backgrounds |
-| `popover-foreground` | 50 | `#F0FDFA` | Dropdown text |
-| `primary` | 500 | `#14B8A6` | Primary buttons (brighter in dark) |
-| `primary-foreground` | white | `#FFFFFF` | Text on primary buttons |
-| `secondary` | 800 | `#115E59` | Secondary buttons |
-| `secondary-foreground` | 50 | `#F0FDFA` | Text on secondary buttons |
-| `muted` | 800 | `#115E59` | Disabled backgrounds |
-| `muted-foreground` | 400 | `#2DD4BF` | Muted text |
-| `accent` | 800 | `#115E59` | Hover states |
-| `accent-foreground` | 50 | `#F0FDFA` | Text on accent backgrounds |
-| `destructive` | red-500 | `#EF4444` | Delete buttons (brighter) |
-| `destructive-foreground` | white | `#FFFFFF` | Text on destructive |
-| `border` | 800 | `#115E59` | Borders |
-| `input` | 800 | `#115E59` | Input borders |
-| `ring` | 500 | `#14B8A6` | Focus rings |
-
----
-
-## CSS Output Template (Tailwind v4 @theme)
-
-```css
-@import "tailwindcss";
-
-@theme {
- /* Shade scale */
- --color-primary-50: #F0FDFA;
- --color-primary-100: #CCFBF1;
- --color-primary-200: #99F6E4;
- --color-primary-300: #5EEAD4;
- --color-primary-400: #2DD4BF;
- --color-primary-500: #14B8A6;
- --color-primary-600: #0D9488;
- --color-primary-700: #0F766E;
- --color-primary-800: #115E59;
- --color-primary-900: #134E4A;
- --color-primary-950: #042F2E;
-
- /* Light mode semantic tokens */
- --color-background: #FFFFFF;
- --color-foreground: var(--color-primary-950);
-
- --color-card: #FFFFFF;
- --color-card-foreground: var(--color-primary-900);
-
- --color-popover: #FFFFFF;
- --color-popover-foreground: var(--color-primary-950);
-
- --color-primary: var(--color-primary-600);
- --color-primary-foreground: #FFFFFF;
-
- --color-secondary: var(--color-primary-100);
- --color-secondary-foreground: var(--color-primary-900);
-
- --color-muted: var(--color-primary-50);
- --color-muted-foreground: var(--color-primary-600);
-
- --color-accent: var(--color-primary-100);
- --color-accent-foreground: var(--color-primary-900);
-
- --color-destructive: #DC2626;
- --color-destructive-foreground: #FFFFFF;
-
- --color-border: var(--color-primary-200);
- --color-input: var(--color-primary-200);
- --color-ring: var(--color-primary-600);
-
- --radius: 0.5rem;
-}
-
-/* Dark mode overrides */
-.dark {
- --color-background: var(--color-primary-950);
- --color-foreground: var(--color-primary-50);
-
- --color-card: var(--color-primary-900);
- --color-card-foreground: var(--color-primary-50);
-
- --color-popover: var(--color-primary-900);
- --color-popover-foreground: var(--color-primary-50);
-
- --color-primary: var(--color-primary-500);
- --color-primary-foreground: #FFFFFF;
-
- --color-secondary: var(--color-primary-800);
- --color-secondary-foreground: var(--color-primary-50);
-
- --color-muted: var(--color-primary-800);
- --color-muted-foreground: var(--color-primary-400);
-
- --color-accent: var(--color-primary-800);
- --color-accent-foreground: var(--color-primary-50);
-
- --color-destructive: #EF4444;
- --color-destructive-foreground: #FFFFFF;
-
- --color-border: var(--color-primary-800);
- --color-input: var(--color-primary-800);
- --color-ring: var(--color-primary-500);
-}
-```
-
----
-
-## Usage in Components
-
-### Buttons
-
-```tsx
-// Primary button
-<button className="bg-primary text-primary-foreground hover:bg-primary/90">
- Click me
-</button>
-
-// Secondary button
-<button className="bg-secondary text-secondary-foreground hover:bg-secondary/80">
- Cancel
-</button>
-
-// Destructive button
-<button className="bg-destructive text-destructive-foreground hover:bg-destructive/90">
- Delete
-</button>
-```
-
-### Cards
-
-```tsx
-<div className="bg-card text-card-foreground border-border rounded-lg">
- <h2>Card Title</h2>
- <p className="text-muted-foreground">Card description</p>
-</div>
-```
-
-### Inputs
-
-```tsx
-<input
- className="bg-background text-foreground border-input focus:ring-ring"
- placeholder="Enter text"
-/>
-```
-
-### Muted Text
-
-```tsx
-<p className="text-muted-foreground">
- This is secondary/helper text
-</p>
-```
-
----
-
-## Token Pairing Rules
-
-**CRITICAL**: Every background token MUST have a paired foreground token.
-
-| Background | Foreground | Why |
-|------------|------------|-----|
-| `background` | `foreground` | Main page text |
-| `card` | `card-foreground` | Card text readability |
-| `popover` | `popover-foreground` | Dropdown text |
-| `primary` | `primary-foreground` | Button text contrast |
-| `secondary` | `secondary-foreground` | Secondary button contrast |
-| `muted` | `muted-foreground` | Muted section text |
-| `accent` | `accent-foreground` | Accent section text |
-| `destructive` | `destructive-foreground` | Error button text |
-
-**Never** use a background token without its foreground pair, or dark mode will break.
-
----
-
-## Primary Color Usage
-
-The `primary` color is your brand identity. Use it for:
-
-### Primary Actions
-- Call-to-action buttons
-- Primary navigation links
-- Active states
-- Selected items
-- Progress indicators
-
-### Focus States
-- Focus rings on inputs
-- Keyboard navigation highlights
-- Active form fields
-
-### Brand Elements
-- Logos (when appropriate)
-- Brand-colored sections
-- Accent text for emphasis
-- Icons for primary actions
-
-**Avoid overuse**: Too much primary color dilutes brand impact. Use sparingly for important UI elements.
-
----
-
-## Adjusting for Brand Identity
-
-### Conservative Brands (Finance, Law, Healthcare)
-- Use darker primary shade (700) for buttons
-- Reduce saturation in light shades (50-300)
-- Prefer muted over accent
-- More neutral grays
-
-```css
---color-primary: var(--color-primary-700); /* Darker, more serious */
-```
-
-### Vibrant Brands (Creative, Tech, Entertainment)
-- Use brighter primary shade (500-600)
-- Keep full saturation
-- Use accent more liberally
-- Bold contrast ratios
-
-```css
---color-primary: var(--color-primary-500); /* Bright and energetic */
-```
-
-### Minimal Brands (Design, Architecture)
-- Use primary sparingly
-- Emphasize muted and neutral tones
-- Subtle borders (primary-100 instead of 200)
-- Larger white space
-
-```css
---color-border: var(--color-primary-100); /* Barely visible borders */
-```
-
----
-
-## Multi-Color Palettes
-
-For designs with multiple brand colors:
-
-```css
-@theme {
- /* Primary (brand color) */
- --color-primary-*: /* teal shades */
-
- /* Accent (complementary) */
- --color-accent-50: #FFF7ED;
- --color-accent-600: #EA580C; /* Orange */
- --color-accent-950: #431407;
-
- /* Use accent for secondary CTAs, highlights */
-}
-```
-
-**Pattern**: Generate separate shade scales for each brand color, map to different semantic roles.
-
----
-
-## Verification Checklist
-
-- [ ] Every background has a foreground pair
-- [ ] Contrast meets WCAG AA (check with `references/contrast-checking.md`)
-- [ ] Light and dark modes are consistent (same token names)
-- [ ] Primary color is recognizable in both modes
-- [ ] Muted text is readable but not prominent
-- [ ] Borders are visible but not distracting
-- [ ] Focus rings stand out clearly
-
-**Test in both modes** before finalizing.
diff --git a/plugins/design-assets/skills/color-palette/references/shade-generation.md b/plugins/design-assets/skills/color-palette/references/shade-generation.md
deleted file mode 100644
index 266c561f..00000000
--- a/plugins/design-assets/skills/color-palette/references/shade-generation.md
+++ /dev/null
@@ -1,239 +0,0 @@
-# Shade Generation Reference
-
-Complete formulas and values for generating 11-shade color scales from a single brand hex.
-
----
-
-## Hex to HSL Conversion
-
-### Formula
-
-```javascript
-function hexToHSL(hex) {
- // Remove # if present
- hex = hex.replace(/^#/, '');
-
- // Convert to RGB
- const r = parseInt(hex.substring(0, 2), 16) / 255;
- const g = parseInt(hex.substring(2, 4), 16) / 255;
- const b = parseInt(hex.substring(4, 6), 16) / 255;
-
- // Find min/max
- const max = Math.max(r, g, b);
- const min = Math.min(r, g, b);
- const diff = max - min;
-
- // Calculate lightness
- let l = (max + min) / 2;
-
- // Calculate saturation
- let s = 0;
- if (diff !== 0) {
- s = l > 0.5
- ? diff / (2 - max - min)
- : diff / (max + min);
- }
-
- // Calculate hue
- let h = 0;
- if (diff !== 0) {
- if (max === r) {
- h = ((g - b) / diff + (g < b ? 6 : 0)) / 6;
- } else if (max === g) {
- h = ((b - r) / diff + 2) / 6;
- } else {
- h = ((r - g) / diff + 4) / 6;
- }
- }
-
- return {
- h: Math.round(h * 360),
- s: Math.round(s * 100),
- l: Math.round(l * 100)
- };
-}
-```
-
-### Examples
-
-| Hex | HSL |
-|-----|-----|
-| `#0D9488` (Teal) | `hsl(174, 84%, 29%)` |
-| `#7C3AED` (Purple) | `hsl(262, 83%, 58%)` |
-| `#EF4444` (Red) | `hsl(0, 84%, 60%)` |
-| `#3B82F6` (Blue) | `hsl(217, 91%, 60%)` |
-
----
-
-## Lightness Values for Shades
-
-Standard lightness percentages for each shade:
-
-| Shade | Lightness | Notes |
-|-------|-----------|-------|
-| **50** | 97% | Subtle backgrounds, very light |
-| **100** | 94% | Hover states on light backgrounds |
-| **200** | 87% | Borders, dividers, disabled backgrounds |
-| **300** | 75% | Disabled text, placeholder text (light mode) |
-| **400** | 62% | Muted text, secondary content |
-| **500** | 48% | **Brand color baseline** |
-| **600** | 40% | Primary buttons, links (often the brand color) |
-| **700** | 33% | Hover states on primary actions |
-| **800** | 27% | Active states, pressed buttons |
-| **900** | 20% | Text on light backgrounds, high contrast |
-| **950** | 10% | Darkest accents, dark mode backgrounds |
-
-**Key principle**: Shade 600 is typically the brand color. Shade 500 is slightly brighter for use as a base.
-
----
-
-## Saturation Adjustments
-
-Adjust saturation for natural-looking shades:
-
-| Shade Range | Adjustment | Reason |
-|-------------|------------|--------|
-| **50-200** | Reduce by 10-20% | Prevents overly vibrant pastels |
-| **300-400** | Reduce by 5-10% | More natural mid-tones |
-| **500-600** | Keep full saturation | Brand color identity |
-| **700-950** | Keep full saturation | Rich, deep colors |
-
-### Formula
-
-```javascript
-function adjustSaturation(baseSaturation, lightness) {
- if (lightness >= 87) {
- // Shades 50-200: Reduce significantly
- return baseSaturation * 0.8; // 20% reduction
- } else if (lightness >= 62) {
- // Shades 300-400: Reduce slightly
- return baseSaturation * 0.9; // 10% reduction
- }
- // Shades 500-950: Keep full saturation
- return baseSaturation;
-}
-```
-
----
-
-## Complete Scale Generator
-
-```javascript
-function generateShadeScale(brandHex) {
- const { h, s, l } = hexToHSL(brandHex);
-
- const shades = {
- 50: { l: 97, sMultiplier: 0.8 },
- 100: { l: 94, sMultiplier: 0.8 },
- 200: { l: 87, sMultiplier: 0.85 },
- 300: { l: 75, sMultiplier: 0.9 },
- 400: { l: 62, sMultiplier: 0.95 },
- 500: { l: 48, sMultiplier: 1.0 },
- 600: { l: 40, sMultiplier: 1.0 },
- 700: { l: 33, sMultiplier: 1.0 },
- 800: { l: 27, sMultiplier: 1.0 },
- 900: { l: 20, sMultiplier: 1.0 },
- 950: { l: 10, sMultiplier: 1.0 }
- };
-
- const result = {};
-
- for (const [shade, { l: lightness, sMultiplier }] of Object.entries(shades)) {
- const adjustedS = Math.round(s * sMultiplier);
- result[shade] = `hsl(${h}, ${adjustedS}%, ${lightness}%)`;
- }
-
- return result;
-}
-```
-
-### Example Output
-
-Input: `#0D9488`
-```javascript
-{
- 50: "hsl(174, 67%, 97%)", // #F0FDFA
- 100: "hsl(174, 67%, 94%)", // #CCFBF1
- 200: "hsl(174, 71%, 87%)", // #99F6E4
- 300: "hsl(174, 76%, 75%)", // #5EEAD4
- 400: "hsl(174, 80%, 62%)", // #2DD4BF
- 500: "hsl(174, 84%, 48%)", // #14B8A6
- 600: "hsl(174, 84%, 40%)", // #0D9488
- 700: "hsl(174, 84%, 33%)", // #0F766E
- 800: "hsl(174, 84%, 27%)", // #115E59
- 900: "hsl(174, 84%, 20%)", // #134E4A
- 950: "hsl(174, 84%, 10%)" // #042F2E
-}
-```
-
----
-
-## HSL to Hex Conversion
-
-Convert generated HSL back to hex for output:
-
-```javascript
-function hslToHex(h, s, l) {
- s = s / 100;
- l = l / 100;
-
- const c = (1 - Math.abs(2 * l - 1)) * s;
- const x = c * (1 - Math.abs((h / 60) % 2 - 1));
- const m = l - c / 2;
-
- let r = 0, g = 0, b = 0;
-
- if (h >= 0 && h < 60) {
- r = c; g = x; b = 0;
- } else if (h >= 60 && h < 120) {
- r = x; g = c; b = 0;
- } else if (h >= 120 && h < 180) {
- r = 0; g = c; b = x;
- } else if (h >= 180 && h < 240) {
- r = 0; g = x; b = c;
- } else if (h >= 240 && h < 300) {
- r = x; g = 0; b = c;
- } else if (h >= 300 && h < 360) {
- r = c; g = 0; b = x;
- }
-
- r = Math.round((r + m) * 255);
- g = Math.round((g + m) * 255);
- b = Math.round((b + m) * 255);
-
- return `#${r.toString(16).padStart(2, '0')}${g.toString(16).padStart(2, '0')}${b.toString(16).padStart(2, '0')}`.toUpperCase();
-}
-```
-
----
-
-## Quick Manual Method
-
-If you don't have access to code:
-
-1. **Find base HSL** using online converter (e.g., https://www.w3schools.com/colors/colors_converter.asp)
-2. **Keep hue constant** (the H value)
-3. **Apply lightness values** from table above
-4. **Adjust saturation** for lighter shades (reduce by 10-20%)
-5. **Convert back to hex** using online tool
-
-**Example**: Brand color `#7C3AED` → `hsl(262, 83%, 58%)`
-- Shade 50: `hsl(262, 66%, 97%)` → `#FAF5FF`
-- Shade 500: `hsl(262, 83%, 48%)` → `#A855F7`
-- Shade 950: `hsl(262, 83%, 10%)` → `#3B0764`
-
----
-
-## Verification
-
-Check your generated shades:
-- ✅ Shades should look like same color family
-- ✅ Progression should be smooth (no jumps)
-- ✅ Light shades (50-300) should be usable for backgrounds
-- ✅ Dark shades (700-950) should be usable for text
-- ✅ Brand color should be recognizable in shades 500-700
-
-**Tools for verification**:
-- https://coolors.co (paste hex colors to view palette)
-- https://paletton.com (visualize color relationships)
-- Figma/design tool (create swatches to preview)