Skill library

Agent skill Frontend

Daisyui Config

Build or refine reusable components for a web interface.

  • UI components
  • Design systems

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/config --skill daisyui-config --agent claude-code --yes

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

Other ways to install
  • Choose an assistant interactively

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

    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

  • Build or refine reusable components for a web interface.

Good for

  • Component implementation
Exercise
Scope a daisyUI v5 theme setup in CSS
Inputs
Tailwind CSS entry file, selected theme names and any existing class prefix
Acceptance
Compile the CSS and verify the expected data-theme values and component class names. Check both explicit theme selection and the initial system default on [Preview route].
Skill name
daisyui-config

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. Scope a daisyUI v5 theme setup in CSS
  2. Tailwind CSS entry file, selected theme names and any existing class prefix

Daisyui Config operation manual

Scope a daisyUI v5 theme setup in CSS

Tailwind CSS entry file, selected theme names and any existing class prefix

  1. Check the project setup

    Tailwind CSS entry file, selected theme names and any existing class prefix

    Prompt · Step 1
    Load the daisyui-config publisher Skill and read its instructions. Scope this to [Target project and component]. Open [CSS entry]. Confirm which file owns the daisyUI plugin block and what current themes and prefixes it uses. Inspect the installed config reference before changing the block.
  2. Apply the documented change

    Scope a daisyUI v5 theme setup in CSS

    Prompt · Step 2
    Load the daisyui-config publisher Skill and read its instructions. Scope this to [Target project and component]. Set a small theme list using daisyUI v5 CSS plugin syntax. Mark the exact default theme and the theme for the system dark preference. If [Optional documented prefix] is approved, update affected component classes consistently.
  3. Build and exercise the component

    Compile the CSS and verify the expected data-theme values and component class names. Check both explicit theme selection and the initial system default on [Preview route].

    Prompt · Step 3
    Load the daisyui-config publisher Skill and read its instructions. Scope this to [Target project and component]. Compile the CSS and verify the expected data-theme values and component class names. Check both explicit theme selection and the initial system default on [Preview route].

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
Scope a daisyUI v5 theme setup in CSS
Examples
Compile the CSS and verify the expected data-theme values and component class names. Check both explicit theme selection and the initial system default on [Preview route].

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?

Compile the CSS and verify the expected data-theme values and component class names. Check both explicit theme selection and the initial system default on [Preview route].