Replies: 9 comments 3 replies
-
this is more like a glow tbh, so maybe tailwind should add glows C: |
Beta Was this translation helpful? Give feedback.
-
I just don't ever really think that light drop shadows look good on dark backgrounds. A shadow is invariably an object 'creating' an area with less light than its surroundings, and so fundamentally it doesn't make sense for an object to cast a shadow that is lighter than the rest of the scene. I played around a bit with the vercel design system, and this is the closest I could get to something that appeals visually: |
Beta Was this translation helpful? Give feedback.
-
What about custom colors (see #1463)? |
Beta Was this translation helpful? Give feedback.
-
You need config the follow files: tailwind.config.js
And in your class: className="shadow-lg dark:shadow-dark" Grettings. |
Beta Was this translation helpful? Give feedback.
-
I need something like "dark:focus:shadow-darkGray", how'd that work? |
Beta Was this translation helpful? Give feedback.
-
Any interest / updates on this? |
Beta Was this translation helpful? Give feedback.
-
This is possible with v3: |
Beta Was this translation helpful? Give feedback.
-
@fullhdpixel try tailwind.config.js
ClassName:
Or you can try: tailwind.config.js
ClassName:
and you can customize the shadow with:
Greetings. 🇲🇽 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I propose adding native support for inverted shadows to be used in dark mode.
In this way there would be a
shadow-{breakpoint}-invert
for everyshadow-{breakpoint}
.You can see an example here: https://play.tailwindcss.com/AICHZBqsTz
Relevant docs.
Beta Was this translation helpful? Give feedback.
All reactions