Skip to content

Error compiling $color is not a color #625

@mrelliot69

Description

@mrelliot69

I'm trying to compile my files ( using bootstrap 5.0.2) and allways get this error
"Error compiling SASS -> $color: #3d78e3 is not a color.: assets//scss/admin\components/_ribbons.scss on line 153

The error line is this one:
border-color: darken(($value), 10%) transparent transparent;

from what i checked this seems to be caused by the bootstrap !default on the theme colors, any ideia how to bypass this error without messing on the bootstrap core file?

$primary: $blue !default; $secondary: $gray-600 !default; $success: $green !default; $info: $cyan !default; $warning: $yellow !default; $danger: $red !default; $light: $gray-100 !default; $dark: $gray-900 !default;

Metadata

Metadata

Assignees

No one assigned

    Labels

    spec complianceIssues with compliance to the Sass spec

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions