[v4] color error with animation-timeline #16240
-
What version of Tailwind CSS are you using? 4.0.3 What build tool (or framework if it abstracts the build tool) are you using? Astro 5.2.3 What version of Node.js are you using? v20.12.2 What browser are you using? [Versión 1.74.51 Chromium: 132.0.6834.160 (Build oficial) (64 bits)] What operating system are you using? Windows 10 Reproduction URL https://play.tailwindcss.com/Zm9MoXD9AA https://github.com/PLManuel/prueba-tailwind4 https://drive.google.com/file/d/1bWsExht0ENBIhqM7P3X3WVX2FqdS0Gyl/view?usp=sharing Describe your issue I'm making an animation between two colors and the final color of the animation doesn't match the color code. This also happens in the background. The error appeared after uninstalling tailwind 3 and installing the new version with "pnpm astro add tailwind", to move to version 4. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Explanation: |
Beta Was this translation helpful? Give feedback.
-
Hey! the colors Nevertheless you can use arbitrary color values in this case to avoid the issue: https://play.tailwindcss.com/IpJko3Innv |
Beta Was this translation helpful? Give feedback.
Hey! the colors
black
andwhite
actually don't useoklch
in Tailwind CSS v4 but I think the issue is with the opacity modifier. This seems to be a browser-rendering bug though and doesn't even to work at all in Safari?Nevertheless you can use arbitrary color values in this case to avoid the issue: https://play.tailwindcss.com/IpJko3Innv