Skip to content

@value's can't be imported from another file #12

Closed
@edygar

Description

@edygar

I'm trying to use a @value in the selector but currently it doesn't work,the hash is propagated instead (eg: i__const_borderColor_288) in the following code:

@value featured-light-text-color as borderColor from "styles/colors";

/* it can't be import values due a bug */
@svg-load bgImage url('./image.svg') {
  polygon, line {
    stroke: borderColor;
  }
}

When using local values, it works:

@value borderColor: #F00;

/* it can't be import values due a bug */
@svg-load bgImage url('./image.svg') {
  polygon, line {
    stroke: borderColor;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions