Passing color prop isn't working with custom button
When I pass a color that isn't
zinc
to this is breaks ;-; any obvoius reasons as to why

10 Replies
When I hard code purple in it works fine

wait now it's working??
wtf
now it isn't
I'm so confused
Tailwind parses your files to find classes to include in the stylesheet. Since
bg-${color}-900
isn't a tailwind class, it's not going to be added to the stylesheetYeah I just found an answer that said that on StackOverflow lmao
hmm
Content Configuration - Tailwind CSS
Configuring the content sources for your project.
^ this will clear it all up
That's what I have now
Content Configuration - Tailwind CSS
Configuring the content sources for your project.
Content Configuration - Tailwind CSS
Configuring the content sources for your project.