Skip to content

[4.1.4] Multiple drop-shadows are still broken #17677

Open
@dmitrc

Description

@dmitrc

What version of Tailwind CSS are you using?

v4.1.4

What build tool (or framework if it abstracts the build tool) are you using?

Next.js v15.3.0

What version of Node.js are you using?

v22.14.0

What browser are you using?

Edge

What operating system are you using?

Windows

Reproduction URL

https://play.tailwindcss.com/CgUI30hrFk?file=css

Describe your issue

Seems like the multiple drop-shadow are still not working after the fix from #17515 (tagging @thecrypticace for awareness).

Given this theme token:

--drop-shadow-multi: 0 0 20px rgb(0 0 0 / 0.2), 0 1px 2px rgb(0 0 0 / 0.25);

You get the following CSS output:

.drop-shadow-multi {
    --tw-drop-shadow-size: drop-shadow(0 0 20px var(--tw-drop-shadow-color, rgb(0 0 0 / 0.2))) drop-shadow(0 1px 2px var(--tw-drop-shadow-color, rgb(0 0 0 / 0.25)));
    --tw-drop-shadow: drop-shadow(var(--drop-shadow-multi));
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

Note how --tw-drop-shadow-size contains the properly expanded shadows (where each segment is wrapped in drop-shadow(...)), while the resulting --tw-drop-shadow ignores that prior declaration and simply refers to the underlying theme variable (which is comma-separated and does not work).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions