Ole Ersoy

Oct 21, 2020

1 min read

Creating and Using SCSS Maps

Image by Jim Semonik from Pixabay

Scenario

Approach

$map: ( 
ctaBackgroundColor: blue,
ctaTextColor: white
);
.CTAButton {
background-color: map-get($map, ctaBackgroundColor);
}
.CTAButton {
background-color: blue;
}

Brought to You By