L
L
low molecular macro2022-03-31 14:25:29
Design
low molecular macro, 2022-03-31 14:25:29

What about shadows when switching to dark theme?

A light page has elements that move across the screen as the page scrolls. All of these elements have a blurry, soft shadow to give the effect of floating above the surface of the page. It also smooths out the movement of the elements a little, and it does not look flat and "clumsy".

But now I need to prepare a dark theme for the site. I don't know what to do with shadows. Making it black-and-black didn't help, because the background of the page itself would be quite dark, and the shadow on it would not be visible. I tried to make the shadow white, but it somehow hurts the eye, although the white was rather faded.

What can you advise? If there are examples of such solutions, please share.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alfred Fairyshin, 2022-04-02
@molekulyarniy

You don't need to change the shadow properties. Make the shadow white too, it's not a glow. The effect of floating in the dark theme is achieved by the contrast between the fill of the conditional card and the background. This is well described in Material - https://material.io/design/color/dark-theme.html
Here is an example, background #111111, card fill #222222, stroke 1px #333333 to achieve more contrast. The shadow is the same as on the light theme
62476c0a28276066633849.png

H
HemulGM, 2022-03-31
@HemulGM

Leave the shadow as it is. The shadow is the shadow. Dark mode is not a color inversion. The shadow will also leave a distance effect. The maximum that can be done is to slightly strengthen the shadow.

V
voproser45654, 2022-03-31
@voproser45654

6245941ca61fc000507645.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question