-1

I am trying create a dynamic classes using BEM along with the css mixins.

.card--sty-1{
    &__circle{}
    &__link{};
}


.card--sty-2{
    &__circle{}
    &__link{};
}
...for --sty-[n number of stylings]

here's code structure:

@define-mixin v2-card $modifire {
  .card--$(modifire) {

    &__circle {
    }

    &__link {
    }
}
1
  • 1
    Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Nov 12 at 10:49

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.