Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error: $color #844

Open
yitong-zhang opened this issue Mar 23, 2022 · 1 comment
Open

Compiling error: $color #844

yitong-zhang opened this issue Mar 23, 2022 · 1 comment

Comments

@yitong-zhang
Copy link

When I test the compiler with bootstrap's original scss, I got the below error:

Error!: $color:"var(--bs-primary-rgb)"is not a color for 'rgba'
on line 47 of ..../_functions.scss
from line 11 of .../bootstrap.scss

line 40-47 of ..../_functions.scss:

// stylelint-disable scss/dollar-variable-pattern
@function rgba-css-var($identifier, $target) {
  @if $identifier == "body" and $target == "bg" {
    @return rgba(var(--#{$variable-prefix}#{$identifier}-bg-rgb), var(--#{$variable-prefix}#{$target}-opacity));
  } @if $identifier == "body" and $target == "text" {
    @return rgba(var(--#{$variable-prefix}#{$identifier}-color-rgb), var(--#{$variable-prefix}#{$target}-opacity));
  } @else {
    @return rgba(var(--#{$variable-prefix}#{$identifier}-rgb), var(--#{$variable-prefix}#{$target}-opacity));
  }

line 11 of .../bootstrap.scss:

@import "variables";
@mahyaghadrdan
Copy link

I have the same problem. I don't know what the solution is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants