How To Build An Advanced Light/Dark Theme Toggle

preview_player
Показать описание
Theme toggles are a fairly simple concept, so in this video I decided to take a theme toggle to the next level by creating animations around the theme switch. These animations lead to a really fun project that covers CSS custom properties, CSS specificity and so much more.

📚 Materials/References:

🧠 Concepts Covered:

- How to use CSS custom properties
- How to handle CSS transitions
- CSS position context
- Managing document overflow

🌎 Find Me Here:

#ThemeToggle #WDS #LightDarkMode
Рекомендации по теме
Комментарии
Автор

me: I wonder how to make a dark theme toggle
webdevsimplified: I read minds

FatesLive
Автор

Dude I was just thinking about that and here you go reading my mind.

ScileSc
Автор

I always used to use this approach of CSS variables, but I wasn't sure if I was doing that right now all my self-doubts are cleared, Thank you so much

AnilKumar-ful
Автор

Fantastic content and very clean presentation style! I love how you explain everything along the way so clearly and effortlessly: even as a beginner, I had no problem following thanks to you showing what was happening at every step. Well done!

slavoie
Автор

only thing i didn't know about in this tutorial was vmin. i watch your videos because they are relaxing and i accidentally learned something on the way. great stuff.

shiytp
Автор

This is a life saver tutorial for me This morning.. I have been working on a project and the CSS variables was so confusing to manipulate between dark and light mode. I had to re-declare the CSS elements again and assign it to another value without using CSS variables... I know that's a double work. but after I watched this tutorial, I perfectly understood how to use CSS variables to manipulate between light and dark theme easily... Thanks man

Almarexwebdev
Автор

I’ve watched you for over a year, and I’ve been coding for a little longer than that. Yet, you mentioned using defer as an alternative to putting the script at the end of the body.

Although I understand both, I’ve never really connected the two honestly, but that’s what I love about your method of teaching, you go over every line basically and even the “small” stuff gets mentioned. You don’t explain only how, you explain how and WHY. And that’s really important to me. Also why I bought your CSS course! Keep it up! 👍🏼

jthomasaurus
Автор

This is the most underrated video on this topic. This needs more reach

aimaneqbal
Автор

One of the best tutorials I've seen - amazing work Kyle!

DavetheTrainer
Автор

Wow man. You really know your stuff. It's impressive how confidently you take us through the project. I definitely know what channel I'm coming to for web dev. Good stuff!

greatblaise
Автор

Kyle my friend, I can see it in your eyes, you are super tired. As much as I like your videos and the frequency to which you are pumping them out, I am recommending a long vacation.
There is no point stressing it out, we'll still be around here when you'll be back. One of my buddies died at 30 years old from cardio arrest, same deal, long hours, less sleep, over tired, trying to look at his best, it costed his life... just saying... take care my good man!

theretroman
Автор

tons of appreciation is even not enough to appreciate you!

arnav_
Автор

0:00 your mind is my ware house theme intro.

raoulkhaleb
Автор

A new visitor hits the subscribe button. Thanks so much.

mounir
Автор

This is so good!!! I appreciate your guides, really easy to understand & follow.

Berkeli
Автор

i just love watching your videos and i just love your contents
i find you inspiring truly

salih-khan
Автор

_6:00_ *Keep your friends rich and your enemies rich, and wait to find out which is which*

gopalloharnew
Автор

It works well in Google Chrome, but for some reason the color transition on the sun/moon doesn't work in the latest Firefox.

Maxtasy
Автор

thanks for this tutorial! very informative

gillbates
Автор

I like the video before watching it 😍😍

wassimbelhadjrhouma