Back to front pageView on Hacker News (opens in a new tab)Ask HN: Dark mode for HN please?780 pointsby krm01 (on Hacker News)6 years agoOf all places, HN should be dark mode by default, without any of us using a plugin or specific browser. I don't want my eyes to burn when I'm browsing HN at night on my phone. Anyone?Comments (445) 93 threadsShow all commentsShowing thread 33 of 93njhaveri6 years ago#One thing I have not seen posted here in snippets is the inclusion of::root { color-scheme: light dark; }This allows the browser to change the default rendering of controls like inputs and textareas. It also sets up many defaults nicely. Please use this in conjunction with @media (prefers-color-scheme: dark).Reference: https://webkit.org/blog/8840/dark-mode-support-in-webkit/ https://drafts.csswg.org/css-color-adjust-1/#color-scheme-pr...
njhaveri6 years ago#One thing I have not seen posted here in snippets is the inclusion of::root { color-scheme: light dark; }This allows the browser to change the default rendering of controls like inputs and textareas. It also sets up many defaults nicely. Please use this in conjunction with @media (prefers-color-scheme: dark).Reference: https://webkit.org/blog/8840/dark-mode-support-in-webkit/ https://drafts.csswg.org/css-color-adjust-1/#color-scheme-pr...
Comments (445) 93 threads
Show all comments
Showing thread 33 of 93
:root { color-scheme: light dark; }
This allows the browser to change the default rendering of controls like inputs and textareas. It also sets up many defaults nicely. Please use this in conjunction with @media (prefers-color-scheme: dark).
Reference: https://webkit.org/blog/8840/dark-mode-support-in-webkit/ https://drafts.csswg.org/css-color-adjust-1/#color-scheme-pr...