[5.0.x-dev] Breaking changes in config

Created on 25 January 2025, 6 days ago

Problem/Motivation

DaisyUI 5 is out there (beta-2). Here is the release note: https://v5.daisyui.com/docs/v5-beta/
and the changelog: https://v5.daisyui.com/docs/changelog/
and change in config: https://v5.daisyui.com/docs/config/

There are breaking changes. Let's take care of changes in config.

Remaining tasks

Take care of the breaking changes:

  • Tailwind CSS 4 allows config directly from the CSS file, so instead of tailwind.config.js you need to put the daisyUI config in the CSS file. See the new config format.
  • themes config is a comma separated list of theme names. Read more about daisyUI config and daisyUI themes.
  • darkTheme config was removed. Instead you can use --prefersdark flag directly in the themes list.
  • themeRoot config was renamed to root.
  • styled: false config was removed in favor of providing micro CSS files and the ability to include/exclude parts of the library. Disabling themes will remove all colors, but component are no longer distributed into two chunk of unstyled styled. You can now include/exclude each component individually.
  • base: false config was removed in favor of include/exclude config where you can include/exclude each component individually.
  • utils: false config was removed in favor of include/exclude config where you can include/exclude each component individually.
📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇫🇷France G4MBINI Bègles

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024