Cline rules
.clinerules/daisyui.mdCline rules
Quality
57/100
Scores the file, not the repository.Length
6,440 words
249 headings · 81 code blocksRepository
49
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# daisyUI 52daisyUI 5 is a CSS library for Tailwind CSS 43daisyUI 5 provides class names for common UI components45- [daisyUI 5 docs](http://daisyui.com)6- [Guide: How to use this file in LLMs and code editors](https://daisyui.com/docs/editor/)7- [daisyUI 5 release notes](https://daisyui.com/docs/v5/)8- [daisyUI 4 to 5 upgrade guide](https://daisyui.com/docs/upgrade/)910## daisyUI 5 install notes11[install guide](https://daisyui.com/docs/install/)121. daisyUI 5 requires Tailwind CSS 4132. `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.143. daisyUI 5 can be installed using `npm i -D daisyui@latest` and then adding `@plugin "daisyui";` to the CSS file154. daisyUI is suggested to be installed as a dependency but if you really want to use it from CDN, you can use Tailwind CSS and daisyUI CDN files:16```html17<link href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet" type="text/css" />18<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>19```205. A CSS file with Tailwind CSS and daisyUI looks like this (if it's a node dependency)21```css22@import "tailwindcss";23@plugin "daisyui";24```2526## daisyUI 5 usage rules271. We can give styles to a HTML element by adding daisyUI class names to it. By adding a component class name, part class names (if there's any available for that component), and modifier class names (if there's any available for that component)282. Components can be customized using Tailwind CSS utility classes if the customization is not possible using the existing daisyUI classes. For example `btn px-10` sets a custom horizontal padding to a `btn`293. If customization of daisyUI styles using Tailwind CSS utility classes didn't work because of CSS specificity issues, you can use the `!` 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 sparingly304. If a specific component or something similar to it doesn't exist in daisyUI, you can create your own component using Tailwind CSS utility315. when using Tailwind CSS `flex` and `grid` for layout, it should be responsive using Tailwind CSS responsive utility prefixes.326. Only allowed class names are existing daisyUI class names or Tailwind CSS utility classes.337. Ideally, you won't need to write any custom CSS. Using daisyUI class names or Tailwind CSS utility classes is preferred.348. suggested - if you need placeholder images, use https://picsum.photos/200/300 with the size you want359. suggested - when designing , don't add a custom font unless it's necessary3610. don't add `bg-base-100 text-base-content` to body unless it's necessary3711. For design decisions, use Refactoring UI book best practices3839daisyUI 5 class names are one of the following categories. these type names are only for reference and are not used in the actual code40- `component`: the required component class41- `part`: a child part of a component42- `style`: sets a specific style to component or part43- `behavior`: changes the behavior of component or part44- `color`: sets a specific color to component or part45- `size`: sets a specific size to component or part46- `placement`: sets a specific placement to component or part47- `direction`: sets a specific direction to component or part48- `modifier`: modifies the component or part in a specific way4950## Config51daisyUI 5 config docs: https://daisyui.com/docs/config/52daisyUI without config:53```css54@plugin "daisyui";55```56daisyUI config with `light` theme only:57```css58@plugin "daisyui" {59 themes: light --default;60}61```62daisyUI with all the default configs:63```css64@plugin "daisyui" {65 themes: light --default, dark --prefersdark;66 root: ":root";67 include: ;68 exclude: ;69 prefix: ;70 logs: true;71}72```73An example config:74In below config, all the built-in themes are enabled while bumblebee is the default theme and synthwave is the prefersdark theme (default dark mode)75All the other themes are enabled and can be used by adding `data-theme="THEME_NAME"` to the `<html>` element76root scrollbar gutter is excluded. `daisy-` prefix is used for all daisyUI classes and console.log is disabled77```css78@plugin "daisyui" {79 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;80 root: ":root";81 include: ;82 exclude: rootscrollgutter, checkbox;83 prefix: daisy-;84 logs: false;85}86```87## daisyUI 5 colors8889### daisyUI color names90- `primary`: Primary brand color, The main color of your brand91- `primary-content`: Foreground content color to use on primary color92- `secondary`: Secondary brand color, The optional, secondary color of your brand93- `secondary-content`: Foreground content color to use on secondary color94- `accent`: Accent brand color, The optional, accent color of your brand95- `accent-content`: Foreground content color to use on accent color96- `neutral`: Neutral dark color, For not-saturated parts of UI97- `neutral-content`: Foreground content color to use on neutral color98- `base-100`:-100 Base surface color of page, used for blank backgrounds99- `base-200`:-200 Base color, darker shade, to create elevations100- `base-300`:-300 Base color, even more darker shade, to create elevations101- `base-content`: Foreground content color to use on base color102- `info`: Info color, For informative/helpful messages103- `info-content`: Foreground content color to use on info color104- `success`: Success color, For success/safe messages105- `success-content`: Foreground content color to use on success color106- `warning`: Warning color, For warning/caution messages107- `warning-content`: Foreground content color to use on warning color108- `error`: Error color, For error/danger/destructive messages109- `error-content`: Foreground content color to use on error color110111### daisyUI color rules1121. daisyUI adds semantic color names to Tailwind CSS colors1132. daisyUI color names can be used in utility classes, like other Tailwind CSS color names. for example, `bg-primary` will use the primary color for the background1143. daisyUI color names include variables as value so they can change based the theme1154. There's no need to use `dark:` for daisyUI color names1165. Ideally only daisyUI color names should be used for colors so the colors can change automatically based on the theme1176. If a Tailwind CSS color name (like `red-500`) is used, it will be same red color on all themes1187. If a daisyUI color name (like `primary`) is used, it will change color based on the theme1198. Using Tailwind CSS color names for text colors should be avoided because Tailwind CSS color `text-gray-800` on `bg-base-100` would be unreadable on a dark theme - because on dark theme, `bg-base-100` is a dark color1209. `*-content` colors should have a good contrast compared to their associated colors12110. suggestion - when designing a page use `base-*` colors for majority of the page. use `primary` color for important elements122123### daisyUI custom theme with custom colors124A CSS file with Tailwind CSS, daisyUI and a custom daisyUI theme looks like this:125```css126@import "tailwindcss";127@plugin "daisyui";128@plugin "daisyui/theme" {129 name: "mytheme";130 default: true; /* set as default */131 prefersdark: false; /* set as default dark mode (prefers-color-scheme:dark) */132 color-scheme: light; /* color of browser-provided UI */133134 --color-base-100: oklch(98% 0.02 240);135 --color-base-200: oklch(95% 0.03 240);136 --color-base-300: oklch(92% 0.04 240);137 --color-base-content: oklch(20% 0.05 240);138 --color-primary: oklch(55% 0.3 240);139 --color-primary-content: oklch(98% 0.01 240);140 --color-secondary: oklch(70% 0.25 200);141 --color-secondary-content: oklch(98% 0.01 200);142 --color-accent: oklch(65% 0.25 160);143 --color-accent-content: oklch(98% 0.01 160);144 --color-neutral: oklch(50% 0.05 240);145 --color-neutral-content: oklch(98% 0.01 240);146 --color-info: oklch(70% 0.2 220);147 --color-info-content: oklch(98% 0.01 220);148 --color-success: oklch(65% 0.25 140);149 --color-success-content: oklch(98% 0.01 140);150 --color-warning: oklch(80% 0.25 80);151 --color-warning-content: oklch(20% 0.05 80);152 --color-error: oklch(65% 0.3 30);153 --color-error-content: oklch(98% 0.01 30);154155 --radius-selector: 1rem; /* border radius of selectors (checkbox, toggle, badge) */156 --radius-field: 0.25rem; /* border radius of fields (button, input, select, tab) */157 --radius-box: 0.5rem; /* border radius of boxes (card, modal, alert) */158159 --size-selector: 0.25rem; /* base size of selectors (checkbox, toggle, badge) */160 --size-field: 0.25rem; /* base size of fields (button, input, select, tab) */161162 --border: 1px; /* border size */163164 --depth: 1; /* only 0 or 1 – Adds a shadow and subtle 3D effect to components */165 --noise: 0; /* only 0 or 1 - Adds a subtle noise effect to components */166}167```168#### Rules169- All CSS variables above are required170- Colors can be OKLCH or hex or other formats171172You can use https://daisyui.com/theme-generator/ to create your own theme173174## daisyUI 5 components175176### accordion177Accordion is used for showing and hiding content but only one item can stay open at a time178179[accordion docs](https://daisyui.com/components/accordion/)180181#### Class names182- component: `collapse`183- part: `collapse-title`, `collapse-content`184- modifier: `collapse-arrow`, `collapse-plus`, `collapse-open`, `collapse-close`185186#### Syntax187```html188<div class="collapse {MODIFIER}">{CONTENT}</div>189```190where content is:191```html192<input type="radio" name="{name}" checked="{checked}" />193<div class="collapse-title">{title}</div>194<div class="collapse-content">{CONTENT}</div>195```196197#### Rules198- {MODIFIER} is optional and can have one of the modifier class names199- Accordion uses radio inputs. All radio inputs with the same name work together and only one of them can be open at a time200- If you have more than one set of accordion items on a page, use different names for the radio inputs on each set201- Replace {name} with a unique name for the accordion group202- replace `{checked}` with `checked="checked"` if you want the accordion to be open by default203204### alert205Alert informs users about important events206207[alert docs](https://daisyui.com/components/alert/)208209#### Class names210- component: `alert`211- style: `alert-outline`, `alert-dash`, `alert-soft`212- color: `alert-info`, `alert-success`, `alert-warning`, `alert-error`213- direction: `alert-vertical`, `alert-horizontal`214215#### Syntax216```html217<div role="alert" class="alert {MODIFIER}">{CONTENT}</div>218```219220#### Rules221- {MODIFIER} is optional and can have one of each style/color/direction class names222- Add `sm:alert-horizontal` for responsive layouts223224### avatar225Avatars are used to show a thumbnail226227[avatar docs](https://daisyui.com/components/avatar/)228229#### Class names230- component: `avatar`, `avatar-group`231- modifier: `avatar-online`, `avatar-offline`, `avatar-placeholder`232233#### Syntax234```html235<div class="avatar {MODIFIER}">236 <div>237 <img src="{image-url}" />238 </div>239</div>240```241242#### Rules243- {MODIFIER} is optional and can have one of the modifier class names244- Use `avatar-group` for containing multiple avatars245- You can set custom sizes using `w-*` and `h-*`246- You can use mask classes such as `mask-squircle`, `mask-hexagon`, `mask-triangle`247248### badge249Badges are used to inform the user of the status of specific data250251[badge docs](https://daisyui.com/components/badge/)252253#### Class names254- component: `badge`255- style: `badge-outline`, `badge-dash`, `badge-soft`, `badge-ghost`256- color: `badge-neutral`, `badge-primary`, `badge-secondary`, `badge-accent`, `badge-info`, `badge-success`, `badge-warning`, `badge-error`257- size: `badge-xs`, `badge-sm`, `badge-md`, `badge-lg`, `badge-xl`258259#### Syntax260```html261<span class="badge {MODIFIER}">Badge</span>262```263264#### Rules265- {MODIFIER} is optional and can have one of each style/color/size class names266- Can be used inside text or buttons267- To create an empty badge, just remove the text between the span tags268269### breadcrumbs270Breadcrumbs helps users to navigate271272[breadcrumbs docs](https://daisyui.com/components/breadcrumbs/)273274#### Class names275- component: `breadcrumbs`276277#### Syntax278```html279<div class="breadcrumbs">280 <ul><li><a>Link</a></li></ul>281</div>282```283284#### Rules285- breadcrumbs only has one main class name286- Can contain icons inside the links287- If you set `max-width` or the list gets larger than the container it will scroll288289### button290Buttons allow the user to take actions291292[button docs](https://daisyui.com/components/button/)293294#### Class names295- component: `btn`296- color: `btn-neutral`, `btn-primary`, `btn-secondary`, `btn-accent`, `btn-info`, `btn-success`, `btn-warning`, `btn-error`297- style: `btn-outline`, `btn-dash`, `btn-soft`, `btn-ghost`, `btn-link`298- behavior: `btn-active`, `btn-disabled`299- size: `btn-xs`, `btn-sm`, `btn-md`, `btn-lg`, `btn-xl`300- modifier: `btn-wide`, `btn-block`, `btn-square`, `btn-circle`301302#### Syntax303```html304<button class="btn {MODIFIER}">Button</button>305```306#### Rules307- {MODIFIER} is optional and can have one of each color/style/behavior/size/modifier class names308- btn can be used on any html tags such as `<button>`, `<a>`, `<input>`309- btn can have an icon before or after the text310- set `tabindex="-1" role="button" aria-disabled="true"` if you want to disable the button using a class name311312### calendar313Calendar includes styles for different calendar libraries314315[calendar docs](https://daisyui.com/components/calendar/)316317#### Class names318- component319 - `cally (for Cally web component)`320 - `pika-single (for the input field that opens Pikaday calendar)`321 - `react-day-picker (for the DayPicker component)`322323#### Syntax324For Cally:325```html326<calendar-date class="cally">{CONTENT}</calendar-date>327```328For Pikaday:329```html330<input type="text" class="input pika-single">331```332For React Day Picker:333```html334<DayPicker className="react-day-picker">335```336337#### Rules338- daisyUI supports Cally, Pikaday, React Day Picker339340### card341Cards are used to group and display content342343[card docs](https://daisyui.com/components/card/)344345#### Class names346- component: `card`347- part: `card-title`, `card-body`, `card-actions`348- style: `card-border`, `card-dash`349- modifier: `card-side`, `image-full`350- size: `card-xs`, `card-sm`, `card-md`, `card-lg`, `card-xl`351352#### Syntax353```html354<div class="card {MODIFIER}">355 <figure><img src="{image-url}" alt="{alt-text}" /></figure>356 <div class="card-body">357 <h2 class="card-title">{title}</h2>358 <p>{CONTENT}</p>359 <div class="card-actions">{actions}</div>360 </div>361</div>362```363364#### Rules365- {MODIFIER} is optional and can have one of the modifier class names and one of the size class names366- `<figure>` and `<div class="card-body">` are optional367- can use `sm:card-horizontal` for responsive layouts368- If image is placed after `card-body`, the image will be placed at the bottom369370### carousel371Carousel show images or content in a scrollable area372373[carousel docs](https://daisyui.com/components/carousel/)374375#### Class names376- component: `carousel`377- part: `carousel-item`378- modifier: `carousel-start`, `carousel-center`, `carousel-end`379- direction: `carousel-horizontal`, `carousel-vertical`380381#### Syntax382```html383<div class="carousel {MODIFIER}">{CONTENT}</div>384```385386#### Rules387- {MODIFIER} is optional and can have one of the modifier/direction class names388- Content is a list of `carousel-item` divs: `<div class="carousel-item"></div>`389- To create a full-width carousel, add `w-full` to each carousel item390391### chat392Chat bubbles are used to show one line of conversation and all its data, including the author image, author name, time, etc393394[chat docs](https://daisyui.com/components/chat/)395396#### Class names397- component: `chat`398- part: `chat-image`, `chat-header`, `chat-footer`, `chat-bubble`399- placement: `chat-start`, `chat-end`400- color: `chat-bubble-neutral`, `chat-bubble-primary`, `chat-bubble-secondary`, `chat-bubble-accent`, `chat-bubble-info`, `chat-bubble-success`, `chat-bubble-warning`, `chat-bubble-error`401402#### Syntax403```html404<div class="chat {PLACEMENT}">405 <div class="chat-image"></div>406 <div class="chat-header"></div>407 <div class="chat-bubble {COLOR}">Message text</div>408 <div class="chat-footer"></div>409</div>410```411412#### Rules413- {PLACEMENT} is required and must be either `chat-start` or `chat-end`414- {COLOR} is optional and can have one of the color class names415- To add an avatar, use `<div class="chat-image avatar">` and nest the avatar content inside416417### checkbox418Checkboxes are used to select or deselect a value419420[checkbox docs](https://daisyui.com/components/checkbox/)421422#### Class names423- component: `checkbox`424- color: `checkbox-primary`, `checkbox-secondary`, `checkbox-accent`, `checkbox-neutral`, `checkbox-success`, `checkbox-warning`, `checkbox-info`, `checkbox-error`425- size: `checkbox-xs`, `checkbox-sm`, `checkbox-md`, `checkbox-lg`, `checkbox-xl`426427#### Syntax428```html429<input type="checkbox" class="checkbox {MODIFIER}" />430```431432#### Rules433- {MODIFIER} is optional and can have one of each color/size class names434435### collapse436Collapse is used for showing and hiding content437438[collapse docs](https://daisyui.com/components/collapse/)439440#### Class names441- component: `collapse`442- part: `collapse-title`, `collapse-content`443- modifier: `collapse-arrow`, `collapse-plus`, `collapse-open`, `collapse-close`444445#### Syntax446```html447<div tabindex="0" class="collapse {MODIFIER}">448 <div class="collapse-title">{title}</div>449 <div class="collapse-content">{CONTENT}</div>450</div>451```452453#### Rules454- {MODIFIER} is optional and can have one of the modifier class names455- instead of `tabindex="0"`, you can use `<input type="checkbox">` as a first child456- Can also be a details/summary tag457458### countdown459Countdown gives you a transition effect when you change a number between 0 to 99460461[countdown docs](https://daisyui.com/components/countdown/)462463#### Class names464- component: `countdown`465466#### Syntax467```html468<span class="countdown">469 <span style="--value:{number};">number</span>470</span>471```472473#### Rules474- The `--value` CSS variable and text must be a number between 0 and 99475- you need to change the span text and the `--value` CSS variable using JS476- you need to add `aria-live="polite"` and `aria-label="{number}"` so screen readers can properly read changes477478### diff479Diff component shows a side-by-side comparison of two items480481[diff docs](https://daisyui.com/components/diff/)482483#### Class names484- component: `diff`485- part: `diff-item-1`, `diff-item-2`, `diff-resizer`486487#### Syntax488```html489<figure class="diff">490 <div class="diff-item-1">{item1}</div>491 <div class="diff-item-2">{item2}</div>492 <div class="diff-resizer"></div>493</figure>494```495496#### Rules497- To maintain aspect ratio, add `aspect-16/9` or other aspect ratio classes to `<figure class="diff">` element498499### divider500Divider will be used to separate content vertically or horizontally501502[divider docs](https://daisyui.com/components/divider/)503504#### Class names505- component: `divider`506- color: `divider-neutral`, `divider-primary`, `divider-secondary`, `divider-accent`, `divider-success`, `divider-warning`, `divider-info`, `divider-error`507- direction: `divider-vertical`, `divider-horizontal`508- placement: `divider-start`, `divider-end`509510#### Syntax511```html512<div class="divider {MODIFIER}">{text}</div>513```514515#### Rules516- {MODIFIER} is optional and can have one of each direction/color/placement class names517- Omit text for a blank divider518519### dock520Dock (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 screen521522[dock docs](https://daisyui.com/components/dock/)523524#### Class names525- component: `dock`526- part: `dock-label`527- modifier: `dock-active`528- size: `dock-xs`, `dock-sm`, `dock-md`, `dock-lg`, `dock-xl`529530#### Syntax531```html532<div class="dock {MODIFIER}">{CONTENT}</div>533```534where content is a list of buttons:535```html536<button>537 <svg>{icon}</svg>538 <span class="dock-label">Text</span>539</button>540```541542#### Rules543- {MODIFIER} is optional and can have one of the size class names544- To make a button active, add `dock-active` class to the button545- add `<meta name="viewport" content="viewport-fit=cover">` is required for responsivness of the dock in iOS546547### drawer548Drawer is a grid layout that can show/hide a sidebar on the left or right side of the page549550[drawer docs](https://daisyui.com/components/drawer/)551552#### Class names553- component: `drawer`554- part: `drawer-toggle`, `drawer-content`, `drawer-side`, `drawer-overlay`555- placement: `drawer-end`556- modifier: `drawer-open`557558#### Syntax559```html560<div class="drawer {MODIFIER}">561 <input id="my-drawer" type="checkbox" class="drawer-toggle" />562 <div class="drawer-content">{CONTENT}</div>563 <div class="drawer-side">{SIDEBAR}</div>564</div>565```566where {CONTENT} can be navbar, site content, footer, etc567and {SIDEBAR} can be a menu like:568```html569<ul class="menu p-4 w-80 min-h-full bg-base-100 text-base-content">570 <li><a>Item 1</a></li>571 <li><a>Item 2</a></li>572</ul>573```574575#### Rules576- {MODIFIER} is optional and can have one of the modifier/placement class names577- `id` is required for the `drawer-toggle` input. change `my-drawer` to a unique id according to your needs578- `lg:drawer-open` can be used to make sidebar visible on larger screens579- `drawer-toggle` is a hidden checkbox. Use label with "for" attribute to toggle state580- if you want to open the drawer when a button is clicked, use `<label for="my-drawer" class="btn drawer-button">Open drawer</label>` where `my-drawer` is the id of the `drawer-toggle` input581- when using drawer, every page content must be inside `drawer-content` element. for example navbar, footer, etc should not be outside of `drawer`582583### dropdown584Dropdown can open a menu or any other element when the button is clicked585586[dropdown docs](https://daisyui.com/components/dropdown/)587588#### Class names589- component: `dropdown`590- part: `dropdown-content`591- placement: `dropdown-start`, `dropdown-center`, `dropdown-end`, `dropdown-top`, `dropdown-bottom`, `dropdown-left`, `dropdown-right`592- modifier: `dropdown-hover`, `dropdown-open`593594#### Syntax595Using details and summary596```html597<details class="dropdown">598 <summary>Button</summary>599 <ul class="dropdown-content">{CONTENT}</ul>600</details>601```602603Using popover API604```html605<button popovertarget="{id}" style="anchor-name:--{anchor}">{button}</button>606<ul class="dropdown-content" popover id="{id}" style="position-anchor:--{anchor}">{CONTENT}</ul>607```608609Using CSS focus610```html611<div class="dropdown">612 <div tabindex="0" role="button">Button</div>613 <ul tabindex="0" class="dropdown-content">{CONTENT}</ul>614</div>615```616617#### Rules618- {MODIFIER} is optional and can have one of the modifier/placement class names619- replace `{id}` and `{anchor}` with a unique name620- For CSS focus dropdowns, use `tabindex="0"` and `role="button"` on the button621- The content can be any HTML element (not just `<ul>`)622623### fieldset624Fieldset is a container for grouping related form elements. It includes fieldset-legend as a title and label as a description625626[fieldset docs](https://daisyui.com/components/fieldset/)627628#### Class names629- Component: `fieldset`, `label`630- Parts: `fieldset-legend`631632#### Syntax633```html634<fieldset class="fieldset">635 <legend class="fieldset-legend">{title}</legend>636 {CONTENT}637 <p class="label">{description}</p>638</fieldset>639```640641#### Rules642- You can use any element as a direct child of fieldset to add form elements643644### file-input645File Input is a an input field for uploading files646647[file-input docs](https://daisyui.com/components/file-input/)648649#### Class Names:650- Component: `file-input`651- Style: `file-input-ghost`652- Color: `file-input-neutral`, `file-input-primary`, `file-input-secondary`, `file-input-accent`, `file-input-info`, `file-input-success`, `file-input-warning`, `file-input-error`653- Size: `file-input-xs`, `file-input-sm`, `file-input-md`, `file-input-lg`, `file-input-xl`654655#### Syntax656```html657<input type="file" class="file-input {MODIFIER}" />658```659660#### Rules661- {MODIFIER} is optional and can have one of each style/color/size class names662663### filter664Filter is a group of radio buttons. Choosing one of the options will hide the others and shows a reset button next to the chosen option665666[filter docs](https://daisyui.com/components/filter/)667668#### Class names669- component: `filter`670- part: `filter-reset`671672#### Syntax673Using HTML form674```html675<form class="filter">676 <input class="btn btn-square" type="reset" value="×"/>677 <input class="btn" type="radio" name="{NAME}" aria-label="Tab 1 title"/>678 <input class="btn" type="radio" name="{NAME}" aria-label="Tab 2 title"/>679</form>680```681Without HTML form682```html683<div class="filter">684 <input class="btn filter-reset" type="radio" name="{NAME}" aria-label="×"/>685 <input class="btn" type="radio" name="{NAME}" aria-label="Tab 1 title"/>686 <input class="btn" type="radio" name="{NAME}" aria-label="Tab 2 title"/>687</div>688```689690#### Rules691- replace `{NAME}` with proper value, according to the context of the filter692- Each set of radio inputs must have unique `name` attributes to avoid conflicts693- Use `<form>` tag when possible and only use `<div>` if you can't use a HTML form for some reason694- Use `filter-reset` class for the reset button695696### footer697Footer can contain logo, copyright notice, and links to other pages698699[footer docs](https://daisyui.com/components/footer/)700701#### Class names702- component: `footer`703- part: `footer-title`704- placement: `footer-center`705- direction: `footer-horizontal`, `footer-vertical`706707#### Syntax708```html709<footer class="footer {MODIFIER}">{CONTENT}</footer>710```711where content can contain several `<nav>` tags with `footer-title` and links inside712713#### Rules714- {MODIFIER} is optional and can have one of each placement/direction class names715- try to use `sm:footer-horizontal` to make footer responsive716- suggestion - use `base-200` for background color717718### hero719Hero is a component for displaying a large box or image with a title and description720721[hero docs](https://daisyui.com/components/hero/)722723#### Class names724- component: `hero`725- part: `hero-content`, `hero-overlay`726727#### Syntax728```html729<div class="hero {MODIFIER}">{CONTENT}</div>730```731732#### Rules733- {MODIFIER} is optional734- Use `hero-content` for the text content735- Use `hero-overlay` inside the hero to overlay the background image with a color736- Content can contain a figure737738### indicator739Indicators are used to place an element on the corner of another element740741[indicator docs](https://daisyui.com/components/indicator/)742743#### Class names744- component: `indicator`745- part: `indicator-item`746- placement: `indicator-start`, `indicator-center`, `indicator-end`, `indicator-top`, `indicator-middle`, `indicator-bottom`747748#### Syntax749```html750<div class="indicator">751 <span class="indicator-item">{indicator content}</span>752 <div>{main content}</div>753</div>754```755756#### Rules757- Add all indicator elements (with `indicator-item` class) before the main content758- {placement} is optional and can have one of each horizontal/vertical class names. default is `indicator-end indicator-top`759760### input761Text Input is a simple input field762763[input docs](https://daisyui.com/components/input/)764765#### Class names766- component: `input`767- style: `input-ghost`768- color: `input-neutral`, `input-primary`, `input-secondary`, `input-accent`, `input-info`, `input-success`, `input-warning`, `input-error`769- size: `input-xs`, `input-sm`, `input-md`, `input-lg`, `input-xl`770771#### Syntax772```html773<input type="{type}" placeholder="Type here" class="input {MODIFIER}" />774```775776#### Rules777- {MODIFIER} is optional and can have one of each style/color/size class names778- Can be used with any input field type (text, password, email, etc.)779- Use `input` class for the parent when you have more than one element inside input780781### join782Join 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 items783784[join docs](https://daisyui.com/components/join/)785786#### Class names787- component: `join`, `join-item`788- direction: `join-vertical`, `join-horizontal`789790#### Syntax791```html792<div class="join {MODIFIER}">{CONTENT}</div>793```794795#### Rules796- {MODIFIER} is optional and can have one of the direction class names797- Any direct child of the join element will get joined together798- Any element with `join-item` will be affected799- Use `lg:join-horizontal` for responsive layouts800801### kbd802Kbd is used to display keyboard shortcuts803804[kbd docs](https://daisyui.com/components/kbd/)805806#### Class names807- component: `kbd`808- size: `kbd-xs`, `kbd-sm`, `kbd-md`, `kbd-lg`, `kbd-xl`809810#### Syntax811```html812<kbd class="kbd {MODIFIER}">K</kbd>813```814815#### Rules816- {MODIFIER} is optional and can have one of the size class names817818### label819Label is used to provide a name or title for an input field. Label can be placed before or after the field820821[label docs](https://daisyui.com/components/label/)822823#### Class names824- component: `label`, `floating-label`825826#### Syntax827For regular label:828```html829<label class="input">830 <span class="label">{label text}</span>831 <input type="text" placeholder="Type here" />832</label>833```834For floating label:835```html836<label class="floating-label">837 <input type="text" placeholder="Type here" class="input" />838 <span>{label text}</span>839</label>840```841842#### Rules843- The `input` class is for styling the parent element which contains the input field and label, so the label does not have the 'input' class844- Use `floating-label` for the parent of an input field and a span that floats above the input field when the field is focused845846### link847Link adds the missing underline style to links848849[link docs](https://daisyui.com/components/link/)850851#### Class names852- component: `link`853- style: `link-hover`854- color: `link-neutral`, `link-primary`, `link-secondary`, `link-accent`, `link-success`, `link-info`, `link-warning`, `link-error`855856#### Syntax857```html858<a class="link {MODIFIER}">Click me</a>859```860861#### Rules862- {MODIFIER} is optional and can have one of the modifier class names863864### list865List is a vertical layout to display information in rows866867[list docs](https://daisyui.com/components/list/)868869#### Class Names:870- Component: `list`, `list-row`871- Modifier: `list-col-wrap`, `list-col-grow`872873#### Syntax874```html875<ul class="list">876 <li class="list-row">{CONTENT}</li>877</ul>878```879880#### Rules881- Use `list-row` for each item inside the list882- By default, the second child of the `list-row` will fill the remaining space. You can use `list-col-grow` on another child to make it fill the remaining space instead883- Use `list-col-wrap` to force an item to wrap to the next line884885### loading886Loading shows an animation to indicate that something is loading887888[loading docs](https://daisyui.com/components/loading/)889890#### Class names891- component: `loading`892- style: `loading-spinner`, `loading-dots`, `loading-ring`, `loading-ball`, `loading-bars`, `loading-infinity`893- size: `loading-xs`, `loading-sm`, `loading-md`, `loading-lg`, `loading-xl`894895#### Syntax896```html897<span class="loading {MODIFIER}"></span>898```899900#### Rules901- {MODIFIER} is optional and can have one of the style/size class names902903### mask904Mask crops the content of the element to common shapes905906[mask docs](https://daisyui.com/components/mask/)907908#### Class names909- component: `mask`910- style: `mask-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-4`911- modifier: `mask-half-1`, `mask-half-2`912913#### Syntax914```html915<img class="mask {MODIFIER}" src="{image-url}" />916```917918#### Rules919- {MODIFIER} is required and can have one of the style/modifier class names920- You can change the shape of any element using `mask` class names921- You can set custom sizes using `w-*` and `h-*`922923### menu924Menu is used to display a list of links vertically or horizontally925926[menu docs](https://daisyui.com/components/menu/)927928#### Class names929- component: `menu`930- part: `menu-title`, `menu-dropdown`, `menu-dropdown-toggle`931- modifier: `menu-disabled`, `menu-active`, `menu-focus`, `menu-dropdown-show`932- size: `menu-xs`, `menu-sm`, `menu-md`, `menu-lg`, `menu-xl`933- direction: `menu-vertical`, `menu-horizontal`934935#### Syntax936Vertical menu:937```html938<ul class="menu">939 <li><button>Item</button></li>940</ul>941```942Horizontal menu:943```html944<ul class="menu menu-horizontal">945 <li><button>Item</button></li>946</ul>947```948949#### Rules950- {MODIFIER} is optional and can have one of the modifier/size/direction class names951- Use `lg:menu-horizontal` for responsive layouts952- Use `menu-title` for list item title953- Use `<details>` tag to make submenus collapsible954- Use `menu-dropdown` and `menu-dropdown-toggle` to toggle the dropdown using JS955956### mockup-browser957Browser mockup shows a box that looks like a browser window958959[mockup-browser docs](https://daisyui.com/components/mockup-browser/)960961#### Class names962- component: `mockup-browser`963- part: `mockup-browser-toolbar`964965#### Syntax966```html967<div class="mockup-browser">968 <div class="mockup-browser-toolbar">969 {toolbar content}970 </div>971 <div>{CONTENT}</div>972</div>973```974975#### Rules976- For a default mockup, use just `mockup-browser` class name977- To set a URL in toolbar, add a div with `input` class978979### mockup-code980Code mockup is used to show a block of code in a box that looks like a code editor981982[mockup-code docs](https://daisyui.com/components/mockup-code/)983984#### Class names985- component: `mockup-code`986987#### Syntax988```html989<div class="mockup-code">990 <pre data-prefix="$"><code>npm i daisyui</code></pre>991</div>992```993994#### Rules995- Use `<pre data-prefix="{prefix}">` to show a prefix before each line996- Use `<code>` tag to add code syntax highlighting (requires additional library)997- To highlight a line, add background/text color998999### mockup-phone1000Phone mockup shows a mockup of an iPhone10011002[mockup-phone docs](https://daisyui.com/components/mockup-phone/)10031004#### Class names1005- component: `mockup-phone`1006- part: `mockup-phone-camera`, `mockup-phone-display`10071008#### Syntax1009```html1010<div class="mockup-phone">1011 <div class="mockup-phone-camera"></div>1012 <div class="mockup-phone-display">{CONTENT}</div>1013</div>1014```10151016#### Rules1017- Inside `mockup-phone-display` you can add anything10181019### mockup-window1020Window mockup shows a box that looks like an operating system window10211022[mockup-window docs](https://daisyui.com/components/mockup-window/)10231024#### Class names1025- component: `mockup-window`10261027#### Syntax1028```html1029<div class="mockup-window">1030 <div>{CONTENT}</div>1031</div>1032```10331034### modal1035Modal is used to show a dialog or a box when you click a button10361037[modal docs](https://daisyui.com/components/modal/)10381039#### Class names1040- component: `modal`1041- part: `modal-box`, `modal-action`, `modal-backdrop`, `modal-toggle`1042- modifier: `modal-open`1043- placement: `modal-top`, `modal-middle`, `modal-bottom`, `modal-start`, `modal-end`10441045#### Syntax1046Using HTML dialog element1047```html1048<button onclick="my_modal.showModal()">Open modal</button>1049<dialog id="my_modal" class="modal">1050 <div class="modal-box">{CONTENT}</div>1051 <form method="dialog" class="modal-backdrop"><button>close</button></form>1052</dialog>1053```10541055Using checkbox (legacy)1056```html1057<label for="my-modal" class="btn">Open modal</label>1058<input type="checkbox" id="my-modal" class="modal-toggle" />1059<div class="modal">1060 <div class="modal-box">{CONTENT}</div>1061 <label class="modal-backdrop" for="my-modal">Close</label>1062</div>1063```10641065Using anchor links (legacy)1066```html1067<a href="#my-modal" class="btn">Open modal</a>1068<div class="modal" id="my-modal">1069 <div class="modal-box">{CONTENT}</div>1070</div>1071```10721073#### Rules1074- {MODIFIER} is optional and can have one of the modifier/placement class names1075- Add `tabindex="0"` to make modal focusable1076- Use unique IDs for each modal1077- For HTML dialog element modals, add `<form method="dialog">` for closing the modal with submit10781079### navbar1080Navbar is used to show a navigation bar on the top of the page10811082[navbar docs](https://daisyui.com/components/navbar/)10831084#### Class names1085- component: `navbar`1086- part: `navbar-start`, `navbar-center`, `navbar-end`10871088#### Syntax1089```html1090<div class="navbar">{CONTENT}</div>1091```10921093#### Rules1094- use `navbar-start`, `navbar-center`, `navbar-end` to position content horizontally1095- put anything inside each section1096- suggestion - use `base-200` for background color10971098### pagination1099Pagination is a group of buttons11001101[pagination docs](https://daisyui.com/components/pagination/)11021103#### Class names1104- component: `join`1105- part: `join-item`1106- direction: `join-vertical`, `join-horizontal`11071108#### Syntax1109```html1110<div class="join">{CONTENT}</div>1111```11121113#### Rules1114- Use `join-item` for each button or link inside the pagination1115- Use `btn` class for styling pagination items11161117### progress1118Progress bar can be used to show the progress of a task or to show the passing of time11191120[progress docs](https://daisyui.com/components/progress/)11211122#### Class names1123- component: `progress`1124- color: `progress-neutral`, `progress-primary`, `progress-secondary`, `progress-accent`, `progress-info`, `progress-success`, `progress-warning`, `progress-error`11251126#### Syntax1127```html1128<progress class="progress {MODIFIER}" value="50" max="100"></progress>1129```11301131#### Rules1132- {MODIFIER} is optional and can have one of the color class names1133- You must specify value and max attributes11341135### radial-progress1136Radial progress can be used to show the progress of a task or to show the passing of time11371138[radial-progress docs](https://daisyui.com/components/radial-progress/)11391140#### Class names1141- component: `radial-progress`11421143#### Syntax1144```html1145<div class="radial-progress" style="--value:70;" aria-valuenow="70" role="progressbar">70%</div>1146```11471148#### Rules1149- The `--value` CSS variable and text must be a number between 0 and 1001150- you need to add `aria-valuenow="{value}"`, `aria-valuenow={value}` so screen readers can properly read value and also show that its a progress element to them1151- Use `div` instead of progress because browsers can't show text inside progress tag1152- Use `--size` for setting size (default 5rem) and `--thickness` to set how thick the indicator is11531154### radio1155Radio buttons allow the user to select one option11561157[radio docs](https://daisyui.com/components/radio/)11581159#### Class names1160- component: `radio`1161- color: `radio-neutral`, `radio-primary`, `radio-secondary`, `radio-accent`, `radio-success`, `radio-warning`, `radio-info`, `radio-error`1162- size: `radio-xs`, `radio-sm`, `radio-md`, `radio-lg`, `radio-xl`11631164#### Syntax1165```html1166<input type="radio" name="{name}" class="radio {MODIFIER}" />1167```11681169#### Rules1170- {MODIFIER} is optional and can have one of the size/color class names1171- Replace {name} with a unique name for the radio group1172- Each set of radio inputs should have unique `name` attributes to avoid conflicts with other sets of radio inputs on the same page11731174### range1175Range slider is used to select a value by sliding a handle11761177[range docs](https://daisyui.com/components/range/)11781179#### Class names1180- component: `range`1181- color: `range-neutral`, `range-primary`, `range-secondary`, `range-accent`, `range-success`, `range-warning`, `range-info`, `range-error`1182- size: `range-xs`, `range-sm`, `range-md`, `range-lg`, `range-xl`11831184#### Syntax1185```html1186<input type="range" min="0" max="100" value="40" class="range {MODIFIER}" />1187```11881189#### Rules1190- {MODIFIER} is optional and can have one of each color/size class names1191- You must specify `min` and `max` attributes11921193### rating1194Rating is a set of radio buttons that allow the user to rate something11951196[rating docs](https://daisyui.com/components/rating/)11971198#### Class names1199- component: `rating`1200- modifier: `rating-half`, `rating-hidden`1201- size: `rating-xs`, `rating-sm`, `rating-md`, `rating-lg`, `rating-xl`12021203#### Syntax1204```html1205<div class="rating {MODIFIER}">1206 <input type="radio" name="rating-1" class="mask mask-star" />1207</div>1208```12091210#### Rules1211- {MODIFIER} is optional and can have one of the modifier/size class names1212- Each set of rating inputs should have unique `name` attributes to avoid conflicts with other ratings on the same page1213- Add `rating-hidden` for the first radio to make it hidden so user can clear the rating12141215### select1216Select is used to pick a value from a list of options12171218[select docs](https://daisyui.com/components/select/)12191220#### Class names1221- component: `select`1222- style: `select-ghost`1223- color: `select-neutral`, `select-primary`, `select-secondary`, `select-accent`, `select-info`, `select-success`, `select-warning`, `select-error`1224- size: `select-xs`, `select-sm`, `select-md`, `select-lg`, `select-xl`12251226#### Syntax1227```html1228<select class="select {MODIFIER}">1229 <option>Option</option>1230</select>1231```12321233#### Rules1234- {MODIFIER} is optional and can have one of each style/color/size class names12351236### skeleton1237Skeleton is a component that can be used to show a loading state12381239[skeleton docs](https://daisyui.com/components/skeleton/)12401241#### Class names1242- component: `skeleton`12431244#### Syntax1245```html1246<div class="skeleton"></div>1247```12481249#### Rules1250- Add `h-*` and `w-*` utility classes to set height and width12511252### stack1253Stack visually puts elements on top of each other12541255[stack docs](https://daisyui.com/components/stack/)12561257#### Class Names:1258- Component: `stack`1259- Modifier: `stack-top`, `stack-bottom`, `stack-start`, `stack-end`12601261#### Syntax1262```html1263<div class="stack {MODIFIER}">{CONTENT}</div>1264```12651266#### Rules1267- {MODIFIER} is optional and can have one of the modifier class names1268- You can use `w-*` and `h-*` classes to set the width and height of the stack, making all items the same size12691270### stat1271Stat is used to show numbers and data in a block12721273[stat docs](https://daisyui.com/components/stat/)12741275#### Class names1276- Component: `stats`1277- Part: `stat`, `stat-title`, `stat-value`, `stat-desc`, `stat-figure`, `stat-actions`1278- Direction: `stats-horizontal`, `stats-vertical`12791280#### Syntax1281```html1282<div class="stats {MODIFIER}">1283 <div class="stat">{CONTENT}</div>1284</div>1285```12861287#### Rules1288- {MODIFIER} is optional and can have one of the direction class names1289- It's horizontal by default but you can make it vertical with the `stats-vertical` class1290- Content includes `stat-title`, `stat-value`, `stat-desc` inside a `stat`12911292### status1293Status is a really small icon to visually show the current status of an element, like online, offline, error, etc12941295[status docs](https://daisyui.com/components/status/)12961297#### Class Names:1298- Component: `status`1299- Color: `status-neutral`, `status-primary`, `status-secondary`, `status-accent`, `status-info`, `status-success`, `status-warning`, `status-error`1300- Size: `status-xs`, `status-sm`, `status-md`, `status-lg`, `status-xl`13011302#### Syntax1303```html1304<span class="status {MODIFIER}"></span>1305```13061307#### Rules1308- {MODIFIER} is optional and can have one of the color/size class names1309- This component does not render anything visible13101311### steps1312Steps can be used to show a list of steps in a process13131314[steps docs](https://daisyui.com/components/steps/)13151316#### Class Names:1317- Component: `steps`1318- Part: `step`, `step-icon`1319- Color: `step-neutral`, `step-primary`, `step-secondary`, `step-accent`, `step-info`, `step-success`, `step-warning`, `step-error`1320- Direction: `steps-vertical`, `steps-horizontal`13211322#### Syntax1323```html1324<ul class="steps {MODIFIER}">1325 <li class="step">{step content}</li>1326</ul>1327```13281329#### Rules1330- {MODIFIER} is optional and can have one of each direction/color class names1331- To make a step active, add the `step-primary` class1332- You can add an icon in each step using `step-icon` class1333- To display data in `data-content` ,use `data-content="{value}"` at the `<li>`13341335### swap1336Swap allows you to toggle the visibility of two elements using a checkbox or a class name13371338[swap docs](https://daisyui.com/components/swap/)13391340#### Class Names:1341- Component: `swap`1342- Part: `swap-on`, `swap-off`, `swap-indeterminate`1343- Modifier: `swap-active`1344- Style: `swap-rotate`, `swap-flip`13451346#### Syntax1347Using checkbox1348```html1349<label class="swap {MODIFIER}">1350 <input type="checkbox" />1351 <div class="swap-on">{content when active}</div>1352 <div class="swap-off">{content when inactive}</div>1353</label>1354```13551356Using class name1357```html1358<div class="swap {MODIFIER}">1359 <div class="swap-on">{content when active}</div>1360 <div class="swap-off">{content when inactive}</div>1361</div>1362```13631364#### Rules1365- {MODIFIER} is optional and can have one of the modifier/style class names1366- Use only a hidden checkbox to control swap state or add/remove the `swap-active` class using JS to control state1367- To show something when the checkbox is indeterminate, use `swap-indeterminate` class13681369### tab1370Tabs can be used to show a list of links in a tabbed format13711372[tab docs](https://daisyui.com/components/tab/)13731374#### Class Names:1375- Component: `tabs`1376- Part: `tab`, `tab-content`1377- Style: `tabs-box`, `tabs-border`, `tabs-lift`1378- Modifier: `tab-active`, `tab-disabled`1379- Placement: `tabs-top`, `tabs-bottom`13801381#### Syntax1382Using buttons:1383```html1384<div role="tablist" class="tabs {MODIFIER}">1385 <button role="tab" class="tab">Tab</button>1386</div>1387```13881389Using radio inputs:1390```html1391<div role="tablist" class="tabs tabs-box">1392 <input type="radio" name="my_tabs" class="tab" aria-label="Tab" />1393</div>1394```13951396#### Rules1397- {MODIFIER} is optional and can have one of the style/size class names1398- Radio inputs are needed for tab content to work with tab click1399- If tabs gets a background then every tab inside it becomes rounded from both top corners14001401### table1402Table can be used to show a list of data in a table format14031404[table docs](https://daisyui.com/components/table/)14051406#### Class Names:1407- Component: `table`1408- Modifier: `table-zebra`, `table-pin-rows`, `table-pin-cols`1409- Size: `table-xs`, `table-sm`, `table-md`, `table-lg`, `table-xl`14101411#### Syntax1412```html1413<div class="overflow-x-auto">1414 <table class="table {MODIFIER}">1415 <thead>1416 <tr>1417 <th></th>1418 </tr>1419 </thead>1420 <tbody>1421 <tr>1422 <th></th>1423 </tr>1424 </tbody>1425 </table>1426</div>1427```14281429#### Rules1430- {MODIFIER} is optional and can have one of each modifier/size class names1431- The `overflow-x-auto` class is added to the wrapper div to make the table horizontally scrollable on smaller screens14321433### textarea1434Textarea allows users to enter text in multiple lines14351436[textarea docs](https://daisyui.com/components/textarea/)14371438#### Class Names:1439- Component: `textarea`1440- Style: `textarea-ghost`1441- Color: `textarea-neutral`, `textarea-primary`, `textarea-secondary`, `textarea-accent`, `textarea-info`, `textarea-success`, `textarea-warning`, `textarea-error`1442- Size: `textarea-xs`, `textarea-sm`, `textarea-md`, `textarea-lg`, `textarea-xl`14431444#### Syntax1445```html1446<textarea class="textarea {MODIFIER}" placeholder="Bio"></textarea>1447```14481449#### Rules1450- {MODIFIER} is optional and can have one of each style/color/size class names14511452### theme-controller1453If 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 value14541455[theme-controller docs](https://daisyui.com/components/theme-controller/)14561457#### Class names1458- component: `theme-controller`14591460#### Syntax1461```html1462<input type="checkbox" value="{theme-name}" class="theme-controller" />1463```14641465#### Rules1466- The value attribute of the input element should be a valid daisyUI theme name14671468### timeline1469Timeline component shows a list of events in chronological order14701471[timeline docs](https://daisyui.com/components/timeline/)14721473#### Class Names:1474- Component: `timeline`1475- Part: `timeline-start`, `timeline-middle`, `timeline-end`1476- Modifier: `timeline-snap-icon`, `timeline-box`, `timeline-compact`1477- Direction: `timeline-vertical`, `timeline-horizontal`14781479#### Syntax1480```html1481<ul class="timeline {MODIFIER}">1482 <li>1483 <div class="timeline-start">{start}</div>1484 <div class="timeline-middle">{icon}</div>1485 <div class="timeline-end">{end}</div>1486 </li>1487</ul>1488```14891490#### Rules1491- {MODIFIER} is optional and can have one of the modifier/direction class names1492- To make a vertical timeline, add the `timeline-vertical` class to the `ul` element or just do nothing (because its the default style.)1493- Add `timeline-snap-icon` to snap the icon to the start instead of middle1494- Add the `timeline-compact` class to force all items on one side14951496### toast1497Toast is a wrapper to stack elements, positioned on the corner of page14981499[toast docs](https://daisyui.com/components/toast/)15001501#### Class Names:1502- Component: `toast`1503- Placement: `toast-start`, `toast-center`, `toast-end`, `toast-top`, `toast-middle`, `toast-bottom`15041505#### Syntax1506```html1507<div class="toast {MODIFIER}">{CONTENT}</div>1508```15091510#### Rules1511- {MODIFIER} is optional and can have one of the placement class names15121513### toggle1514Toggle is a checkbox that is styled to look like a switch button15151516[toggle docs](https://daisyui.com/components/toggle/)15171518#### Class Names:1519- Component: `toggle`1520- Color: `toggle-primary`, `toggle-secondary`, `toggle-accent`, `toggle-neutral`, `toggle-success`, `toggle-warning`, `toggle-info`, `toggle-error`1521- Size: `toggle-xs`, `toggle-sm`, `toggle-md`, `toggle-lg`, `toggle-xl`15221523#### Syntax1524```html1525<input type="checkbox" class="toggle {MODIFIER}" />1526```15271528#### Rules1529- {MODIFIER} is optional and can have one of each color/size class names15301531### validator1532Validator class changes the color of form elements to error or success based on input's validation rules15331534[validator docs](https://daisyui.com/components/validator/)15351536#### Class names1537- component: `validator`1538- part: `validator-hint`15391540#### Syntax1541```html1542<input type="{type}" class="input validator" required />1543<p class="validator-hint">Error message</p>1544```15451546#### Rules1547- Use with `input`, `select`, `textarea`1548
Also in nerds-odd-e/doughnut
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| nerds-odd-e/doughnut.cursor/rules/general.mdc · 49 | Cursor rules | styledo-not | 49/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/architecture-decisions.mdc · 49 | Cursor rules | no sections | 16/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/backend-code.mdc · 49 | Cursor rules | styletypesdatabasedo-not | 61/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/backend-testing.mdc · 49 | Cursor rules | buildteststyletesting-strategy+2 | 73/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/cli.mdc · 49 | Cursor rules | setupbuildteststyle+4 | 96/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/db-migration.mdc · 49 | Cursor rules | stylearchdatabasedeployment | 64/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/e2e-authoring.mdc · 49 | Cursor rules | setupteststylearch+3 | 80/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/e2e-ocr.mdc · 49 | Cursor rules | setuptesting-strategydo-not | 46/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/frontend-api.mdc · 49 | Cursor rules | styletesting-strategyapido-not | 57/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/frontend-component.mdc · 49 | Cursor rules | testlint-formatstylearch+2 | 76/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/frontend-storybook.mdc · 49 | Cursor rules | buildteststyletesting-strategy+1 | 69/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/frontend-testing.mdc · 49 | Cursor rules | buildteststyletesting-strategy+2 | 89/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/gsd-coexistence.mdc · 49 | Cursor rules | style | 60/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/linting_formating.mdc · 49 | Cursor rules | testlint-formatstylearch+6 | 88/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/mcp-server.mdc · 49 | Cursor rules | buildtestlint-formatarch+2 | 85/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/planning.mdc · 49 | Cursor rules | teststylearchdo-not+1 | 75/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/script.mdc · 49 | Cursor rules | testarch | 58/100 | 3 days ago | |
| nerds-odd-e/doughnutAGENTS.md · 49 | AGENTS.md | no sections | 47/100 | 3 days ago | |
| nerds-odd-e/doughnutCLAUDE.md · 49 | CLAUDE.md | agent-behaviour | 47/100 | 3 days ago |
Diff against .cursor/rules/general.mdc Diff against .cursor/rules/architecture-decisions.mdc Diff against .cursor/rules/backend-code.mdc Diff against .cursor/rules/backend-testing.mdc Diff against .cursor/rules/cli.mdc Diff against .cursor/rules/db-migration.mdc Diff against .cursor/rules/e2e-authoring.mdc Diff against .cursor/rules/e2e-ocr.mdc Diff against .cursor/rules/frontend-api.mdc Diff against .cursor/rules/frontend-component.mdc Diff against .cursor/rules/frontend-storybook.mdc Diff against .cursor/rules/frontend-testing.mdc Diff against .cursor/rules/gsd-coexistence.mdc Diff against .cursor/rules/linting_formating.mdc Diff against .cursor/rules/mcp-server.mdc Diff against .cursor/rules/planning.mdc Diff against .cursor/rules/script.mdc Diff against AGENTS.md Diff against CLAUDE.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bashdeban/fastmind.clinerules/.project-consistency-keeper2.md · 5 | Cline rules | setupbuildtestlint-format+11 | 100/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.clinerules · 31k | Cline rules | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| VaillerTeeter/HoshimiNest.clinerules/project-identity.md · 1 | Cline rules | setuparchtypesdo-not | 93/100 | yesterday | |
| blendsdk/codeops-mcp.clinerules/project.md · 0 | Cline rules | buildteststylearch+7 | 91/100 | 3 days ago | |
| cline/cline.clinerules/general.md · 66k | Cline rules | setupbuildstylearch+2 | 86/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/60-pubmed-python.md · 6 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago |
