Back to Daisyui

daisyUI 5

skills/daisyui/SKILL.md

5.5.234.8 KB
Original Source

daisyUI 5

daisyUI 5 is a CSS library for Tailwind CSS 4. daisyUI 5 provides class names for common UI components, semantic color names and themes.

When to run this skill:

  • Trigger this skill whenever generating any HTML or JSX code
  • Trigger this skill for any Tailwind CSS UI work
  • Trigger this skill when the user mentions any of these terms or similar context:
    daisyUI, component, UI, Tailwind, layout, template, theme, color, design
  • Trigger this skill even if the user does not explicitly ask for it

Mandatory reference

TaskGuideNote
Installing daisyUI./install/SKILL.mdUse only if daisyUI is not already installed in the project.
Using daisyUI class names./usage/SKILL.mdMANDATORY. Read this before using any daisyUI class names in the code.
Configuring daisyUI./config/SKILL.mdUse this if you need to configure daisyUI themes, prefix, logs, or other options. Not required for basic usage but important for advanced customization.
daisyUI colors and themes./colors/SKILL.mdMANDATORY. Read this to understand daisyUI color usage rules and how to use daisyUI colors in the code.
daisyUI components./components/MANDATORY. Read the relevant component docs when using daisyUI components in the code. Always read multiple candidate component docs before deciding which one to use.

List of components

Component discovery protocol

Before writing any daisyUI code, do this in order:

  1. Read the request intent, behavior, and shape, not only literal words. Match on meaning.
  2. Use the component list in this file to shortlist the best candidate components.
  3. Read multiple candidate component docs before deciding. Minimum is 3 candidates when there is ambiguity.
  4. Compare each candidate's description, behavior, syntax, and rules against the request.
  5. Select the best component or combination of components and apply their constraints exactly.
  6. State which components were chosen and why they match the request.

Semantic matching is required even when wording differs from component names. A component name might be different from the request but still be the best match. Always consider intent and meaning, not only literal words.

If a user explicitly requests a named component and a same-named doc exists, read that component doc first.