Agent skill

Styling Rules for daisyUI 5

by saadeghi in saadeghi/daisyui

Rules for styling HTML with daisyUI 5 class names first, falling back to Tailwind utilities only when needed, and avoiding unnecessary custom CSS or default color variants.

MITAuto-check passedFrontend & Design

Install Styling Rules for daisyUI 5

skills CLI
$ npx skills add saadeghi/daisyui --skill daisyui-usage -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install saadeghi/daisyui daisyui-usage --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/saadeghi/daisyui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/daisyui/usage .claude/skills/daisyui-usage && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
daisyui-usage
GitHub stars
43k
Token cost
~846 tokens
SKILL.md length
492 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Rules for styling HTML with daisyUI 5 class names first, falling back to Tailwind utilities only when needed, and avoiding unnecessary custom CSS or default color variants.

  • Works in 12 steps: To style an HTML element, add daisyUI… → If the current daisyUI classes cannot… → If CSS specificity prevents a change to… → …
  • Styling a new component with daisyUI 5
  • SKILL.md covers daisyUI 5 usage rules, Change a component in CSS, daisyUI utilities and variables and Base modules
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

The core rule set says to style an element with the appropriate daisyUI component, part and modifier classes first, and to reach for Tailwind utility classes only when daisyUI's own classes cannot express the needed change, such as adding custom padding to a btn. When CSS specificity blocks a change, a trailing exclamation mark on the Tailwind utility can force it, but only as a last resort, and when daisyUI has no matching component at all, one is built from Tailwind utilities directly.

Other rules keep output minimal and conventional: add responsive prefixes to flex or grid layout utilities, skip custom CSS, custom fonts, placeholder images other than a specified source, and the base background and text utility classes when they are not actually needed, and never add a color or size variant the user did not ask for. The class names are grouped into categories such as component, part, style, behavior, color, size and variant, which exist for reference only and are never written into code themselves. A global component style change can also be made with Tailwind's @utility directive.

When your agent uses it

  • Styling a new component with daisyUI 5
  • Deciding whether to use a daisyUI class or a Tailwind utility for a style need
  • Overriding a daisyUI component's style globally

Example prompts

  • “Style this card component using daisyUI classes only.”
  • “This button needs custom padding daisyUI doesn't provide. Add it the right way.”
  • “Use the @utility directive to make all buttons rounded globally.”

Requirements

  • daisyUI 5 with Tailwind CSS

Workflow steps

12 steps, taken from the first numbered list in SKILL.md.

  1. To style an HTML element, add daisyUI class names to it. Add the necessary component class name. Also add the applicable part and modifier…
  2. If the current daisyUI classes cannot make a necessary change, use Tailwind CSS utility classes. For example, btn px-10 sets custom…
  3. If CSS specificity prevents a change to a daisyUI style, add ! to the end of the Tailwind utility. For example, btn bg-red-500! overrides…
  4. If daisyUI does not have an applicable component, make a component with Tailwind CSS utilities.
  5. When you use Tailwind CSS flex or grid for a layout, add responsive utility prefixes.
  6. Use only current daisyUI class names or Tailwind CSS utility classes.
  7. If custom CSS is not necessary, do not write it. If possible, use daisyUI class names or Tailwind CSS utility classes.
  8. If you need placeholder images, use https://picsum.photos/200/300 with the necessary dimensions.
  9. If a custom font is not necessary, do not add one.
  10. If bg-base-100 text-base-content is not necessary, do not add it to the body.
  11. For design decisions, use the methods in the Refactoring UI book.
  12. If the user does not request a variant or color, use the default variant. For example, use btn for a button. If the user does not request…

What it can do on your machine

Read from SKILL.md and the folder at commit 9adbeaa. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are css).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • picsum.photos

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Styling Rules for daisyUI 5 loads about 846 tokens when it runs. Until then it costs about 15 tokens; SKILL.md has 492 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~15
When it runs · the whole SKILL.md, loaded when a task matches
~846

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from saadeghi/daisyui at commit 9adbeaa, republished under its MIT licence (© saadeghi). 492 words, ~846 tokens.

Download SKILL.mdSave it as .claude/skills/daisyui-usage/SKILL.md (or your agent's skills folder).
name
daisyui-usage
description
Usage rules that you must use with daisyUI 5

daisyUI 5 usage rules

  1. To style an HTML element, add daisyUI class names to it. Add the necessary component class name. Also add the applicable part and modifier class names.
  2. If the current daisyUI classes cannot make a necessary change, use Tailwind CSS utility classes. For example, btn px-10 sets custom horizontal padding on a btn.
  3. If CSS specificity prevents a change to a daisyUI style, add ! to the end of the Tailwind utility. For example, btn bg-red-500! overrides the background color of a btn. Use this method only if other methods do not work. Do not use it frequently.
  4. If daisyUI does not have an applicable component, make a component with Tailwind CSS utilities.
  5. When you use Tailwind CSS flex or grid for a layout, add responsive utility prefixes.
  6. Use only current daisyUI class names or Tailwind CSS utility classes.
  7. If custom CSS is not necessary, do not write it. If possible, use daisyUI class names or Tailwind CSS utility classes.
  8. If you need placeholder images, use https://picsum.photos/200/300 with the necessary dimensions.
  9. If a custom font is not necessary, do not add one.
  10. If bg-base-100 text-base-content is not necessary, do not add it to the body.
  11. For design decisions, use the methods in the Refactoring UI book.
  12. If the user does not request a variant or color, use the default variant. For example, use btn for a button. If the user does not request that variant, do not use btn btn-primary.

Each daisyUI 5 class name is in one of these categories. These category names are for reference only. Do not use them in code.

  • component: The necessary component class.
  • part: A child part of a component.
  • style: Sets a specified style on a component or part.
  • behavior: Changes the behavior of a component or part.
  • color: Sets a specified color on a component or part.
  • size: Sets a specified size on a component or part.
  • placement: Sets a specified position for a component or part.
  • direction: Sets a specified direction for a component or part.
  • modifier: Changes the component or part in a specified way.
  • variant: A prefix for a utility class that applies styles in specified conditions. The syntax is variant:utility-class.
Show full SKILL.md (116 more words)Show less

Change a component in CSS

Use the Tailwind @utility directive to change a daisyUI component globally:

css
@utility btn {
  @apply rounded-full;
}

daisyUI utilities and variables

  • You can use semantic colors with Tailwind color utilities and opacity modifiers. Examples are bg-primary, border-base-300, and text-base-content/60.
  • rounded-box, rounded-field, and rounded-selector use the radius tokens of the active theme.
  • glass applies the daisyUI glass effect.
  • Some components supply CSS variables for component-specific changes. Countdown uses --value and --digits. Radial progress uses --size and --thickness.

Base modules

daisyUI includes the properties, rootcolor, scrollbar, rootscrolllock, rootscrollgutter, and svg base modules. To exclude a module from the plugin configuration, use its module name:

css
@plugin "daisyui" {
  exclude: rootscrollgutter;
}

Use include or exclude for library modules. For visual changes, use Tailwind utilities or @utility.

© saadeghi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/daisyui/usage of saadeghi/daisyui.

Open the folder on GitHubat commit 9adbeaa

Compare with similar skills

Styling Rules for daisyUI 5 next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Styling Rules for daisyUI 5 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Styling Rules for daisyUI 5 this skillsaadeghi/daisyui43k—~846Automated safety check: PassMIT
UI StylingOhh-889/skyroc79513 repos~2.5kAutomated safety check: PassMIT
Cosscrafter-station/petdex4.2k—~1.4kAutomated safety check: PassMIT
Design StyleCastor6/tactus3761 repos~2.1kAutomated safety check: PassApache-2.0
Tailwind Design SystemSuFxGIT/scoutarr1145 repos~5.6kAutomated safety check: PassNone
Extract DesignManavarya09/design-extract4.2k—~786Automated safety check: NotesMIT

Similar skills

  • UI Styling

    Ohh-889/skyroc

    Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs.

    795 GitHub starsUsed in 13 repos~2.5k tokens
    Frontend & DesignAuto-check passed
  • Coss

    crafter-station/petdex

    Helps implement coss UI components correctly. An agent skill from crafter-station/petdex.

    4.2k GitHub stars~1.4k tokensUpdated 9 days ago
    Frontend & DesignAuto-check passed
  • Design Style

    Castor6/tactus

    A skill your agent uses whenever the user asks to build, create, design, develop, improve, or style any frontend interface or visual element.

    376 GitHub starsUsed in 1 repo~2.1k tokens
    Frontend & DesignAuto-check passed
  • Tailwind Design System

    SuFxGIT/scoutarr

    Build scalable design systems with Tailwind CSS v4, design tokens, component libraries, and responsive patterns.

    114 GitHub starsUsed in 5 repos~5.6k tokens
    Frontend & DesignAuto-check passed
  • Extract Design

    Manavarya09/design-extract

    Extract the full design language from any website URL. An agent skill from Manavarya09/design-extract.

    4.2k GitHub stars~786 tokensUpdated 9 days ago
    Frontend & DesignAuto-check: notes
  • Tailwind Design System

    jh941213/my-cc-harness

    Build scalable design systems with Tailwind CSS, design tokens, component libraries, and responsive patterns.

    126 GitHub starsUsed in 10 repos~4.7k tokens
    Frontend & DesignAuto-check passed

More from saadeghi/daisyui

  • Bug Finder for daisyUI

    saadeghi/daisyui

    Investigates suspected bugs in the daisyUI monorepo through read-only analysis, then writes a decision-ready fix plan in tmp/bugs without changing any product code.

    43k GitHub stars~2.3k tokensUpdated 8 days ago
    Auto-check passed
  • Reviews open pull requests in the daisyUI repository using read-only GitHub data and isolated base-versus-PR checks, then writes a merge verdict report.

    43k GitHub stars~766 tokensUpdated 8 days ago
    Auto-check passed
  • Official daisyUI skill for Tailwind CSS projects, routing to install, usage, configuration, color and per-component guides before writing any HTML or JSX with its classes.

    43k GitHub stars~1.3k tokensUpdated 8 days ago
    Auto-check passed
  • DaisyUI 5 Color Rules

    saadeghi/daisyui

    Rules for using daisyUI 5's semantic color names, such as primary and base-100, so interfaces stay readable across themes.

    43k GitHub stars~1.7k tokensUpdated 8 days ago
    Auto-check passed
  • daisyUI 5 Installation

    saadeghi/daisyui

    Installation instructions for daisyUI 5 with Tailwind CSS 4: the npm setup, CSS plugin lines, CDN usage and pointers to framework-specific guides.

    43k GitHub stars~967 tokensUpdated 8 days ago
    Auto-check passed
  • daisyUI 5 Configuration

    saadeghi/daisyui

    Configuration options for daisyUI 5

    43k GitHub stars~352 tokensUpdated 8 days ago
    Auto-check passed

Questions about Styling Rules for daisyUI 5

What does Styling Rules for daisyUI 5 do?

Rules for styling HTML with daisyUI 5 class names first, falling back to Tailwind utilities only when needed, and avoiding unnecessary custom CSS or default color variants. The core rule set says to style an element with the appropriate daisyUI component, part and modifier classes first, and to reach for Tailwind utility classes only when daisyUI's own classes cannot express the needed change, such as adding custom padding to a btn. When CSS specificity blocks a change, a trailing exclamation mark on the Tailwind utility can force it, but only as a last resort, and when daisyUI has no matching component at all, one is built from Tailwind utilities directly.

When should I use Styling Rules for daisyUI 5?

Styling Rules for daisyUI 5 fits situations like: styling a new component with daisyUI 5; deciding whether to use a daisyUI class or a Tailwind utility for a style need; overriding a daisyUI component's style globally.

How do I install Styling Rules for daisyUI 5 in Claude Code?

Run `npx skills add saadeghi/daisyui --skill daisyui-usage -a claude-code`. Or copy the skill folder (skills/daisyui/usage in saadeghi/daisyui) into .claude/skills/daisyui-usage in your project. Claude Code loads it when a task matches its description.

How do I install Styling Rules for daisyUI 5 in Codex?

Run `npx skills add saadeghi/daisyui --skill daisyui-usage -a codex`. Or copy the skill folder (skills/daisyui/usage in saadeghi/daisyui) into .agents/skills/daisyui-usage in your project. Codex loads it when a task matches its description.

Can I use Styling Rules for daisyUI 5 in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add saadeghi/daisyui --skill daisyui-usage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/daisyui-usage, .gemini/skills/daisyui-usage, .github/skills/daisyui-usage and .opencode/skills/daisyui-usage in your project.

What does Styling Rules for daisyUI 5 need to run?

SKILL.md names no scripts, command-line tools or credentials: Styling Rules for daisyUI 5 is instructions for the agent only. Our summary lists: daisyUI 5 with Tailwind CSS.

Does Styling Rules for daisyUI 5 access the network?

SKILL.md names 1 domain. As links in the text: picsum.photos. This is read from the text; nothing was executed.

Is Styling Rules for daisyUI 5 safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Styling Rules for daisyUI 5 use?

Styling Rules for daisyUI 5 is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Styling Rules for daisyUI 5 use?

About 846 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Styling Rules for daisyUI 5?

Skills that share tags, products or a category with Styling Rules for daisyUI 5: UI Styling (Ohh-889/skyroc, 795 stars), Coss (crafter-station/petdex, 4.2k stars), Design Style (Castor6/tactus, 376 stars) and Tailwind Design System (SuFxGIT/scoutarr, 114 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Styling Rules for daisyUI 5?

saadeghi (a GitHub user) maintains it in saadeghi/daisyui, which has 42,555 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on September 30, 2026.

Source: saadeghi/daisyui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.