DEV Community

Cover image for Creating a website theme switcher with CSS only

Creating a website theme switcher with CSS only

Alexander Sandberg on June 24, 2019

Check it out live before reading if you want! So called dark mode layouts have been getting a lot of attention and hype lately, as more and mor...
Collapse
 
tomayac profile image
Thomas Steiner

Love the no-JS approach! You might also want to check out the custom element <dark-mode-toggle>, read more about it in this article.

Collapse
 
alexandersandberg profile image
Alexander Sandberg

I came across your article on it last week. Some great stuff! 🙌

Collapse
 
alexandersandberg profile image
Alexander Sandberg • Edited

Really appreciate everyone showing so much love for my first webdev related article. It inspires me to keep writing and sharing more ideas with the community. ❤️

If you have any thoughts or ideas of your own, feel free to discuss them here!

Collapse
 
tomhermans profile image
tom hermans

very well thought out idea. and great, pretty concise and easy to follow write-up ! Thanks.

Collapse
 
alexandersandberg profile image
Alexander Sandberg

Thanks, Tom. I'm glad you liked it! :)

Collapse
 
not_jffrydsr profile image
@nobody

best one I've seen, appreciate it! can't wait to credit this in a jekyll plugin.

Collapse
 
alexandersandberg profile image
Alexander Sandberg

Glad you found it useful! Awesome, ping me when you do. ☺️

Collapse
 
ghost profile image
Ghost

Just what I was looking for, I know this is an old post, but awesome is awesome, my late congrats. :)