Agent skill Frontend
Daisyui
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 saadeghi/daisyui --skill daisyui --agent claude-code --yesCheck this file in your project.claude/skills/daisyui/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add saadeghi/daisyui --skill daisyuiSelect 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
- Build one card with theme-aware actions
- Inputs
- An existing Tailwind CSS v4 project, real card content and one primary action
- Acceptance
- Open [Local route] in light and dark themes. Check long content, the action, focus and any loading or disabled state. Confirm the built CSS contains the component classes you used.
- Skill name
daisyui- 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
- Build one card with theme-aware actions
- An existing Tailwind CSS v4 project, real card content and one primary action
Daisyui operation manual
Build one card with theme-aware actions
An existing Tailwind CSS v4 project, real card content and one primary action
Check the project setup
An existing Tailwind CSS v4 project, real card content and one primary action
Prompt · Step 1Load the daisyui publisher Skill and read its instructions. Scope this to [Target project and component]. Inspect [Project directory] and confirm the Tailwind and daisyUI versions, CSS import and active theme. Read the installed daisyui color, config and component references for the chosen card.Apply the documented change
Build one card with theme-aware actions
Prompt · Step 2Load the daisyui publisher Skill and read its instructions. Scope this to [Target project and component]. Build [Card] using documented daisyUI v5 card and button class combinations. Use existing semantic colors for surfaces, text and actions, and keep the action element semantic and keyboard accessible.Build and exercise the component
Open [Local route] in light and dark themes. Check long content, the action, focus and any loading or disabled state. Confirm the built CSS contains the component classes you used.
Prompt · Step 3Load the daisyui publisher Skill and read its instructions. Scope this to [Target project and component]. Open [Local route] in light and dark themes. Check long content, the action, focus and any loading or disabled state. Confirm the built CSS contains the component classes you used.
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
Build one card with theme-aware actions- Examples
- Open [Local route] in light and dark themes. Check long content, the action, focus and any loading or disabled state. Confirm the built CSS contains the component classes you used.
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?
Open [Local route] in light and dark themes. Check long content, the action, focus and any loading or disabled state. Confirm the built CSS contains the component classes you used.