How to use sass darken function with var(--pico-color)? #524
Unanswered
infografik
asked this question in
Help
Replies: 1 comment 1 reply
-
I don't think it can be done. Sass functions run at compile time; CSS custom properties are only available at run time. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
darken(var(--pico-color), 20%) -> Error: $color: var(--pico-color) is not a color.
darken(red, 20%) -> works correctly
Beta Was this translation helpful? Give feedback.
All reactions