Using custom tailwind color in background

ngatsejacques

May 26th, 2022 12:42 PM

Hi,

I'm using one of the tail app component, but i want to change the background color to use from-orange-600 via-amber-500 to-red-400 but when i'm running npm run production, it's not compiling the new colors.

How can i do to make it work ? i tried to add it to tailwind config safelist but nothing

thinkverse

May 26th, 2022 07:09 PM

There were some color changes between Tailwind CSS 2 and 3. So it could be a mismatch between your version and Tails' version. You can check out the upgrade guide from Tailwind CSS, they have a section on the color palette changes.

Hope that helps you.

Report
1