-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve shadows across components #1557
Comments
I think there is a misunderstanding of my last message. To me there should be NO shadow in a dark theme but only color changes to convey elevation and I had set them to transparent last time I checked the colors. |
Echoing what @12rambau said - the shadows in dark themes seem a tad redundant (and many sources recommend using colour mostly/only to denote depth). So, it would be best to keep this pattern to indicate depth (canvas, on-bg, surface). https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/styling.html is #1555 (so the active tab might be best with the surface colour). However, what I did in the rework was to darken the shadows and make them a bit sharper. |
FWIW I like shadows in dark mode. Our background is not fully black, and (on my screen at least) it is possible to have a dark drop shadow successfully create the visual impression of layering/stacking on our dark BG. So IMO if (for a11y reasons) we need to rely on something besides shadows in dark mode, that doesn't to me imply that we cannot / should not also include a drop shadow. (NB: this is a preference / nitpick, not something I will fight hard for popular opinion falls the other way) |
Note I am not suggesting dropping the shadows - there are already shadows in the theme (and design system) we should ensure all components are using those unified shadows and continue to use the colours to indicate elevation too (in the mentioned PR above for example). I am unsure if the shadows should indeed be more prominent (darker perhaps?) in dark mode - see https://pydata-sphinx-theme.readthedocs.io/en/stable/examples/kitchen-sink/admonitions.html |
A couple observations:
|
but is it a problem to use the normal background without shadow? |
I am having trouble keeping this all straight. Here is an attempt to hopefully clarify (maybe only useful to me): Shadows
TabsThe shadows discussion came up in context of the tab redesign. I think the main issue is that the tabs aren't using "on-bg" nor "surface" colors, so they're in some sense violating the depth design that we follow elsewhere. The separation is still being achieved via a high-contrast border around the tab. So for the purposes of this issue can we all agree that
|
@trallard, @gabalafou and I got on a call to discuss this issue and this is what we came up with: We keep the shadows in dark mode as part of a two-layer (shadow and colour) approach to conveying depth in dark mode. We will darken them sligthly to For the tabs, I'll conform them to the depth design followed by other components. |
This has already been addressed within a number of PRs so will go ahead and close |
While working on the Tabbed Interfaces (#1555) redesign, based on @gabalafou and @12rambau's discussions, it was noticed that the shadows in dark mode are barely visible. This issue also affects other components, such as the admonitions.
Proposed Tasks
The text was updated successfully, but these errors were encountered: