@mixin text($font-size,$color,$bg-color) { // we pass the $font-size to font-size property font-size: $font-size; // we pass the $color to color property color: $color; // we pass the $bg-color to background property background: $bg-color; } .text1 { // ($font-size,$color,$bg-color) @include text(3rem,green , black) } .text2 { // ($font-size,$color,$bg-color) @include text(5em,red , transparent) }