Answers for "how to assign html root css as variable"

1

how to change root variable css

document.documentElement.style.setProperty('--your-variable', '#YOURCOLOR');
Posted by: Guest on January-21-2021

Code answers related to "how to assign html root css as variable"

Code answers related to "Javascript"

Browse Popular Code Answers by Language