News for hackers. Stuff that matters.
Re:Real-world CSS vs. CSS-in-JS performance comparison by The_rationalist on Tuesday June 08, 2021 @05:51PM (#27441398)
Css variables can be exported and modified in js through some libraries and without having the constraints of css in js.
Re:Real-world CSS vs. CSS-in-JS performance comparison by runarberg on Tuesday June 08, 2021 @06:15PM (#27441743)
You don’t even need a library. Modifying a CSS variable is as easy as:

    myElement.style.setProperty('--my-custom-property', 'some-value');