I want to be able to pull a list of all custom properties on an element. #146
aarongustafson
started this conversation in
Wants
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now, if I want to get the value of a CSS custom property set on an element, I can do something like:
It's fine if you already know the name of the variable, but what if you want a list of custom properties and their values? I'm currently building a style guide where I have different themes and it would be awesome to select an element and get an object containing key/value pairs for all CSS variables.
https://webwewant.fyi/wants/28/
Beta Was this translation helpful? Give feedback.
All reactions