thoughtbot / bourbon

A Lightweight Sass Tool Set
https://www.bourbon.io/
MIT License
9.09k stars 878 forks source link

_is-color validator fails on CSS Custom Properties #1103

Closed GoOz closed 1 month ago

GoOz commented 4 years ago

Description

I would like to use the triangle() mixin with a CSS Custom Property as the color parameter but it obviously fails because the _is-color validator doesn't recognize the custom property as a color, which seems legit, but I think it should accept in some way CSS Custom Properties as they are more and more used, specially within a themable context.

Steps to Reproduce

.element {
  @include triangle($arrow-direction, $arrow-width, $arrow-height, var(--my-triangle-color));
}
enatario commented 1 month ago

Closing this as we're archiving the project.