Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dulvui
on June 24, 2023
|
parent
|
context
|
favorite
| on:
CSS Only dark mode without JS
Yes you are right you can get dark mode by setting the background to black. But with this media query you get an automated switch between light and dark mode, depending on you browser settings.
EugeneOZ
on June 24, 2023
[–]
Dark mode is much more than just bg color. Font, shadows, borders, selection, navbar, placeholders...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: