Mastodon Feed: Post

Mastodon Feed

Reblogged by slightlyoff@toot.cafe ("Alex Russell"):

patrickbrosset@mas.to ("Patrick Brosset") wrote:

What do folks use for managing their web site/app's theming variables so they're both available in CSS and JS?

There are cases where having access to them in JS is useful, such as when drawing to a .

Everything as CSS variables + some JS code to access variables from stylesheets?

JSON used to generate both CSS and JS?