cara mengubah variabel root CSS
document.documentElement.style.setProperty('--your-variable', '#YOURCOLOR');
Bloody Buzzard
document.documentElement.style.setProperty('--your-variable', '#YOURCOLOR');