TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

CSS Variables: Why Should You Care?

11 pointsby rayshanover 9 years ago

1 comment

ggchappellover 9 years ago
After reading, I&#x27;m still not sure why I should care.<p>I&#x27;ve been using &quot;CSS variables&quot; for years -- in <i>less</i>. If I&#x27;m modifying CSS on the fly in JS, then I don&#x27;t need CSS variables; I have <i>JavaScript</i> variables.<p>Don&#x27;t get me wrong: I&#x27;m not against this change. CSS has been a rather unexpressive language for some time; removing that deficiency can hardly be called a bad thing, as long as the change is consistent across browsers.<p>So, if someone wants to use this idea, well, good for them. But I&#x27;ve gotten along find without this feature for a long time. I don&#x27;t see any particular reason to start using it now.