Skip to content

Instantly share code, notes, and snippets.

@gsambrotta
Last active September 14, 2016 15:25
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 gsambrotta/9981eaf8eb11d92e7d3bba137e0ebb96 to your computer and use it in GitHub Desktop.
Save gsambrotta/9981eaf8eb11d92e7d3bba137e0ebb96 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
.biox-black {
background: #111;
}
.biox-black--text {
color: #111;
}
.biox-white {
background: #fff;
}
.biox-white--text {
color: #fff;
}
.biox-grey {
background: #f2f3f4;
}
.biox-grey--text {
color: #f2f3f4;
}
.biox-black-grey {
background: #222;
}
.biox-black-grey--text {
color: #222;
}
.biox-dark-blue {
background: #414550;
}
.biox-dark-blue--text {
color: #414550;
}
.biox-blue-grey {
background: #ced8dc;
}
.biox-blue-grey--text {
color: #ced8dc;
}
.biox-text-blue {
background: #798f9a;
}
.biox-text-blue--text {
color: #798f9a;
}
.biox-text-black {
background: #414550;
}
.biox-text-black--text {
color: #414550;
}
p {
background: #fff;
}
p {
color: #fff;
}
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
$colors: (
biox-black: #111,
biox-white: #fff,
biox-grey: #f2f3f4,
biox-black-grey: #222,
biox-dark-blue: #414550,
biox-blue-grey: #ced8dc,
biox-text-blue: #798f9a,
biox-text-black: #414550
);
@function colors($key: 'biox-black') {
@return map-get($colors, $key);
}
@each $key, $color in $colors {
.#{$key} {
background: $color;
&--text {
color: $color;
}
}
}
p {
background: colors('biox-white');
}
p {
color: colors('biox-white');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment