daisyui-usage

A set of usage rules for daisyUI 5, a collection of ready-made interface components built on Tailwind CSS. The rules explain how to combine component classes, responsive layout classes, and custom styles.

In plain words
What is it for?
Use it when creating or editing pages and interface components that use daisyUI 5, including responsive layouts, buttons, forms, and other styled elements.
Why use it?
It keeps generated interfaces aligned with the current daisyUI and Tailwind CSS conventions, reducing incorrect class names and unnecessary custom CSS.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/saadeghi/daisyui/usage
Any agent
npx skills add saadeghi/daisyui --skill usage
Clone the repo
git clone --depth 1 https://github.com/saadeghi/daisyui

Made for: Claude Code, Codex.

Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 817 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00018 $0.00817
Opus 5 $0.00009 $0.00409
Sonnet 5 $0.00004 $0.00163
Haiku 4.5 $0.00002 $0.00082

Measured yesterday against content hash 9a0cb9e36d26, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

daisyui-usage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/daisyui/usage/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 60 lines · 18 tokens per session scan A 9a0cb9e36d26

Subscribe to this mod's changes

daisyui-usage is a skill published in the GitHub repository saadeghi/daisyui (42,247 stars, last pushed 8d ago), licensed MIT. It adds 18 tokens to every session and 817 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

frontend-clean-ui

Activate when designing, building, or refactoring modern, accessible, high-contrast web user interfaces, SaaS dashboards, and landing pages with Tailwind CSS, design tokens, dark mode, and responsive flex/grid layouts — trigger phrasings include "build a modern UI for my web app", "redesign this dashboard to look…

ieeecsopen/mcp-cs · 132 tokens

material-ui-tailwind

Integrates Material UI with Tailwind CSS v4 using cascade layers (enableCssLayer, @layer order) and documents Tailwind v3 interoperability (preflight, important, injectFirst, portals). Use when combining MUI with Tailwind utilities, slotProps className, or theme token bridges.

mui/material-ui · 67 tokens

fast-typescript-check

Keep www-sacred's TypeScript fast to type-check and fast to run. Use when touching the ASCII/canvas animation components (the only real per-frame code here), tightening type-check wall-clock, or auditing a change for runtime or compiler regressions. Scoped to this repo — a React 19 / Next.js 16 component library plus…

internet-development/www-sacred · 84 tokens

create-component

End-to-end SEED component implementation guide for React Web, Lynx, and cross-platform work. Use when adding or changing components across rootage, qvism, react/lynx packages, registry snippets, docs, examples, or when writing/refactoring docs/stories Storybook files. Story-only work follows a CSF Next fast path…

daangn/seed-design · 88 tokens

snapshot-release

Drives the snapshot-release flow for the current branch's PR. Posts a /snapshot comment on the PR if one isn't already there (with confirmation), waits for the Continuous Releases workflow to finish, and reports the tarball URLs from the resulting 📦 Snapshot Release comment. Use for both triggering and waiting …

daangn/seed-design · 142 tokens

ss-copy

Generate UX microcopy (button labels, error messages, empty states, toasts) following a casual-but-polite voice and tone.

bitjaru/styleseed · 29 tokens