Agent skill Frontend
Daisyui Usage
Build or refine reusable components for a web interface.
Install the skill
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 --yesCheck 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-usageSelect 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 manualWhat 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- Repository
saadeghi/daisyui
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
- Compose a documented component without breaking its behavior
- 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
Check the project setup
One UI component, its documented anatomy and current action handlers
Prompt · Step 1Load 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.Apply the documented change
Compose a documented component without breaking its behavior
Prompt · Step 2Load 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.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 3Load 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.