Skip to content

Instantly share code, notes, and snippets.

@douglasdeodato
Created August 29, 2016 11:05
Show Gist options
  • Save douglasdeodato/23589a23920721f5ad3dab3eed6b2d28 to your computer and use it in GitHub Desktop.
Save douglasdeodato/23589a23920721f5ad3dab3eed6b2d28 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
$grey: #000;
// Call the color palette modifiers in color values
@function palette($palette, $shade: 'base') {
@return map-get(map-get($color-palettes, $palette), $shade);
}
$color-palettes: (
grey: (
xx-light : lighten($grey, 43%),
x-light : rgba(240,240,240, 1),
light : rgba(221, 221, 221, 1),
base : $grey,
dark : rgba(133, 133, 133, 0.24),
x-dark : darken($grey, 16%)
),
);
.black-palette {
background:palette(grey);
}
.black-palette {
background: #000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment