css-analyzer icon indicating copy to clipboard operation
css-analyzer copied to clipboard

calculate custom property complexity

Open bartveneman opened this issue 1 year ago • 0 comments

The web almanac uses custom property depth to calculate its complexity https://almanac.httparchive.org/en/2022/css#complexity

:root {
  --base-hue: 335; /* depth = 0 */
  --base-color: hsl(var(--base-hue) 90% 50%); /* depth = 1 */
  --background: linear-gradient(var(--base-color), black); /* depth = 2 */
}

bartveneman avatar Jan 21 '24 19:01 bartveneman