If you are just doing simple stuff like CSS animations, simple landing pages, using few and lightweight elements, avoiding fancy / esoteric / satanic things, you may not be interested in this article, you can just code and everything should be fine also in mobile devices.
Instead, if your are dealing with more complex apps, with many time-sensitive and complex animations, with thousands of different and/or heavy elements, being…
As you can see by inspecting a little with the Dev Tools in the new YouTube redesigned page (or just watching the video 👍🏽), it highly relies on CSS variables under the hood.
By just changing one CSS variable from the inspector you can change colors (and whatever is set in a CSS variable) all over the entire web page.
Imagine how much is now easier to create multiple themes, responsive new layouts and keeping consistency across all your codebase.
CSS variables are a powerful tool which allows you to use variables inside…