Skip to content

Possibility of replacing in property name #156

@CKGrafico

Description

@CKGrafico

I've this example of code where I replace the ## or $ to use simple vars and achieve this:

.u-color-basic-dark{
      color:#9c9c9c;
    }

my problem is that this code:

@each ##key, ##value in entries(##map) {
    &-##(prop)-##(name)-##(key) {
      ##(prop): ##value;
    }
  }

generates this code

.u-color-basic-darker{
      ##(prop):#585858;
    }

is it possible to use replace in the property name?

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