Replies: 1 comment 3 replies
-
Since v3, Tailwind can handle color opacity automatically for you, so you can do: @theme {
--color-color1: rgb(209 209 209);
--color-color12: rgb(234 234 234);
--color-color13: rgb(245 242 235);
--color-color2: rgb(210 200 165);
--color-color3: rgb(255 255 255);
--color-color4: rgb(77 77 76);
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I read the docs. But I could not find my specific problem for using variables and opacity together. This is my
withOpacity
function:And this is my custom colors in
tailwind.config.js
file:And then in my website, I provide a
colors.css
that includes these values:How should I migrate these custom colors to V4?
Beta Was this translation helpful? Give feedback.
All reactions