Pretty neat. I'd also be interested in seeing the JS toggle.
@KyleMerl4 жыл бұрын
The JS toggle would be a worthwhile tutorial. I could see using the same concepts from that for other accessibility things, like having buttons that change the size of text on the screen and stuff like that.
@jlogo804 жыл бұрын
Please Kevin I'd love your video with a js switch!!
@sahilsindhu62904 жыл бұрын
Hi kevin, it's awesome. Can u please make video on JS toggle button.
@lipun_panda4 жыл бұрын
I would love the JS toggle switch for Dark Theme
@mohammedzaid59894 жыл бұрын
same
@alexisortizojeda8094 жыл бұрын
He uploaded a video today where he uses localStorage and a toggle to switch between modes!
@rowinmol21644 жыл бұрын
Awesome, definitely interested in a JS version 🔥
@AlexTechie4 жыл бұрын
You're really creative; the first site I've ever seen use something other than white + dark gray for light and dark mode. Great video, Kevin!
@arshad.mp44 жыл бұрын
Today, I checked my mail and I found your mail regarding this video and when I clicked on the link, it's totally worth of. Thanks Kevin
@GGdevelopment4 жыл бұрын
LOVING YOUR STUFF!!!!
@birsingh53884 жыл бұрын
Yes, please add toggle with JS to change the colors
@eokwukwe4 жыл бұрын
Js toggle will make sense also.
@VerySadBatman4 жыл бұрын
Thank you for this! It's a game changer for native and progressive web applications with very minimal code. You're awesome!
@fuse984 жыл бұрын
Kevin, just wanted to post on your most recent video to increase the chance that you'll see it. I've been watching a lot of your videos as I stumbled upon your channel from a CSS Dos and Donts search that I did and I'm really enjoying your entire approach at teaching as well as your fluidity in your videos. Keep doing what you do, I personally appreciate the time and effort. Cheers
@KevinPowell4 жыл бұрын
Really glad that you're enjoying my content! I try to keep up on all comments, so feel free to post on any video (it's easier for me to see comments on old videos than replies to comments on new videos)
@rashikkarmacharya80234 жыл бұрын
very useful man! and as always right on time. Just as i start scratching my head you come up with something that just helps!! great!!!
@jeffborges1014 жыл бұрын
wow . How nice ! A little JS code would be excellent ! . Kevin , I just bought and started your course on Scrimba. It is really amazing . I am learning a lot of things that was hard to understand before your class. A course that worth a way more than the discounted price. My knowledge of CSS and how the browsers " see " the things to be rendered (even if we don´t do nothing) had a major boost! This is a " must have " course for any front end developer Thank you very much
@busyrand4 жыл бұрын
Just in time for me! I was looking for a straightforward way to do this exact thing without relying on plugins that were not good finished products just yet.
@Morrile14 жыл бұрын
Awsome, as you say. Didn't realise CSS could have done that because I assumed it was something only JS could handle. I am certainly learning from you Kevin, albeit very busy with other stuff called work at the moment. Roll on December when I will have almost all of December to catch up.
@renzosolis42834 жыл бұрын
yes, please do it! :)
@miezekatze29454 жыл бұрын
I googled for a way to switch from light to dark mode some time ago and stumbled upon the media query approach but I never got around to try it, so it's nice to see it in action here! I'd also be very interested in seeing the js/toggle way! :D
@cristiano_skp31904 жыл бұрын
Great video 👌. Js switch will be awesome 🙂
@sergeialekseenko35453 жыл бұрын
I have found great things. Thanks a lot!
@FirdavsiWebDev4 жыл бұрын
Great tutorial,Kevin. Thank you so much!
@bikramchettri94054 жыл бұрын
Good trick can you do a video where we can particularly switch dark node on and off and save the preference to local storage?
@KevinPowell4 жыл бұрын
That was the idea for the one with the toggle :D
@busyrand4 жыл бұрын
@@KevinPowell Please do this ASAP! This was great.
@KevinPowell4 жыл бұрын
It'll be out next Wednesday :)
@shaikshamsher74664 жыл бұрын
Interested to see the javascript version
@BruceKoehler4 жыл бұрын
Hey Kevin, another great tutorial. I have been looking for a way to add a dark mode toggle to websites, and so I would enjoy that JS tutorial you mentioned
@KevinPowell4 жыл бұрын
I might be doing it next week!
@BruceKoehler4 жыл бұрын
@@KevinPowell That's cool
@kennedycrispim31504 жыл бұрын
Conheci seu canal recentemente e estou amando seus videos, parabéns pelo trabalho.
@digigoliath4 жыл бұрын
I am with the Dark side. A JS toggle? Hell, yeah!
@DailyIntern4 жыл бұрын
Thank you Father of CSS.
@tahsinalmahi87694 жыл бұрын
Awesome!
@mtranchi4 жыл бұрын
js toggle with switching between bootstrap themes please. I do have a solution where it works, uses localStorage, but there's a flicker if the user has chosen my non-default setting. I could put a little javascript in the head that adds the css tag, but would that be detrimental regarding the speed of the rendering engine?
@KevinPowell4 жыл бұрын
Hrm, curious what might cause that flicker. My JS version of this uses local storage
@mtranchi4 жыл бұрын
@@KevinPowell Probably the way I implemented it, it's been a while since I built that site. The default CSS tag linked to the standard Bootstrap, then I'd run javascript to switch the href attribute value to a Bootswatch dark theme based on localStorage. Maybe I put the javascript at the bottom of the page. Hope you decide to do the js toggle vid. Would be cool to see a solution that factored in both system preferences and a manual toggle. Thanks for your vids, CSS is definitely not my strong suit!
@adifeliz3 жыл бұрын
Thanks 😊
@LanFeusT234 жыл бұрын
Very neat! Does this work on other OS too? Mac/Linux?
@KevinPowell4 жыл бұрын
Any OS that supports a dark mode in the system settings, including android and iOS
@brandonbh04 Жыл бұрын
What if we already have a light/dark mode toggle, how do we initialize it according to the user's system settings?
@losmichaelos35084 жыл бұрын
please do the js switch as well. keep up the good work!
@anandtripathi96372 жыл бұрын
I made a button in website to switch on and off dark mode 🙂... but this is much cool ...
@carolmckay51524 жыл бұрын
I used Sass colour maps. css variables are cool also of course.
@KevinPowell4 жыл бұрын
I love Sass colour maps! It does take more work to create dynamic colour changes though. The JS toggle version I'll do next week would be able to use them though, since it toggles a class on and off.
@norvisnorvis75924 жыл бұрын
Hi Kevin. This is a wonderful tutorial. Is Dark Mode needed for accessibility on the web?
@KevinPowell4 жыл бұрын
For accessibility? Nah (at least I don't think so). Just more for user preference.
@betellopez3939 Жыл бұрын
I applied the @media query to my project (in this case CSS file) and it is not working. It only works when I click on "Enable automatic dark mode" on the inspector of google chrome and it uses some different color paletes from the ones I specified in the css file. How do you fix that?
@GrantHawkey4 жыл бұрын
Nice vid again! JS mode toggle video please!
@nicklebagkilla3 жыл бұрын
Can you do a video (or series) on dark mode for email? Thanks.
@fvgoya4 жыл бұрын
Nice tutorial!!!! Please, shows to us with JavaScript as well. Thank you!
@syediqbalahmed31764 жыл бұрын
very good ...
@cthuloox4763 жыл бұрын
If I'm using scss, should I use scss color variables, or should I change my code to use css :root variables instead?
@jordan9920202 жыл бұрын
Can you do a similar tutorial with a project where there is a button that switches the dark theme and where there are in the main html?
@remkospaans4 жыл бұрын
Let’s do the switch!
@KevinPowell4 жыл бұрын
Seems like everyone wants the switch!
@SirMorak4 жыл бұрын
Why are you using var(someVar) instead of $someVar as you're using .scss?
@MoabeVettore4 жыл бұрын
Very useful, make video about JS toggle
@carolmckay51524 жыл бұрын
Thing I learnt: you can't combine another media query (ie for size) with the media query for prefers-color-scheme, so I couldn't achieve a particular goal.
@RoboG0at4 жыл бұрын
Would love to see the JavaScript version!
@CyberTechBits3 жыл бұрын
Can you show this using JavaScript?
@syediqbalahmed31764 жыл бұрын
nice ...
@tobyflenderson71764 жыл бұрын
Please do the js version.
@blackpilledbuddha49444 жыл бұрын
Hi kevin, can you pls do a video on useful keyboard shortcuts and other useful tips for vs code, that you regularly use
@2ddrewd4 жыл бұрын
He just did one a few days ago. kzbin.info/www/bejne/p6GynXptd759orM
@KevinPowell4 жыл бұрын
As Drew mentioned, that was my video last week!
@blackpilledbuddha49444 жыл бұрын
@@KevinPowell wow .. thanks
@KevinPowell4 жыл бұрын
Good timing :D
@monukumargautam20604 жыл бұрын
Can you make micro-interaction tutorial in CSS
@KevinPowell4 жыл бұрын
A few people ahve mentioned it lately, I'll look into it for sure! Maybe do a mini-series on it or something :)
@malangope4 жыл бұрын
Does this work on the new dark and light modes on iOS devices?
@KevinPowell4 жыл бұрын
It should :)
@bx_h234 жыл бұрын
Does this work on Mac aswell?
@KevinPowell4 жыл бұрын
Any OS that supports it, so as long as it's up to date, yes. Will work on iOS and Android too.
@Judas_Is_Fish4 жыл бұрын
Waiting for toggle, Kevin)
@mmerle4 жыл бұрын
Js switch please
@tbgan66754 жыл бұрын
JavaScript version please, thanks 🙏🏼
@Martin-4D4 жыл бұрын
Noice :)
@kshitijnirale20154 жыл бұрын
JS toggle pl.
@KevinPowell4 жыл бұрын
It's coming tomorrow!
@chuck_norris4 жыл бұрын
Dark Green? really
@KevinPowell4 жыл бұрын
Haha, I didn't invest too much time figuring out the colour scheme, lol
@jongirma72734 жыл бұрын
toggle, toggle...
@KevinPowell4 жыл бұрын
Tomorrow!
@weshuiz13254 жыл бұрын
*how to troll people:* @media(prefers-color-cheme: dark){ body { background: #fff; } } @media(prefers-color-cheme: light){ body { background: #000; } }