Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Getting color throws an error if no grade is specified #53

@diego-codes

Description

@diego-codes

The documentation states that we can retrieve a core color by not supplying a grade like this:

.foo {
  color: color('blue');
}

However, I get this error on all colors except for white:

Message:
    node_modules/ibm-design-colors/_ibm-colors.scss
Error: argument `$color` of `rgba($color, $alpha)` must be a color

       Backtrace:
       	node_modules/ibm-design-colors/_ibm-colors.scss:52, in function `rgba`
       	node_modules/ibm-design-colors/_ibm-colors.scss:52, in function `color`
       	dashboard/src/styles/scss/_modal.scss:8
        on line 52 of node_modules/ibm-design-colors/_ibm-colors.scss
>>     @return rgba($grd, $alpha);
   ------------^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions