After adding additional colors is there a way to have components generated for them? #3710
Replies: 1 comment 1 reply
-
Hey It can't be automatically generated because different component use one or multiple colors (specific colors) Tailwind utility classes are generated for all colors automatically because a bg-red-500 is only applying one color to one CSS property. daisyUI's color system is pretty flexible. Most UIs would only need one brand color (primary). Some would need 2 (primary, secondary) and it's rare a UI would need accent color. I can help you better if you explain the use case, where more than 3 brand colors are needed 🙏 Let me know if you have any questions. |
Beta Was this translation helpful? Give feedback.
-
I followed this guide to add additional colors and was hoping that things like badges and buttons would auto generate variants for them but this did not seem to be the case. If there is a way to have this happen, or an easy way to generate them manually I would appreciate the assistance.
https://daisyui.com/blog/how-to-add-new-colors-to-daisyui/
I am currently using version 4.10.5 but plan to upgrade to 5 shortly.
Beta Was this translation helpful? Give feedback.
All reactions