Going Dark (Mode)
steele.blue·329w

Oct 14, 2019

Inspired by Jeremy Keith’s post on implementing Dark Mode on the web, I set it up on my blog. It’s really easy!

The diff nearly fits on one screen; most of which is converting colors over to CSS custom properties. Once that’s configured, Dark Mode is easy as pi:

@media (prefers-color-scheme: dark) {
:root {
--primary-color: #efefef;
--secondary-color: #1a1a21;
--link-color: #1f8dba;
}

I’m developing on Windows these days, which has supported Dark Mode for a while. So testing it out was pretty easy:

darkmode

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help