Skip to content

Sass issue using color function  #23690

@craigpotter

Description

@craigpotter

When looking at Bootstrap Sass Options, it gives the example

// From the Sass map with our `color()` function
.beta { color: color("purple"); }

This doesn't work for me.
After debugging and putting lots of @debug statements in my own code and the BS4 _function.scss, I noticed that wrapping the color name in quotes stopped it working for me. It just returns null.

// From the Sass map with our `color()` function
.beta { color: color(purple); }

This version works for me.
Is any one else having this problem ?

  • Windows 10
  • Sass complied with Gulp-Sass

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions