Zum Inhalt springen
Kitbay
Skill

daisyui-config

MITAktualisiert am 9. Nov. 202642.807GitHub-Sterne

A skill published in the daisyUI repository on configuring daisyUI 5, the component library for Tailwind CSS, from the CSS file.

Was der Skill vermittelt

A skill published in the daisyUI repository on configuring daisyUI 5, the component library for Tailwind CSS, from the CSS file. It shows enabling the plugin with defaults and the options block that can follow it: which built-in themes are enabled, which one is the default and which is used for dark mode, the root selector, include and exclude lists that limit which parts of the library are generated, a prefix added to every class name, and whether logs are printed. A full example enables all themes with chosen default and dark themes, turns logs off and adds a prefix, and switching themes is done with a data-theme attribute. Custom themes are left to the colour skill.

Funktionen

  • Enable the daisyUI plugin in CSS
  • Choose default and dark-mode themes
  • Limit generated components with include and exclude
  • Add a class-name prefix