Hi, why don’t use css custom properties?
I'm really excited about CSS custom properties, but we just haven't had many opportunities to use them, as most of the components we've produced so far don't allow for much style customization.
I understand. Anyway you can read custom property value with js from the element computed style with .getPropertyValue('--foo-bar'). Or set it with setProperty()
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.