Force SASS to use CSS function
I'm trying to use CSS's alpha function with CSS variables in an SCSS file. th { background-color: alpha(from var(--table--header-background) / 0.75); } The problem is that SASS is interpreting alpha as the alias for its own color.alpha which can't read CSS variables, and errors out at compile-time. You can get away with interpolation, but it's ugly: #{alpha}(from var(--table--header-background) / 0.75) Is there any way to force SASS to use the CSS version of a function? In truth, I don't need the deprecated aliases anyway — I import everything I need when I need it. Can I just turn the aliases
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.