Skip to content

Instantly share code, notes, and snippets.

@capripot
Forked from hilja/SassMeister-input.scss
Last active August 22, 2016 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save capripot/bf55257c07bf8b7425cef6d50b451413 to your computer and use it in GitHub Desktop.
Save capripot/bf55257c07bf8b7425cef6d50b451413 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
$red: #ff0000
$primary-colors: ("red": $red, "green": #00ff00, "blue": #0000ff)
// Key and value together
@each $color in $primary-colors
.thing
content: "#{$color}"
// Key and value separate
@each $color-name, $color-code in $primary-colors
.color-#{$color-name}
background: $color-code
.thing {
content: "red #ff0000";
}
.thing {
content: "green #00ff00";
}
.thing {
content: "blue #0000ff";
}
.color-red {
background: #ff0000;
}
.color-green {
background: #00ff00;
}
.color-blue {
background: #0000ff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment