On the surface, both of these do the same thing. These will both set the background to red. SCSS: body { $red: #ff0000; background: $red; } CSS: body { --red: #ff0000; background: var(--red); } But they are different. There's a CSS Tricks ex...
This week I learnt...
Front End Developer. I like problem solving and making things pretty. I also like red.
Markdown supported · ⌘↵ to post
No responses yet.