What version of Tailwind CSS are you using?
v4.0.6
What build tool (or framework if it abstracts the build tool) are you using?
v7.3.1
What version of Node.js are you using?
v22.21.1
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/nUZbAL0dnw
Describe your issue
Opacity steps are lost when working with multiple shadows, like smooth shadows
For exemple, this smooth shadow
rgba(0 0 0 / 0.12) 0px -1px 3px 0px, rgba(0 0 0 / 0.12) 0px 1px 2px -5px, rgba(0 0 0 / 0.14) 0px 2px 5px -5px, rgba(0 0 0 / 0.15) 0px 4px 12px -5px, rgba(0 0 0 / 0.17) 0px 12px 15px -5px
is converted to
var(--tw-shadow-color, rgba(0 0 0 / 0.12)) 0px -1px 3px 0px, var(--tw-shadow-color, rgba(0 0 0 / 0.12)) 0px 1px 2px -5px, var(--tw-shadow-color, rgba(0 0 0 / 0.14)) 0px 2px 5px -5px, var(--tw-shadow-color, rgba(0 0 0 / 0.15)) 0px 4px 12px -5px, var(--tw-shadow-color, rgba(0 0 0 / 0.17)) 0px 12px 15px -5px;
where --tw-shadow-color (set by shadow-<color>) replaces the percentage.
Idealy it should be
color-mix(in srgb, transparent, var(--tw-shadow-color, #000000) 12%) 0px -1px 3px 0px, color-mix(in srgb, transparent, var(--tw-shadow-color, #000000) 12%) 0px 1px 2px -5px, color-mix(in srgb, transparent, var(--shadow-fix, #000000) 14%) 0px 2px 5px -5px, color-mix(in srgb, transparent, var(--tw-shadow-color, #000000) 15%) 0px 4px 12px -5px, color-mix(in srgb, transparent, var(--tw-shadow-color, #000000) 17%) 0px 12px 15px -5px;
Or am i not understanding the documentation well?
What version of Tailwind CSS are you using?
v4.0.6
What build tool (or framework if it abstracts the build tool) are you using?
v7.3.1
What version of Node.js are you using?
v22.21.1
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/nUZbAL0dnw
Describe your issue
Opacity steps are lost when working with multiple shadows, like smooth shadows
For exemple, this smooth shadow
is converted to
where
--tw-shadow-color(set byshadow-<color>) replaces the percentage.Idealy it should be
Or am i not understanding the documentation well?