com um clique
daisyui
Official daisyUI skill
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Official daisyUI skill
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Breadbox's surface design language — the conventions for building and redesigning admin UI surfaces so every page reads as one calm, legible product. Codifies the principles, the canonical page anatomy, the component vocabulary, and the redesign method (IA-first, not a re-skin). Invoke when building a new admin surface or bringing an existing one up to standard. Triggers: "redesign this page", "apply our design system", "apply the surface language", "make this follow our conventions", "polish this surface", "bring /accounts (etc.) up to the design system", "what's our pattern for X". Pair with the `daisyui` skill (primitive classes) and `validate-ui` (browser evidence). NOT for low-level CSS questions — those are `.claude/rules/daisyui.md`.
Upload an image or an HTML/text snapshot and get a public URL suitable for embedding in PRs, issues, and comments, or for sharing a rendered debug page. Defaults to the self-hosted host at bb-artifacts.exe.xyz — authenticated upload via your GitHub token (`gh auth token`, works in local AND cloud sessions); public read; ~180-day retention; 25MB cap. Falls back to img402.dev only if the host is unreachable. Triggers: "screenshot this", "attach an image", "add a screenshot to the PR", "upload this mockup", "host this HTML", "share a debug snapshot", or any task producing an image or HTML page that needs a shareable URL.
Validate a Breadbox admin UI change in a real browser and produce a screenshot as PR evidence. Prefers Chrome DevTools MCP when available; falls back to headless Chromium via Playwright in cloud sessions where the MCP is not loaded. Saves a JPEG under 1MB, uploads to the self-hosted bb-artifacts.exe.xyz CDN (auth via `gh auth token`), ready to embed in a PR. Triggers: "validate the UI change", "screenshot this page", "capture the transactions page", "attach a screenshot to the PR", "show me how it looks", or any task needing a visual of the running app before a PR can be marked done.
Manage the project roadmap (docs/ROADMAP.md). Use when scoping new features or phases, checking off completed work, or reviewing roadmap status. Invoke with /roadmap.
Plan, start, submit, and land stacked PRs using Graphite (`gt`). Invoke when the change is large enough to benefit from splitting into reviewable pieces. Do NOT invoke for small single-PR work.
| name | daisyui |
| description | Official daisyUI skill |
| metadata | {"version":"5.5.x","source":"https://daisyui.com/SKILL.md"} |
daisyUI 5 is a CSS library for Tailwind CSS 4 daisyUI 5 provides class names for common UI components
tailwind.config.js file is deprecated in Tailwind CSS v4. do not use tailwind.config.js. Tailwind CSS v4 only needs @import "tailwindcss"; in the CSS file if it's a node dependency.npm i -D daisyui@latest and then adding @plugin "daisyui"; to the CSS file<link href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet" type="text/css" />
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
@import "tailwindcss";
@plugin "daisyui";
btn px-10 sets a custom horizontal padding to a btn! at the end of the Tailwind CSS utility class to override the existing styles. For example btn bg-red-500! sets a custom background color to a btn forcefully. This is a last resort solution and should be used sparinglyflex and grid for layout, it should be responsive using Tailwind CSS responsive utility prefixes.bg-base-100 text-base-content to body unless it's necessarydaisyUI 5 class names are one of the following categories. These type names are only for reference and are not used in the actual code
component: the required component classpart: a child part of a componentstyle: sets a specific style to component or partbehavior: changes the behavior of component or partcolor: sets a specific color to component or partsize: sets a specific size to component or partplacement: sets a specific placement to component or partdirection: sets a specific direction to component or partmodifier: modifies the component or part in a specific wayvariant: prefixes for utility classes that conditionally apply styles. syntax is variant:utility-classdaisyUI 5 config docs: https://daisyui.com/docs/config/ daisyUI without config:
@plugin "daisyui";
daisyUI config with light theme only:
@plugin "daisyui" {
themes: light --default;
}
daisyUI with all the default configs:
@plugin "daisyui" {
themes: light --default, dark --prefersdark;
root: ":root";
include: ;
exclude: ;
prefix: ;
logs: true;
}
An example config:
In below config, all the built-in themes are enabled while bumblebee is the default theme and synthwave is the prefersdark theme (default dark mode)
All the other themes are enabled and can be used by adding data-theme="THEME_NAME" to the <html> element
root scrollbar gutter is excluded. daisy- prefix is used for all daisyUI classes and console.log is disabled
@plugin "daisyui" {
themes: light, dark, cupcake, bumblebee --default, emerald, corporate, synthwave --prefersdark, retro, cyberpunk, valentine, halloween, garden, forest, aqua, lofi, pastel, fantasy, wireframe, black, luxury, dracula, cmyk, autumn, business, acid, lemonade, night, coffee, winter, dim, nord, sunset, caramellatte, abyss, silk;
root: ":root";
include: ;
exclude: rootscrollgutter, checkbox;
prefix: daisy-;
logs: false;
}
primary: Primary brand color, The main color of your brandprimary-content: Foreground content color to use on primary colorsecondary: Secondary brand color, The optional, secondary color of your brandsecondary-content: Foreground content color to use on secondary coloraccent: Accent brand color, The optional, accent color of your brandaccent-content: Foreground content color to use on accent colorneutral: Neutral dark color, For not-saturated parts of UIneutral-content: Foreground content color to use on neutral colorbase-100:-100 Base surface color of page, used for blank backgroundsbase-200:-200 Base color, darker shade, to create elevationsbase-300:-300 Base color, even more darker shade, to create elevationsbase-content: Foreground content color to use on base colorinfo: Info color, For informative/helpful messagesinfo-content: Foreground content color to use on info colorsuccess: Success color, For success/safe messagessuccess-content: Foreground content color to use on success colorwarning: Warning color, For warning/caution messageswarning-content: Foreground content color to use on warning colorerror: Error color, For error/danger/destructive messageserror-content: Foreground content color to use on error colorbg-primary will use the primary color for the backgrounddark: for daisyUI color namesred-500) is used, it will be same red color on all themesprimary) is used, it will change color based on the themetext-gray-800 on bg-base-100 would be unreadable on a dark theme - because on dark theme, bg-base-100 is a dark color*-content colors should have a good contrast compared to their associated colorsbase-* colors for majority of the page. use primary color for important elementsA CSS file with Tailwind CSS, daisyUI and a custom daisyUI theme looks like this:
@import "tailwindcss";
@plugin "daisyui";
@plugin "daisyui/theme" {
name: "mytheme";
default: true; /* set as default */
prefersdark: false; /* set as default dark mode (prefers-color-scheme:dark) */
color-scheme: light; /* color of browser-provided UI */
--color-base-100: oklch(98% 0.02 240);
--color-base-200: oklch(95% 0.03 240);
--color-base-300: oklch(92% 0.04 240);
--color-base-content: oklch(20% 0.05 240);
--color-primary: oklch(55% 0.3 240);
--color-primary-content: oklch(98% 0.01 240);
--color-secondary: oklch(70% 0.25 200);
--color-secondary-content: oklch(98% 0.01 200);
--color-accent: oklch(65% 0.25 160);
--color-accent-content: oklch(98% 0.01 160);
--color-neutral: oklch(50% 0.05 240);
--color-neutral-content: oklch(98% 0.01 240);
--color-info: oklch(70% 0.2 220);
--color-info-content: oklch(98% 0.01 220);
--color-success: oklch(65% 0.25 140);
--color-success-content: oklch(98% 0.01 140);
--color-warning: oklch(80% 0.25 80);
--color-warning-content: oklch(20% 0.05 80);
--color-error: oklch(65% 0.3 30);
--color-error-content: oklch(98% 0.01 30);
--radius-selector: 1rem; /* border radius of selectors (checkbox, toggle, badge) */
--radius-field: 0.25rem; /* border radius of fields (button, input, select, tab) */
--radius-box: 0.5rem; /* border radius of boxes (card, modal, alert) */
/* preferred values for --radius-* : 0rem, 0.25rem, 0.5rem, 1rem, 2rem */
--size-selector: 0.25rem; /* base size of selectors (checkbox, toggle, badge). Value must be 0.25rem unless we intentionally want bigger selectors. In so it can be 0.28125 or 0.3125. If we intentionally want smaller selectors, it can be 0.21875 or 0.1875 */
--size-field: 0.25rem; /* base size of fields (button, input, select, tab). Value must be 0.25rem unless we intentionally want bigger fields. In so it can be 0.28125 or 0.3125. If we intentionally want smaller fields, it can be 0.21875 or 0.1875 */
--border: 1px; /* border size. Value must be 1px unless we intentionally want thicker borders. In so it can be 1.5px or 2px. If we intentionally want thinner borders, it can be 0.5px */
--depth: 1; /* only 0 or 1 – Adds a shadow and subtle 3D depth effect to components */
--noise: 0; /* only 0 or 1 - Adds a subtle noise (grain) effect to components */
}
People can use https://daisyui.com/theme-generator/ visual tool to create their own theme.
Accordion is used for showing and hiding content but only one item can stay open at a time
collapsecollapse-title, collapse-contentcollapse-arrow, collapse-plus, collapse-open, collapse-close<div class="collapse {MODIFIER}">{CONTENT}</div>
where content is:
<input type="radio" name="{name}" checked="{checked}" />
<div class="collapse-title">{title}</div>
<div class="collapse-content">{CONTENT}</div>
{checked} with checked="checked" if you want the accordion to be open by defaultAlert informs users about important events
alertalert-outline, alert-dash, alert-softalert-info, alert-success, alert-warning, alert-erroralert-vertical, alert-horizontal<div role="alert" class="alert {MODIFIER}">{CONTENT}</div>
sm:alert-horizontal for responsive layoutsAvatars are used to show a thumbnail
avatar, avatar-groupavatar-online, avatar-offline, avatar-placeholder<div class="avatar {MODIFIER}">
<div>
<img src="{image-url}" />
</div>
</div>
avatar-group for containing multiple avatarsw-* and h-*mask-squircle, mask-hexagon, mask-triangleBadges are used to inform the user of the status of specific data
badgebadge-outline, badge-dash, badge-soft, badge-ghostbadge-neutral, badge-primary, badge-secondary, badge-accent, badge-info, badge-success, badge-warning, badge-errorbadge-xs, badge-sm, badge-md, badge-lg, badge-xl<span class="badge {MODIFIER}">Badge</span>
Breadcrumbs helps users to navigate
breadcrumbs<div class="breadcrumbs">
<ul><li><a>Link</a></li></ul>
</div>
max-width or the list gets larger than the container it will scrollButtons allow the user to take actions
btnbtn-neutral, btn-primary, btn-secondary, btn-accent, btn-info, btn-success, btn-warning, btn-errorbtn-outline, btn-dash, btn-soft, btn-ghost, btn-linkbtn-active, btn-disabledbtn-xs, btn-sm, btn-md, btn-lg, btn-xlbtn-wide, btn-block, btn-square, btn-circle<button class="btn {MODIFIER}">Button</button>
<button>, <a>, <input>tabindex="-1" role="button" aria-disabled="true" if you want to disable the button using a class nameCalendar includes styles for different calendar libraries
cally (for Cally web component)pika-single (for the input field that opens Pikaday calendar)react-day-picker (for the DayPicker component)For Cally:
<calendar-date class="cally">{CONTENT}</calendar-date>
For Pikaday:
<input type="text" class="input pika-single">
For React Day Picker:
<DayPicker className="react-day-picker">
Cards are used to group and display content
cardcard-title, card-body, card-actionscard-border, card-dashcard-side, image-fullcard-xs, card-sm, card-md, card-lg, card-xl<div class="card {MODIFIER}">
<figure><img src="{image-url}" alt="{alt-text}" /></figure>
<div class="card-body">
<h2 class="card-title">{title}</h2>
<p>{CONTENT}</p>
<div class="card-actions">{actions}</div>
</div>
</div>
<figure> and <div class="card-body"> are optionalsm:card-horizontal for responsive layoutscard-body, the image will be placed at the bottomCarousel show images or content in a scrollable area
carouselcarousel-itemcarousel-start, carousel-center, carousel-endcarousel-horizontal, carousel-vertical<div class="carousel {MODIFIER}">{CONTENT}</div>
carousel-item divs: <div class="carousel-item"></div>w-full to each carousel itemChat bubbles are used to show one line of conversation and all its data, including the author image, author name, time, etc
chatchat-image, chat-header, chat-footer, chat-bubblechat-start, chat-endchat-bubble-neutral, chat-bubble-primary, chat-bubble-secondary, chat-bubble-accent, chat-bubble-info, chat-bubble-success, chat-bubble-warning, chat-bubble-error<div class="chat {PLACEMENT}">
<div class="chat-image"></div>
<div class="chat-header"></div>
<div class="chat-bubble {COLOR}">Message text</div>
<div class="chat-footer"></div>
</div>
chat-start or chat-end<div class="chat-image avatar"> and nest the avatar content insideCheckboxes are used to select or deselect a value
checkboxcheckbox-primary, checkbox-secondary, checkbox-accent, checkbox-neutral, checkbox-success, checkbox-warning, checkbox-info, checkbox-errorcheckbox-xs, checkbox-sm, checkbox-md, checkbox-lg, checkbox-xl<input type="checkbox" class="checkbox {MODIFIER}" />
Collapse is used for showing and hiding content
collapsecollapse-title, collapse-contentcollapse-arrow, collapse-plus, collapse-open, collapse-close<div tabindex="0" class="collapse {MODIFIER}">
<div class="collapse-title">{title}</div>
<div class="collapse-content">{CONTENT}</div>
</div>
tabindex="0", you can use <input type="checkbox"> as a first childCountdown gives you a transition effect when you change a number between 0 to 999
countdown<span class="countdown">
<span style="--value:{number};">number</span>
</span>
--value CSS variable and text must be a number between 0 and 999--value CSS variable using JSaria-live="polite" and aria-label="{number}" so screen readers can properly read changesDiff component shows a side-by-side comparison of two items
diffdiff-item-1, diff-item-2, diff-resizer<figure class="diff">
<div class="diff-item-1">{item1}</div>
<div class="diff-item-2">{item2}</div>
<div class="diff-resizer"></div>
</figure>
aspect-16/9 or other aspect ratio classes to <figure class="diff"> elementDivider will be used to separate content vertically or horizontally
dividerdivider-neutral, divider-primary, divider-secondary, divider-accent, divider-success, divider-warning, divider-info, divider-errordivider-vertical, divider-horizontaldivider-start, divider-end<div class="divider {MODIFIER}">{text}</div>
Dock (also know as Bottom navigation or Bottom bar) is a UI element that provides navigation options to the user. Dock sticks to the bottom of the screen
dockdock-labeldock-activedock-xs, dock-sm, dock-md, dock-lg, dock-xl<div class="dock {MODIFIER}">{CONTENT}</div>
where content is a list of buttons:
<button>
<svg>{icon}</svg>
<span class="dock-label">Text</span>
</button>
dock-active class to the button<meta name="viewport" content="viewport-fit=cover"> is required for responsivness of the dock in iOSDrawer is a grid layout that can show/hide a sidebar on the left or right side of the page
drawerdrawer-toggle, drawer-content, drawer-side, drawer-overlaydrawer-enddrawer-openis-drawer-open:, is-drawer-close:<div class="drawer {MODIFIER}">
<input id="my-drawer" type="checkbox" class="drawer-toggle" />
<div class="drawer-content">{CONTENT}</div>
<div class="drawer-side">{SIDEBAR}</div>
</div>
where {CONTENT} can be navbar, site content, footer, etc and {SIDEBAR} can be a menu like:
<ul class="menu p-4 w-80 min-h-full bg-base-100 text-base-content">
<li><a>Item 1</a></li>
<li><a>Item 2</a></li>
</ul>
To open/close the drawer, use a label that points to the drawer-toggle input:
<label for="my-drawer" class="btn drawer-button">Open/close drawer</label>
Example: This sidebar is always visible on large screen, can be toggled on small screen:
<div class="drawer lg:drawer-open">
<input id="my-drawer-3" type="checkbox" class="drawer-toggle" />
<div class="drawer-content flex flex-col items-center justify-center">
<!-- Page content here -->
<label for="my-drawer-3" class="btn drawer-button lg:hidden">
Open drawer
</label>
</div>
<div class="drawer-side">
<label for="my-drawer-3" aria-label="close sidebar" class="drawer-overlay"></label>
<ul class="menu bg-base-200 min-h-full w-80 p-4">
<!-- Sidebar content here -->
<li><button>Sidebar Item 1</button></li>
<li><button>Sidebar Item 2</button></li>
</ul>
</div>
</div>
Example: This sidebar is always visible. When it's close we only see iocns, when it's open we see icons and text
<div class="drawer lg:drawer-open">
<input id="my-drawer-4" type="checkbox" class="drawer-toggle" />
<div class="drawer-content">
<!-- Page content here -->
</div>
<div class="drawer-side is-drawer-close:overflow-visible">
<label for="my-drawer-4" aria-label="close sidebar" class="drawer-overlay"></label>
<div class="is-drawer-close:w-14 is-drawer-open:w-64 bg-base-200 flex flex-col items-start min-h-full">
<!-- Sidebar content here -->
<ul class="menu w-full grow">
<!-- list item -->
<li>
<button class="is-drawer-close:tooltip is-drawer-close:tooltip-right" data-tip="Homepage">
🏠
<span class="is-drawer-close:hidden">Homepage</span>
</button>
</li>
<!-- list item -->
<li>
<button class="is-drawer-close:tooltip is-drawer-close:tooltip-right" data-tip="Settings">
⚙️
<span class="is-drawer-close:hidden">Settings</span>
</button>
</li>
</ul>
<!-- button to open/close drawer -->
<div class="m-2 is-drawer-close:tooltip is-drawer-close:tooltip-right" data-tip="Open">
<label for="my-drawer-4" class="btn btn-ghost btn-circle drawer-button is-drawer-open:rotate-y-180">
↔️
</label>
</div>
</div>
</div>
</div>
id is required for the drawer-toggle input. change my-drawer to a unique id according to your needslg:drawer-open can be used to make sidebar visible on larger screensdrawer-toggle is a hidden checkbox. Use label with "for" attribute to toggle state<label for="my-drawer" class="btn drawer-button">Open drawer</label> where my-drawer is the id of the drawer-toggle inputdrawer-content element. for example navbar, footer, etc should not be outside of drawerDropdown can open a menu or any other element when the button is clicked
dropdowndropdown-contentdropdown-start, dropdown-center, dropdown-end, dropdown-top, dropdown-bottom, dropdown-left, dropdown-rightdropdown-hover, dropdown-open, dropdown-closeUsing details and summary
<details class="dropdown">
<summary>Button</summary>
<ul class="dropdown-content">{CONTENT}</ul>
</details>
Using popover API
<button popovertarget="{id}" style="anchor-name:--{anchor}">{button}</button>
<ul class="dropdown-content" popover id="{id}" style="position-anchor:--{anchor}">{CONTENT}</ul>
Using CSS focus
<div class="dropdown">
<div tabindex="0" role="button">Button</div>
<ul tabindex="-1" class="dropdown-content">{CONTENT}</ul>
</div>
{id} and {anchor} with a unique nametabindex="0" and role="button" on the button<ul>)FAB (Floating Action Button) stays in the bottom corner of screen. It includes a focusable and accessible element with button role. Clicking or focusing it shows additional buttons (known as Speed Dial buttons) in a vertical arrangement or a flower shape (quarter circle)
fabfab-close, fab-main-actionfab-flowerA single FAB in the corder of screen
<div class="fab">
<button class="btn btn-lg btn-circle">{IconOriginal}</button>
</div>
A FAB that opens a 3 other buttons in the corner of page vertically
<div class="fab">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<button class="btn btn-lg btn-circle">{Icon1}</button>
<button class="btn btn-lg btn-circle">{Icon2}</button>
<button class="btn btn-lg btn-circle">{Icon3}</button>
</div>
A FAB that opens a 3 other buttons in the corner of page vertically and they have label text
<div class="fab">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<div>{Label1}<button class="btn btn-lg btn-circle">{Icon1}</button></div>
<div>{Label2}<button class="btn btn-lg btn-circle">{Icon2}</button></div>
<div>{Label3}<button class="btn btn-lg btn-circle">{Icon3}</button></div>
</div>
FAB with rectangle buttons. These are not circular buttons so they can have more content.
<div class="fab">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<button class="btn btn-lg">{Label1}</button>
<button class="btn btn-lg">{Label2}</button>
<button class="btn btn-lg">{Label3}</button>
</div>
FAB with close button. When FAB is open, the original button is replaced with a close button
<div class="fab">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<div class="fab-close">Close <span class="btn btn-circle btn-lg btn-error">✕</span></div>
<div>{Label1}<button class="btn btn-lg btn-circle">{Icon1}</button></div>
<div>{Label2}<button class="btn btn-lg btn-circle">{Icon2}</button></div>
<div>{Label3}<button class="btn btn-lg btn-circle">{Icon3}</button></div>
</div>
FAB with Main Action button. When FAB is open, the original button is replaced with a main action button
<div class="fab">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<div class="fab-main-action">
{LabelMainAction}<button class="btn btn-circle btn-secondary btn-lg">{IconMainAction}</button>
</div>
<div>{Label1}<button class="btn btn-lg btn-circle">{Icon1}</button></div>
<div>{Label2}<button class="btn btn-lg btn-circle">{Icon2}</button></div>
<div>{Label3}<button class="btn btn-lg btn-circle">{Icon3}</button></div>
</div>
FAB Flower. It opens the buttons in a flower shape (quarter circle) arrangement instead of vertical
<div class="fab fab-flower">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<button class="fab-main-action btn btn-circle btn-lg">{IconMainAction}</button>
<button class="btn btn-lg btn-circle">{Icon1}</button>
<button class="btn btn-lg btn-circle">{Icon2}</button>
<button class="btn btn-lg btn-circle">{Icon3}</button>
</div>
FAB Flower with tooltips. There's no space for a text label in a quarter circle, so tooltips are used to indicate the button's function
<div class="fab fab-flower">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<button class="fab-main-action btn btn-circle btn-lg">{IconMainAction}</button>
<div class="tooltip tooltip-left" data-tip="{Label1}">
<button class="btn btn-lg btn-circle">{Icon1}</button>
</div>
<div class="tooltip tooltip-left" data-tip="{Label2}">
<button class="btn btn-lg btn-circle">{Icon2}</button>
</div>
<div class="tooltip tooltip-left" data-tip="{Label3}">
<button class="btn btn-lg btn-circle">{Icon3}</button>
</div>
</div>
Fieldset is a container for grouping related form elements. It includes fieldset-legend as a title and label as a description
fieldset, labelfieldset-legend<fieldset class="fieldset">
<legend class="fieldset-legend">{title}</legend>
{CONTENT}
<p class="label">{description}</p>
</fieldset>
File Input is a an input field for uploading files
file-inputfile-input-ghostfile-input-neutral, file-input-primary, file-input-secondary, file-input-accent, file-input-info, file-input-success, file-input-warning, file-input-errorfile-input-xs, file-input-sm, file-input-md, file-input-lg, file-input-xl<input type="file" class="file-input {MODIFIER}" />
Filter is a group of radio buttons. Choosing one of the options will hide the others and shows a reset button next to the chosen option
filterfilter-resetUsing HTML form
<form class="filter">
<input class="btn btn-square" type="reset" value="×"/>
<input class="btn" type="radio" name="{NAME}" aria-label="Tab 1 title"/>
<input class="btn" type="radio" name="{NAME}" aria-label="Tab 2 title"/>
</form>
Without HTML form
<div class="filter">
<input class="btn filter-reset" type="radio" name="{NAME}" aria-label="×"/>
<input class="btn" type="radio" name="{NAME}" aria-label="Tab 1 title"/>
<input class="btn" type="radio" name="{NAME}" aria-label="Tab 2 title"/>
</div>
{NAME} with proper value, according to the context of the filtername attributes to avoid conflicts<form> tag when possible and only use <div> if you can't use a HTML form for some reasonfilter-reset class for the reset buttonFooter can contain logo, copyright notice, and links to other pages
footerfooter-titlefooter-centerfooter-horizontal, footer-vertical<footer class="footer {MODIFIER}">{CONTENT}</footer>
where content can contain several <nav> tags with footer-title and links inside
sm:footer-horizontal to make footer responsivebase-200 for background colorHero is a component for displaying a large box or image with a title and description
herohero-content, hero-overlay<div class="hero {MODIFIER}">{CONTENT}</div>
hero-content for the text contenthero-overlay inside the hero to overlay the background image with a colorHover 3D is a wrapper component that adds a 3D hover effect to its content. When we hover over the component, it tilts and rotates based on the mouse position, creating an interactive 3D effect.
hover-3d works by placing 8 hover zones on top of the content. Each zone detects mouse movement and applies a slight rotation to the content based on the mouse position within that zone. The combined effect of all 8 zones creates a smooth and responsive 3D tilt effect as the user moves their mouse over the component.
Only use non-interactive content inside the hover-3d wrapper. If you want to make the entire card clickable, use a link for the whole hover-3d component instead of putting interactive elements like buttons or links inside it.
hover-3d<div class="hover-3d my-12 mx-2">
<figure class="max-w-100 rounded-2xl">
<img src="https://img.daisyui.com/images/stock/creditcard.webp" alt="Tailwind CSS 3D card" />
</figure>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div> or a <a><div>s for hover zonesHover Gallery is container of images. The first image is visible be default and when we hover it horizontally, other images show up. Hover Gallery is useful for product cards in ecommerce sites, portfoilios or in image galleries. Hover Gallery can include up to 10 images.
hover-gallery<figure class="hover-gallery max-w-60">
<img src="https://img.daisyui.com/images/stock/daisyui-hat-1.webp" />
<img src="https://img.daisyui.com/images/stock/daisyui-hat-2.webp" />
<img src="https://img.daisyui.com/images/stock/daisyui-hat-3.webp" />
<img src="https://img.daisyui.com/images/stock/daisyui-hat-4.webp" />
</figure>
<div> or a <figure>Indicators are used to place an element on the corner of another element
indicatorindicator-itemindicator-start, indicator-center, indicator-end, indicator-top, indicator-middle, indicator-bottom<div class="indicator">
<span class="indicator-item">{indicator content}</span>
<div>{main content}</div>
</div>
indicator-item class) before the main contentindicator-end indicator-topText Input is a simple input field
inputinput-ghostinput-neutral, input-primary, input-secondary, input-accent, input-info, input-success, input-warning, input-errorinput-xs, input-sm, input-md, input-lg, input-xl<input type="{type}" placeholder="Type here" class="input {MODIFIER}" />
input class for the parent when you have more than one element inside inputJoin is a container for grouping multiple items, it can be used to group buttons, inputs, etc. Join applies border radius to the first and last item. Join can be used to create a horizontal or vertical list of items
join, join-itemjoin-vertical, join-horizontal<div class="join {MODIFIER}">{CONTENT}</div>
join-item will be affectedlg:join-horizontal for responsive layoutsKbd is used to display keyboard shortcuts
kbdkbd-xs, kbd-sm, kbd-md, kbd-lg, kbd-xl<kbd class="kbd {MODIFIER}">K</kbd>
Label is used to provide a name or title for an input field. Label can be placed before or after the field
label, floating-labelFor regular label:
<label class="input">
<span class="label">{label text}</span>
<input type="text" placeholder="Type here" />
</label>
For floating label:
<label class="floating-label">
<input type="text" placeholder="Type here" class="input" />
<span>{label text}</span>
</label>
input class is for styling the parent element which contains the input field and label, so the label does not have the 'input' classfloating-label for the parent of an input field and a span that floats above the input field when the field is focusedLink adds the missing underline style to links
linklink-hoverlink-neutral, link-primary, link-secondary, link-accent, link-success, link-info, link-warning, link-error<a class="link {MODIFIER}">Click me</a>
List is a vertical layout to display information in rows
list, list-rowlist-col-wrap, list-col-grow<ul class="list">
<li class="list-row">{CONTENT}</li>
</ul>
list-row for each item inside the listlist-row will fill the remaining space. You can use list-col-grow on another child to make it fill the remaining space insteadlist-col-wrap to force an item to wrap to the next lineLoading shows an animation to indicate that something is loading
loadingloading-spinner, loading-dots, loading-ring, loading-ball, loading-bars, loading-infinityloading-xs, loading-sm, loading-md, loading-lg, loading-xl<span class="loading {MODIFIER}"></span>
Mask crops the content of the element to common shapes
maskmask-squircle, mask-heart, mask-hexagon, mask-hexagon-2, mask-decagon, mask-pentagon, mask-diamond, mask-square, mask-circle, mask-star, mask-star-2, mask-triangle, mask-triangle-2, mask-triangle-3, mask-triangle-4mask-half-1, mask-half-2<img class="mask {MODIFIER}" src="{image-url}" />
mask class namesw-* and h-*Menu is used to display a list of links vertically or horizontally
menumenu-title, menu-dropdown, menu-dropdown-togglemenu-disabled, menu-active, menu-focus, menu-dropdown-showmenu-xs, menu-sm, menu-md, menu-lg, menu-xlmenu-vertical, menu-horizontalVertical menu:
<ul class="menu">
<li><button>Item</button></li>
</ul>
Horizontal menu:
<ul class="menu menu-horizontal">
<li><button>Item</button></li>
</ul>
lg:menu-horizontal for responsive layoutsmenu-title for list item title<details> tag to make submenus collapsiblemenu-dropdown and menu-dropdown-toggle to toggle the dropdown using JSBrowser mockup shows a box that looks like a browser window
mockup-browsermockup-browser-toolbar<div class="mockup-browser">
<div class="mockup-browser-toolbar">
{toolbar content}
</div>
<div>{CONTENT}</div>
</div>
mockup-browser class nameinput classCode mockup is used to show a block of code in a box that looks like a code editor
mockup-code<div class="mockup-code">
<pre data-prefix="$"><code>npm i daisyui</code></pre>
</div>
<pre data-prefix="{prefix}"> to show a prefix before each line<code> tag to add code syntax highlighting (requires additional library)Phone mockup shows a mockup of an iPhone
mockup-phonemockup-phone-camera, mockup-phone-display<div class="mockup-phone">
<div class="mockup-phone-camera"></div>
<div class="mockup-phone-display">{CONTENT}</div>
</div>
mockup-phone-display you can add anythingWindow mockup shows a box that looks like an operating system window
mockup-window<div class="mockup-window">
<div>{CONTENT}</div>
</div>
Modal is used to show a dialog or a box when you click a button
modalmodal-box, modal-action, modal-backdrop, modal-togglemodal-openmodal-top, modal-middle, modal-bottom, modal-start, modal-endUsing HTML dialog element
<button onclick="my_modal.showModal()">Open modal</button>
<dialog id="my_modal" class="modal">
<div class="modal-box">{CONTENT}</div>
<form method="dialog" class="modal-backdrop"><button>close</button></form>
</dialog>
Using checkbox (legacy)
<label for="my-modal" class="btn">Open modal</label>
<input type="checkbox" id="my-modal" class="modal-toggle" />
<div class="modal">
<div class="modal-box">{CONTENT}</div>
<label class="modal-backdrop" for="my-modal">Close</label>
</div>
Using anchor links (legacy)
<a href="#my-modal" class="btn">Open modal</a>
<div class="modal" id="my-modal">
<div class="modal-box">{CONTENT}</div>
</div>
tabindex="0" to make modal focusable<form method="dialog"> for closing the modal with submitNavbar is used to show a navigation bar on the top of the page
navbarnavbar-start, navbar-center, navbar-end<div class="navbar">{CONTENT}</div>
navbar-start, navbar-center, navbar-end to position content horizontallybase-200 for background colorPagination is a group of buttons
joinjoin-itemjoin-vertical, join-horizontal<div class="join">{CONTENT}</div>
join-item for each button or link inside the paginationbtn class for styling pagination itemsProgress bar can be used to show the progress of a task or to show the passing of time
progressprogress-neutral, progress-primary, progress-secondary, progress-accent, progress-info, progress-success, progress-warning, progress-error<progress class="progress {MODIFIER}" value="50" max="100"></progress>
Radial progress can be used to show the progress of a task or to show the passing of time
radial-progress<div class="radial-progress" style="--value:70;" aria-valuenow="70" role="progressbar">70%</div>
--value CSS variable and text must be a number between 0 and 100aria-valuenow="{value}", aria-valuenow={value} so screen readers can properly read value and also show that its a progress element to themdiv instead of progress because browsers can't show text inside progress tag--size for setting size (default 5rem) and --thickness to set how thick the indicator isRadio buttons allow the user to select one option
radioradio-neutral, radio-primary, radio-secondary, radio-accent, radio-success, radio-warning, radio-info, radio-errorradio-xs, radio-sm, radio-md, radio-lg, radio-xl<input type="radio" name="{name}" class="radio {MODIFIER}" />
name attributes to avoid conflicts with other sets of radio inputs on the same pageRange slider is used to select a value by sliding a handle
rangerange-neutral, range-primary, range-secondary, range-accent, range-success, range-warning, range-info, range-errorrange-xs, range-sm, range-md, range-lg, range-xl<input type="range" min="0" max="100" value="40" class="range {MODIFIER}" />
min and max attributesRating is a set of radio buttons that allow the user to rate something
ratingrating-half, rating-hiddenrating-xs, rating-sm, rating-md, rating-lg, rating-xl<div class="rating {MODIFIER}">
<input type="radio" name="rating-1" class="mask mask-star" />
</div>
name attributes to avoid conflicts with other ratings on the same pagerating-hidden for the first radio to make it hidden so user can clear the ratingSelect is used to pick a value from a list of options
selectselect-ghostselect-neutral, select-primary, select-secondary, select-accent, select-info, select-success, select-warning, select-errorselect-xs, select-sm, select-md, select-lg, select-xl<select class="select {MODIFIER}">
<option>Option</option>
</select>
Skeleton is a component that can be used to show a loading state
skeletonskeleton-text<div class="skeleton"></div>
Example with text skeleton:
<div class="skeleton skeleton-text">Loading data...</div>
h-* and w-* utility classes to set height and widthStack visually puts elements on top of each other
stackstack-top, stack-bottom, stack-start, stack-end<div class="stack {MODIFIER}">{CONTENT}</div>
w-* and h-* classes to set the width and height of the stack, making all items the same sizeStat is used to show numbers and data in a block
statsstat, stat-title, stat-value, stat-desc, stat-figure, stat-actionsstats-horizontal, stats-vertical<div class="stats {MODIFIER}">
<div class="stat">{CONTENT}</div>
</div>
stats-vertical classstat-title, stat-value, stat-desc inside a statStatus is a really small icon to visually show the current status of an element, like online, offline, error, etc
statusstatus-neutral, status-primary, status-secondary, status-accent, status-info, status-success, status-warning, status-errorstatus-xs, status-sm, status-md, status-lg, status-xl<span class="status {MODIFIER}"></span>
Steps can be used to show a list of steps in a process
stepsstep, step-iconstep-neutral, step-primary, step-secondary, step-accent, step-info, step-success, step-warning, step-errorsteps-vertical, steps-horizontal<ul class="steps {MODIFIER}">
<li class="step">{step content}</li>
</ul>
step-primary classstep-icon classdata-content ,use data-content="{value}" at the <li>Swap allows you to toggle the visibility of two elements using a checkbox or a class name
swapswap-on, swap-off, swap-indeterminateswap-activeswap-rotate, swap-flipUsing checkbox
<label class="swap {MODIFIER}">
<input type="checkbox" />
<div class="swap-on">{content when active}</div>
<div class="swap-off">{content when inactive}</div>
</label>
Using class name
<div class="swap {MODIFIER}">
<div class="swap-on">{content when active}</div>
<div class="swap-off">{content when inactive}</div>
</div>
swap-active class using JS to control stateswap-indeterminate classTabs can be used to show a list of links in a tabbed format
tabstab, tab-contenttabs-box, tabs-border, tabs-lifttab-active, tab-disabledtabs-top, tabs-bottomUsing buttons:
<div role="tablist" class="tabs {MODIFIER}">
<button role="tab" class="tab">Tab</button>
</div>
Using radio inputs:
<div role="tablist" class="tabs tabs-box">
<input type="radio" name="my_tabs" class="tab" aria-label="Tab" />
</div>
Table can be used to show a list of data in a table format
tabletable-zebra, table-pin-rows, table-pin-colstable-xs, table-sm, table-md, table-lg, table-xl<div class="overflow-x-auto">
<table class="table {MODIFIER}">
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<th></th>
</tr>
</tbody>
</table>
</div>
overflow-x-auto class is added to the wrapper div to make the table horizontally scrollable on smaller screensText Rotate can show up to 6 lines of text, one at a time, with a an infinite loop animation. Duration is 10 seconds by default. The animation will pause on hover.
text-rotate<span class="text-rotate">
<span>
<span>Word 1</span>
<span>Word 2</span>
<span>Word 3</span>
<span>Word 4</span>
<span>Word 5</span>
<span>Word 6</span>
</span>
</span>
Example: Big font size, horizontally centered
<span class="text-rotate max-md:text-3xl text-7xl font-title">
<span class="justify-items-center">
<span>DESIGN</span>
<span>DEVELOP</span>
<span>DEPLOY</span>
<span>SCALE</span>
<span>MAINTAIN</span>
<span>REPEAT</span>
</span>
</span>
Rotating words in a sentence, different colors for each word
<span>
Providing AI Agents for
<span class="text-rotate">
<span>
<span class="bg-teal-400 text-teal-800 px-2">Designers</span>
<span class="bg-red-400 text-red-800 px-2">Developers</span>
<span class="bg-blue-400 text-blue-800 px-2">Managers</span>
</span>
</span>
</span>
Custom line height in case you have a tall font or need more vertical spacing between lines
<span class="text-rotate max-md:text-3xl text-7xl font-title leading-[2]">
<span class="justify-items-center">
<span>📐 DESIGN</span>
<span>⌨️ DEVELOP</span>
<span>🌎 DEPLOY</span>
<span>🌱 SCALE</span>
<span>🔧 MAINTAIN</span>
<span>♻️ REPEAT</span>
</span>
</span>
text-rotate must have one span or div inside it that contains 2 to 6 spans/divs for each line of textduration-{value} utility class, where value is in milliseconds (e.g. duration-12000 for 12 seconds)Textarea allows users to enter text in multiple lines
textareatextarea-ghosttextarea-neutral, textarea-primary, textarea-secondary, textarea-accent, textarea-info, textarea-success, textarea-warning, textarea-errortextarea-xs, textarea-sm, textarea-md, textarea-lg, textarea-xl<textarea class="textarea {MODIFIER}" placeholder="Bio"></textarea>
If a checked checkbox input or a checked radio input with theme-controller class exists in the page, The page will have the same theme as that input's value
theme-controller<input type="checkbox" value="{theme-name}" class="theme-controller" />
Timeline component shows a list of events in chronological order
timelinetimeline-start, timeline-middle, timeline-endtimeline-snap-icon, timeline-box, timeline-compacttimeline-vertical, timeline-horizontal<ul class="timeline {MODIFIER}">
<li>
<div class="timeline-start">{start}</div>
<div class="timeline-middle">{icon}</div>
<div class="timeline-end">{end}</div>
</li>
</ul>
timeline-vertical class to the ul element or just do nothing (because its the default style.)timeline-snap-icon to snap the icon to the start instead of middletimeline-compact class to force all items on one sideToast is a wrapper to stack elements, positioned on the corner of page
toasttoast-start, toast-center, toast-end, toast-top, toast-middle, toast-bottom<div class="toast {MODIFIER}">{CONTENT}</div>
Toggle is a checkbox that is styled to look like a switch button
toggletoggle-primary, toggle-secondary, toggle-accent, toggle-neutral, toggle-success, toggle-warning, toggle-info, toggle-errortoggle-xs, toggle-sm, toggle-md, toggle-lg, toggle-xl<input type="checkbox" class="toggle {MODIFIER}" />
Tooltip can be used to show a message when hovering over an element
tooltiptooltip-contenttooltip-opentooltip-top, tooltip-bottom, tooltip-left, tooltip-righttooltip-primary, tooltip-secondary, tooltip-accent, tooltip-info, tooltip-success, tooltip-warning, tooltip-error<div class="tooltip {MODIFIER}" data-tip="Tooltip text">
<button class="btn">Hover me</button>
</div>
Validator class changes the color of form elements to error or success based on input's validation rules
validatorvalidator-hint<input type="{type}" class="input validator" required />
<p class="validator-hint">Error message</p>
input, select, textarea