1

I'm working currently with ReactJS and I would access CSS element to edit the CSS variables inside my stylesheet. I have seen some articles talking about access CSS variable using getElementById. The difficulty is that my element doesn't have any ID - it is the :root element on my stylesheet.

How to access it to handle my CSS variables? Any hint would be great, thanks

HoCo_
  • 1,162
  • 4
  • 14
  • 30

0 Answers0