You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(tailwindcss): enhance color handling with CSS variables (#1635)
* refactor(tailwindcss): enhance color handling with CSS variables
- Introduced `colorsAsVariables` and `colorsAsVariablesRef` to manage color variables and references
- Updated the Tailwind CSS plugin to add color variables to the `:root`
* separate tailwindcss v3 and v4 plugins
* generate `plugins/tailwindcss/index.css` file
* fix(generate-tailwind-plugin-css-file): background image prefix
* add changeset
* Update .changeset/free-turkeys-lick.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
`@plugin "flowbite-react/plugins/tailwindcss"` - this points to the legacy JS plugin (that uses inline colors)
18
+
19
+
after
20
+
`@import "flowbite-react/plugins/tailwindcss"` - this points to the CSS-based plugin (that uses CSS variables)
21
+
22
+
The breaking change is self-managed once upgrading `flowbite-react` and starting/building the app, which runs the `flowbite-react dev` or respectively `flowbite-react build` command that triggers the patch/fix/migration automatically.
0 commit comments