Closed tulup-conner closed 2 years ago
This is something that I want to introduce with this #61: the ability to theme supporting. I'm not sure if there is some workaround... @bacali95 any idea?
Hello there, no there is no workaround for this for now.
If that's the case, I would like to add className
s to Alert
, Badge
, Button
as an escape hatch so users can apply colors themselves.
Related issue: #79
This should be resolved once theme support is added #92. I'll retroactively add an example of how to accomplish the above example.
With #151 we have implemented the first component with theme support that specifically includes the ability to add your own colors.
I will be adding this to buttons this week and will close this with that PR.
Is your feature request related to a problem? Please describe. I can't really migrate to
flowbite-react
without the ability to use custom colors I defined intailwind.config.js
. At the very least, I need an escape hatch in each component (className
).Describe the solution you'd like I would like to be able to define a color,
primary
intailwind.config.js
, then use that color inflowbite-react
components like so:Describe alternatives you've considered As long as each component provides the ability to directly specify a
className
, I can do this myself.Additional context n/a