ITADN

Need for a plugin to generate utility class for custom color variables

#1117Closedshinokada 创建于 2025-12-19
S
shinokadacommented
In Tailwind CSS v4, CSS custom properties defined in `@theme` blocks are **not automatically converted to utility classes**. This means that even though Flowbite defines colors like `--color-success-medium`, `--color-brand-strong`, etc. in its theme files, classes like `bg-success-medium` or `bg-brand-strong` don't get generated automatically. We need a plugin explicitly generates all the utility classes needed for Flowbite's custom colors, including: - Background colors (`bg-*`) - Text colors (`text-*`) - Border colors (`border-*`) - Ring colors (`ring-*`) I will create a PR.
关闭于 2025-12-22 1 条评论