by BrandoElFollito · 6y ago · 0 comments
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?
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