Changing Styles Dynamically
Where should CSS custom properties be defined for global scope?
document.documentElement.style.setProperty('--theme-color', 'blue');
document.body.style.backgroundColor = 'var(--theme-color)';
document.documentElement.style.setProperty('--theme-color', 'blue');
document.body.style.backgroundColor = 'var(--theme-color)';