paint-brush
Add Dark Mode to Your Web Page With One Line of CSS 🌓by@ksengine
1,476 reads
1,476 reads

Add Dark Mode to Your Web Page With One Line of CSS 🌓

by Kavindu Santhusa5mDecember 1st, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

I wanted to add dark mode to my blog(currently in development) So I searched and searched for a simple solution. Instead of using JavaScript anyone can use `mix-blend-mode` in CSS to enable dark theme. The following example explains how it works using CSS filters. It converts the color of links from yellow to yellow to odd color. It's complex and have some issues, but I am a developer(as a hobby). Not a designer. I am going to introduce my own idea. But later I found same 2 articles.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Add Dark Mode to Your Web Page With One Line of CSS 🌓
Kavindu Santhusa HackerNoon profile picture
Kavindu Santhusa

Kavindu Santhusa

@ksengine

👋 Hi, I’m @ksenginew 👀 I’m interested in coding 📫 How to reach me [email protected]

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

About Author

Kavindu Santhusa HackerNoon profile picture
Kavindu Santhusa@ksengine
👋 Hi, I’m @ksenginew 👀 I’m interested in coding 📫 How to reach me [email protected]

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