Cascade layers are pretty much here, so it's time to learn how they work!
🔗 Links
✅ Stephanie Eckles article: https://www.smashingmagazine.com/2022/01/introduction-css-cascade-layers/
✅ Bramus' article: https://www.bram.us/2021/09/15/the-future-of-css-cascade-layers-css-at-layer/
✅ Una's video:
https://www.youtube.com/watch?v=ilrPpSQJb3U
✅ My video on Specificity:
https://youtu.be/c0kfcP_nD9E
⌚ Timestamps
00:00 - Introduction
01:14 - Specificity issues
04:22 - Creating our first layer
05:16 - Traditional CSS layers
07:30 - CSS Layers are like sub-layers of the author layer
07:44 - What happens when something isn't in a layer?
08:07 - Creating multiple layers
11:04 - What happens when we use the same layer in two difference places
12:13 - Declaring the order first, then using them later
14:00 - !important flips things around
#css
--
Come hang out with other dev's in my Discord Community
💬 https://discord.gg/nTYCvrK
Keep up to date with everything I'm up to
✉ https://www.kevinpowell.co/newsletter
Come hang out with me live every Monday on Twitch!
📺 https://www.twitch.tv/kevinpowellcss
---
Help support my channel
👨🎓 Get a course: https://www.kevinpowell.co/courses
👕 Buy a shirt: https://teespring.com/stores/making-the-internet-awesome
💖 Support me on Patreon: https://www.patreon.com/kevinpowell
---
My editor: VS Code - https://code.visualstudio.com/
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.
Twitter: https://twitter.com/KevinJPowell
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!