Skill library

Agent skill UI design

Theming System

Work with color, contrast or theme choices for a web interface.

  • Color
  • Design systems
  • Design tokens

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add https://github.com/owl-listener/designer-skills/tree/main/design-systems/skills/theming-system --skill theming-system --agent claude-code --yes

Check this file in your project.claude/skills/theming-system/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/owl-listener/designer-skills/tree/main/design-systems/skills/theming-system --skill theming-system

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Bring two approved brand palettes, existing component tokens, runtime theme controls and available density modes.

View operation manual

What this skill helps with

  • Work with color, contrast or theme choices for a web interface.

Good for

  • Palettes and themes
Skill name
theming-system
Scenario
Support two brands in a right-sized token system
Deliverable
A three-layer theme map and a small verified matrix for components that share it.
Skill name
theming-system

Give the request a concrete task

A request with an unclear outcome

Fork every card and button into brand-specific copies.

Copies multiply maintenance and make changes to behavior and accessibility harder to propagate.

A workflow with observable results

  1. Map primitives, semantic roles, and component tokens
  2. Apply differences through semantic mappings
  3. Verify the brand and mode combinations

Theming System operation manual

Keep one component library and map brand, color mode, and density at the appropriate token layer.

Replace the bracketed details with your own project and target.

  1. Map primitives, semantic roles, and component tokens

    Find which values actually vary by brand, mode, and density.

    Prompt · Step 1
    Use theming-system to inspect [shared card and button, two brand themes]. Trace raw palette values, semantic aliases and component tokens from source to computed results. List which tokens are themeable, which are fixed and which are density-specific. Record mode and brand precedence and where runtime theme state is stored.
  2. Apply differences through semantic mappings

    Keep component behavior shared while changing the supported token layers.

    Prompt · Step 2
    Use theming-system to propose [theme mapping] for [shared component library]. Keep primitives, semantic aliases, and component tokens separate. Define theme-specific semantic overrides and keep component-level tokens only for real scoped needs. Reuse the project’s CSS custom properties, theme files or Figma variable conventions, and record how explicit choice interacts with OS preference. Show the minimal changes before writing shared configuration.
  3. Verify the brand and mode combinations

    Test the same component states in each supported combination.

    • Both brands render the same components through their own mappings.
    • Mode switching and any explicit preference resolve as designed.
    Prompt · Step 3
    Use theming-system to verify [approved mapping] for [shared card and button]. Inspect two brands across their supported light and dark modes and any density change in scope. Compare computed background, text and space tokens and look for unresolved variables. Exercise manual override, return to OS preference, and reload where persistence is supported. Record the matrix, exact states and any uncovered combinations.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

Components contain brand hardcodesReference
Command or reference
SKILL.md · Architecture
Examples
Route direct palette use through semantic roles before updating component tokens.
The OS preference overrides an explicit choiceReference
Command or reference
SKILL.md · Implementation
Examples
Inspect the runtime selector and confirm the project’s correct precedence.

Theming System troubleshooting

Is adapting a dark palette the same as architecting multiple themes?

Dark Mode Design owns color and surface adaptation. Theming System defines how one component library resolves values across supported combination modes.