paint-brush
How to Add a Darkmode to Your Websiteby@fcol
129 reads

How to Add a Darkmode to Your Website

by Yel E Kao8mMay 31st, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Add an element which can be clicked. Chuck the JS into a file or script tag (fill js at the bottom of the Javascript section). Make a bunch of CSS declarations with body.dark at the start of them...

People Mentioned

Mention Thumbnail

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - How to Add a Darkmode to Your Website
Yel E Kao HackerNoon profile picture
Yel E Kao

Yel E Kao

@fcol

Simple stuff.

About @fcol
LEARN MORE ABOUT @FCOL'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Yel E Kao HackerNoon profile picture
Yel E Kao@fcol
Simple stuff.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite