CSS Variables: Why Should You Care (developers.google.com)
over 7 years ago from Alfonse Surigao, UX/UI Designer/Developer
over 7 years ago from Alfonse Surigao, UX/UI Designer/Developer
I wish people would stop glorifying CSS variables. They're 6 years late to the party and are wearing old clothes. W3C needs to implement more SASS-like features at once, not one every 10 years.
PS: That syntax is horrible. Am I right, or is it just me?
Oh I agree, that syntax is horrible. I think W3C should adopt something akin to SASS variables instead of the currently proposed syntax.
I read up the reason why they chose that syntax, but it doesn't really hold up true, at least for me. Here's the reference behind the reason: http://www.xanthir.com/blog/b4KT0
Stop capitalizing Sass. It makes my eyes bleed :(
Half of the Internet is doing it... I can't help it either
CSS variables are so much powerful than SASS variables http://philipwalton.com/articles/why-im-excited-about-native-css-variables/
It's a pity that the focus on such a wonderful feature is the syntax.
Ahhh, finally someone that makes sense. Thanks for the link. That helped remove some of the weird feeling this was something put together overnight. Kinda makes sense when they explain it like that.
Now I get it too. Was thinking W3C went insane all of a sudden
I think a lot of developers relate CSS variables as the ones you use in Sass, Less, SCSS. So thanks for posting the link! :D
This is not the same at all as the Sass variables. CSS variables are so much more powerful. Read the article, especially the bit about media queries (and also the bit about inheritance) and tell me you don't think this will make your stylesheets so much more maintainable and awesome!
A lot of developers don't understand this so clearly! This will be a fun time when everybody make fun of themselves ;)
Designer News
Where the design community meets.
Designer News is a large, global community of people working or interested in design and technology.
Have feedback?
Login to Comment
You'll need to log in before you can leave a comment.
LoginRegister Today
New accounts can leave comments immediately, and gain full permissions after one week.
Register now