home ~ projects ~ socials

Set The Value Of A Root CSS Property Variable With JavaScript

document.documentElement.style.setProperty('--your-variable', '#YOURCOLOR');
-- end of line --