Agent skill Frontend
Daisyui Config
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/config --skill daisyui-config --agent claude-code --yesCheck 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-configSelect 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
- 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- 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
- Scope a daisyUI v5 theme setup in CSS
- 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
Check the project setup
Tailwind CSS entry file, selected theme names and any existing class prefix
Prompt · Step 1Load 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.Apply the documented change
Scope a daisyUI v5 theme setup in CSS
Prompt · Step 2Load 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.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 3Load 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].