Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Sass Basics!
You have completed Sass Basics!
Preview
Sass maps provide a flexible way to keep track of data by associating a name with a particular value.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
For example, the name of a a social
network with its brand color.
0:00
Let's say you're displaying a list
of links to all your company's
0:00
social networks.
0:03
Next to each link is
an icon font of the logo.
0:04
And it needs to be the brand color of
that social network like Facebook and
0:07
Twitter blue, Dribbble pink,
YouTube red and so on.
0:10
Manually creating a selector and
rule for each social network and
0:13
defining the brand specific color
value would be pretty tedious, right?
0:17
Well, we can instead use maps to
make the process faster and easier.
0:21
Inside a map, you store data in what
are called the key value pairs.
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up