Skip to content

How to deal with background colors? #2746

Closed Answered by saadeghi
saadeghi asked this question in Q&A
Discussion options

You must be logged in to vote

A good practice is to have a consistent darkening among dark and light themes.

  • So if light theme shows white card on a light gray background, dark theme should show dark gray card on black.
  • Or if light theme shows light gray card on a white background, dark theme should show black card on dark gray.

See this 👇 good screenshot from an example on Tailwind CSS website and how good it looks when the card is lightened on both light and dark mode. Most UIs don't bother about this detail and they just invert the color which won't look good because on one theme, your card is darker and on the other theme it's suddenly lighter…

This practice is included in daisyUI themes. For example, in both d…

Replies: 2 comments 7 replies

Comment options

saadeghi
Jan 10, 2024
Maintainer Author

You must be logged in to vote
6 replies
@saadeghi
Comment options

saadeghi Dec 1, 2024
Maintainer Author

@thiagomajesk
Comment options

@saadeghi
Comment options

saadeghi Dec 1, 2024
Maintainer Author

@thiagomajesk
Comment options

@saadeghi
Comment options

saadeghi Dec 2, 2024
Maintainer Author

Answer selected by saadeghi
Comment options

You must be logged in to vote
1 reply
@saadeghi
Comment options

saadeghi Jan 17, 2024
Maintainer Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants