Skip to content

Conversation

@mehediScriptDev
Copy link

Hello Tailwind team,

I've noticed there isn't an "around-shadow" utility in Tailwind. The existing shadow classes are great, as they only apply shadows to the left, right, and bottom. It feels like the light is coming from the top.

But sometimes we need a shadow for cards or other elements that must cover all sides equally, and there's no built-in class for this.

So, I am proposing a new set of utilities: shadow-around-xs, shadow-around-sm, shadow-around-md, etc.

I am proposing these as an addition, without touching or changing any of the existing shadow properties.

@mehediScriptDev mehediScriptDev requested a review from a team as a code owner October 27, 2025 06:41
@RobinMalfait
Copy link
Member

Hey! I appreciate the PR, but if we want to add shadows like this, we have to do some research to make sure the default shadows make sense and match the current style of the default theme we ship. We would also have to think about the API (naming) and have to create documentation with good examples for this as well.

Because of that, I'm going to say no to this PR for now and we can revisit this if there is more demand for native shadows like this.

I would recommend to just add these CSS variables to your own projects where you want to use them.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants