Skip to content

Instantly share code, notes, and snippets.

@tareiking
Created April 29, 2014 12:54
Show Gist options
  • Save tareiking/11399444 to your computer and use it in GitHub Desktop.
Save tareiking/11399444 to your computer and use it in GitHub Desktop.
SASS Maps
// The idea here is that you can define all your variables into a single $properties value and refer to them
// throughout the SASS project files.
// Potential usecase: Defining common values and Foundation 5 overrides
$properties: (
background: red,
color: blue,
font-size: 1em,
font-family: (Helvetica, arial, sans-serif)
);
.foo {
color: map-get($properties, color);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment