79390506

Date: 2025-01-27 11:11:15
Score: 0.5
Natty:
Report link

Here is a simple way to access CSS variables from the <script> tag :

const rootStyles = getComputedStyle(document.documentElement);
const neutralColor = rootStyles.getPropertyValue('--color-neutral');
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Damian