Skip to content

Instantly share code, notes, and snippets.

@scottdavis
Created April 21, 2015 18:39
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 scottdavis/f45058b9ca6107538551 to your computer and use it in GitHub Desktop.
Save scottdavis/f45058b9ca6107538551 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$config: (
color-red: red,
color-blue: blue,
color-black: black,
color-white: white,
font-body: 16px,
font-heading: 24px,
font-hero: 32px,
);
@each $key, $value in $config {
@if str-index($key, 'color-') {
.#{$key} {
color: $value;
}
}
@if str-index($key, 'font-') {
.#{$key} {
font-size: $value;
}
}
}
.color-red {
color: red;
}
.color-blue {
color: blue;
}
.color-black {
color: black;
}
.color-white {
color: white;
}
.font-body {
font-size: 16px;
}
.font-heading {
font-size: 24px;
}
.font-hero {
font-size: 32px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment