Editar o arquivo raiz CSS
document.documentElement.style.setProperty('--your-variable', '#YOURCOLOR');
Bloody Buzzard
document.documentElement.style.setProperty('--your-variable', '#YOURCOLOR');