Skill library

Agent skill UI design

Daisyui Colors

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

  • Color

Install the skill

Installation method

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

npx skills@latest add https://github.com/saadeghi/daisyui/tree/master/skills/daisyui/colors --skill daisyui-colors --agent claude-code --yes

Check this file in your project.claude/skills/daisyui-colors/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/saadeghi/daisyui/tree/master/skills/daisyui/colors --skill daisyui-colors

    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. This walkthrough uses daisyUI v5 and Tailwind CSS v4. Check the project’s installed major versions first.

View operation manual

What this skill helps with

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

Good for

  • Palettes and themes
Exercise
Replace card colors with semantic daisyUI roles
Inputs
A component with hardcoded colors and its supported themes
Acceptance
Compare the component in [Active themes] with long text and focus. Measure the actual text and control contrast pairs and verify the color roles change with the active theme.
Skill name
daisyui-colors

Use the project’s actual versions and theme

Open-ended request

Add daisyUI to the whole project.

Major versions, plugin configuration and theme scope affect which classes and tokens work.

A scoped verification

  1. Replace card colors with semantic daisyUI roles
  2. A component with hardcoded colors and its supported themes

Daisyui Colors operation manual

Replace card colors with semantic daisyUI roles

A component with hardcoded colors and its supported themes

  1. Check the project setup

    A component with hardcoded colors and its supported themes

    Prompt · Step 1
    Load the daisyui-colors publisher Skill and read its instructions. Scope this to [Target project and component]. Inspect [Component] in the configured themes. Trace which hardcoded values represent surface, foreground, primary action or status. Check the project’s daisyUI v5 color rules.
  2. Apply the documented change

    Replace card colors with semantic daisyUI roles

    Prompt · Step 2
    Load the daisyui-colors publisher Skill and read its instructions. Scope this to [Target project and component]. Map the approved values to relevant roles such as base-100/base-content or primary/primary-content. Keep the intended hierarchy and document any role the existing themes lack.
  3. Build and exercise the component

    Compare the component in [Active themes] with long text and focus. Measure the actual text and control contrast pairs and verify the color roles change with the active theme.

    Prompt · Step 3
    Load the daisyui-colors publisher Skill and read its instructions. Scope this to [Target project and component]. Compare the component in [Active themes] with long text and focus. Measure the actual text and control contrast pairs and verify the color roles change with the active theme.

Look up a configuration issue

Check the configuration against what the project actually builds.

Check the CSS plugin entry@plugin
Command or reference
Tailwind CSS v4
Examples
@import "tailwindcss"; @plugin "daisyui";
Check the resulting componentBuild
Command or reference
Replace card colors with semantic daisyUI roles
Examples
Compare the component in [Active themes] with long text and focus. Measure the actual text and control contrast pairs and verify the color roles change with the active theme.

Troubleshooting and FAQ

What if a component class has no effect?

Check the loaded CSS entry, dependency majors, theme or prefix settings and whether the class exists in generated CSS.

How do I verify this task?

Compare the component in [Active themes] with long text and focus. Measure the actual text and control contrast pairs and verify the color roles change with the active theme.