Skip to content
Back to skills

Color Theming

ASecurity

Color theme selection and application for website branding. Use when user wants to change colors, theme, accent, branding, or visual style.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 27, 2026
designrust

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill color-theming --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Color Theming?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Color Theming
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-color-theming/badge)](https://www.skillsdirectory.com/skills/david-li0406-color-theming)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: color-theming
description: Color theme selection and application for website branding. Use when user wants to change colors, theme, accent, branding, or visual style.
allowed-tools: Read, Write, Edit, AskUserQuestion
---

# Color Theming

Help users select and apply color themes to their website.

## Available Themes

| Theme | Hex Code | Character |
|-------|----------|-----------|
| Blue | `#2563eb` | Professional, trustworthy, corporate |
| Purple | `#7c3aed` | Creative, innovative, artistic |
| Teal | `#0d9488` | Fresh, modern, tech-forward |
| Amber | `#d97706` | Warm, energetic, friendly |
| Rose | `#e11d48` | Bold, passionate, attention-grabbing |

## Workflow

### Step 1: Show Options

If user hasn't specified a color, use AskUserQuestion:

> "Which color theme would you like for your website?"
>
> - Blue (#2563eb) - Professional, trustworthy
> - Purple (#7c3aed) - Creative, innovative
> - Teal (#0d9488) - Fresh, modern
> - Amber (#d97706) - Warm, energetic
> - Rose (#e11d48) - Bold, passionate
> - Custom (provide hex code)

### Step 2: Validate Custom Colors

If user provides a custom hex code:

1. Verify it's a valid hex format (`#RRGGBB` or `#RGB`)
2. Check contrast ratio against dark background (`#0a0e14`):
   - Minimum 4.5:1 for WCAG AA compliance
   - Warn if contrast is insufficient

### Step 3: Apply Theme

Update `styles/variables.css`:

```css
:root {
    /* ... other variables ... */

    /* Accent - Updated by color-theming */
    --color-accent: {selected_color};
}
```

### Step 4: Preview

Suggest running preview:

> Color updated! Run `/preview` or `just serve` to see the changes.

## Color Accessibility

For dark backgrounds (`#0a0e14`), these colors meet WCAG AA:

| Color | Contrast Ratio | Status |
|-------|----------------|--------|
| Blue #2563eb | 4.6:1 | Pass |
| Purple #7c3aed | 4.8:1 | Pass |
| Teal #0d9488 | 4.5:1 | Pass |
| Amber #d97706 | 4.7:1 | Pass |
| Rose #e11d48 | 4.5:1 | Pass |

## Deriving Secondary Colors

For `--color-accent-secondary`, you can:
- Use a complementary hue (e.g., blue + purple)
- Use a lighter/darker variant of the primary
- Default: Keep as `#7c3aed` (purple) for most themes

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…