Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

modify root in javascript

document.documentElement.style.setProperty('--your-variable', '#YOURCOLOR');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #modify #root #javascript
ADD COMMENT
Topic
Name
8+3 =