a guest Mar 8th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- var root = document.querySelector(':root');
- var rootStyles = getComputedStyle(root);
- var red = rootStyles.getPropertyValue('--red');
- root.style.setProperty('--red', 'green');
RAW Paste Data