@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)
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter