Hacker News Clone new | comments | show | ask | jobs | submit | github repologin
Dark Mode in CSS Guide (css-tricks.com)
3 points by thunderbong 2 hours ago | hide | past | web | 1 comment | favorite





haha, I was looking at this guide yesterday :) I can also recommend a color palette generator (especially one like the one linked below that auto-generates a dark-mode version too). That way you can use css variable for your colors and then using the media query @media (prefers-color-scheme: dark) your site can auto update the colors to darkmode.

https://www.hover.dev/css-color-palette-generator




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

Search: