Sometimes you want to echo out the value of css variables but they are hard to debug unless you know where to look.
In JavaScript just do the following:
getComputedStyle(document.documentElement).getPropertyValue('--my-cool-var')
Sometimes you want to echo out the value of css variables but they are hard to debug unless you know where to look.
In JavaScript just do the following:
getComputedStyle(document.documentElement).getPropertyValue('--my-cool-var')