overlay-* shadows
#19748
andylovescode
started this conversation in
Ideas
`overlay-*` shadows
#19748
Replies: 1 comment
-
|
Love this idea it feels very
Definitely feels like it would improve DX for systems design . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now, adding a highlighted variant to a component that can have multiple colors is tedious. I propose a new class,
overlay-<color>, which sets--tw-overlay-color, which adds a box shadow tinting the entire element, by doinginset 0px 0px 0px 9999px var(--tw-overlay-color). This is similar to how ring works, where the fact that it is a shadow is mostly an internal implementation detail.Beta Was this translation helpful? Give feedback.
All reactions