Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The timing is great - I am redecorating my home dashboard with new colors.

One of the major struggles I have is with the dark mode - is there a methodology to assign "dark" colors based on the existing "light" ones? Or should I do the design twice, one for the light and one for the dark mode version?



> is there a methodology to assign "dark" colors based on the existing "light" ones? Or should I do the design twice, one for the light and one for the dark mode version?

You can try inverting the colors used for the light theme to obtain a decent starting point for the dark theme design.

If you use SASS you can use `invert` for that, or `invert` from the CSS-in-JS library "polished"

For anyone curious how the inverse of a color is calculated, read this answer on StackExchange: https://graphicdesign.stackexchange.com/a/95100




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: