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

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

by Kavindu SanthusaDecember 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.
featured image - Add Dark Mode to Your Web Page With One Line of CSS 🌓
Kavindu Santhusa HackerNoon profile picture
Kavindu Santhusa

Kavindu Santhusa

@ksengine

L O A D I N G
. . . comments & more!

About Author

Kavindu Santhusa HackerNoon profile picture
Kavindu Santhusa@ksengine

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