I have several colours set up as classes
.black {background: $black;};
.red {background: $red;}
.yellow {background: $yellow;}
.grey {background: $grey;}
.white {background: $white;}
.blue {background: $blue;}
.full-black {background: #000;}
.light-black {background: #222;}
but i want to create a mixin which takes the class name and automatically creates the class name and fills in the background colour so i don't have to type this out every time..
I have tried something like this
@mixin colours ($black,$full-black,$light-black,$red,$blue,$yellow,$white,$grey) {
.(colours): background:{colours};
}
But can't figure out the right code.