skills/daisyui/usage/SKILL.md
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 necessarybtn btn-primary, prefer btn, unless the user asked for a specific variant.daisyUI 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-classUse Tailwind's @utility directive to customize a daisyUI component globally:
@utility btn {
@apply rounded-full;
}
bg-primary, border-base-300, and text-base-content/60.rounded-box, rounded-field, and rounded-selector use the active theme's radius tokens.glass applies the daisyUI glass effect.--value and --digits on countdown, and --size and --thickness on radial progress.daisyUI includes the properties, rootcolor, scrollbar, rootscrolllock, rootscrollgutter, and svg base modules. Exclude an unwanted module from the plugin config by its module name:
@plugin "daisyui" {
exclude: rootscrollgutter;
}
Use include or exclude for library modules; use Tailwind utilities or @utility for visual customization.