Sent on Dec 13, 2023

Getting and Setting CSS variables in JavaScript

CSS Variables have become super popular for many reasons. One of them these reasons is — you can now manipulate CSS easily with JavaScript.

In this article, we’ll go through three things:

  • How to get CSS variables with JavaScript
  • How to set CSS variables with JavaScript
  • How to make both process easier with utilities from Splendid UI

Here’s a link to today’s article.

I hope you enjoy it.

As always, let me know if this is helpful — and if you want me to cover anything else.

Stay awesome,
Zell