Skill library

Agent skill Frontend

Daisyui Usage

Build or refine reusable components for a web interface.

  • UI components

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

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

Other ways to install
  • Choose an assistant interactively

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

    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
Compose a documented component without breaking its behavior
Inputs
One UI component, its documented anatomy and current action handlers
Acceptance
Try both keyboard and pointer actions, check theme colors in the supported variants, and verify ordinary, disabled and error states where relevant. Record any verified or missing component classes.
Skill name
daisyui-usage

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. Compose a documented component without breaking its behavior
  2. One UI component, its documented anatomy and current action handlers

Daisyui Usage operation manual

Compose a documented component without breaking its behavior

One UI component, its documented anatomy and current action handlers

  1. Check the project setup

    One UI component, its documented anatomy and current action handlers

    Prompt · Step 1
    Load the daisyui-usage publisher Skill and read its instructions. Scope this to [Target project and component]. Read the local daisyui-usage file and the official component reference for [Selected component]. Find the documented class combinations and the project’s token and event conventions.
  2. Apply the documented change

    Compose a documented component without breaking its behavior

    Prompt · Step 2
    Load the daisyui-usage publisher Skill and read its instructions. Scope this to [Target project and component]. Use the documented classes and semantic elements to implement [Required state or variant]. Keep the current action and add only small layout utilities where needed. Avoid replacing actual behavior with a visual class alone.
  3. Build and exercise the component

    Try both keyboard and pointer actions, check theme colors in the supported variants, and verify ordinary, disabled and error states where relevant. Record any verified or missing component classes.

    Prompt · Step 3
    Load the daisyui-usage publisher Skill and read its instructions. Scope this to [Target project and component]. Try both keyboard and pointer actions, check theme colors in the supported variants, and verify ordinary, disabled and error states where relevant. Record any verified or missing component classes.

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
Compose a documented component without breaking its behavior
Examples
Try both keyboard and pointer actions, check theme colors in the supported variants, and verify ordinary, disabled and error states where relevant. Record any verified or missing component classes.

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?

Try both keyboard and pointer actions, check theme colors in the supported variants, and verify ordinary, disabled and error states where relevant. Record any verified or missing component classes.