change background colour of a textinput conditionally

Hello, i want to change the background color of a textinput. I got it working using extra attributes. However only "bg-primary-500" seems to work. I want "bg-danger-500". Any way to prevent those classes from being purged?
Solution
You need to include bg-danger-500 in your tailwind whitelist to ensure it's always included
Was this page helpful?