Dynamic color extracted of a value in getTableRecordClassesUsing()
I am trying to have a dynamic color from that value but it does not appear in the row but if I do this from-[#E50914] or any other color, the color is showed
8 Replies
Tailwind doesn’t work that way. It needs a full class name when it runs it’s purge.
Ohh, thank you
So I will search another way to do this
Content Configuration - Tailwind CSS
Configuring the content sources for your project.
Thank you 🙂
Since your in a callback you can use a match statement to decide which full class name to use. The put that in the string that is returned.
Ok, in my case it's a little more challeging because that color is created from the admin and would be changed frecuently, so I need to implement something dynamic
It’s still a register tailwind color though, right.
So, bear with me on my phone.
Thank you so much