Skip to content

Instantly share code, notes, and snippets.

@jnowland
Created June 6, 2014 10:28
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 jnowland/366c7cd26b2f8fc378bf to your computer and use it in GitHub Desktop.
Save jnowland/366c7cd26b2f8fc378bf to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.18)
// ----
/* Note: The css selectors
The 'Grey' changes from UK to USA spelling
The Primary colours are all lowercae and not camelcase
This is because keys are don't have to be strings.
In this instance the keys are 'colors'.
*/
$palettes: (
grey: (
Lighter: #aaa,
Light: #888,
Base: #666,
Dark: #555,
Darker: #222,
Darkest: #000
),
primary:(
Green: #0f0,
Red: #f00,
Yellow: #ff0
)
);
@each $palette, $tones in $palettes {
@each $colorName, $color in $tones {
.color-#{$palette}#{$colorName} {
content:'Palette:#{type-of($palette)} - Color Name:#{type-of($colorName)}';
color: #{$color};
}
}
}
/* Note: The css selectors
The 'Grey' changes from UK to USA spelling
The Primary colours are all lowercae and not camelcase
This is because keys are don't have to be strings.
In this instance the keys are 'colors'.
*/
.color-grayLighter {
content: "Palette:color - Color Name:string";
color: #aaaaaa;
}
.color-grayLight {
content: "Palette:color - Color Name:string";
color: #888888;
}
.color-grayBase {
content: "Palette:color - Color Name:string";
color: #666666;
}
.color-grayDark {
content: "Palette:color - Color Name:string";
color: #555555;
}
.color-grayDarker {
content: "Palette:color - Color Name:string";
color: #222222;
}
.color-grayDarkest {
content: "Palette:color - Color Name:string";
color: black;
}
.color-primarygreen {
content: "Palette:string - Color Name:color";
color: lime;
}
.color-primaryred {
content: "Palette:string - Color Name:color";
color: red;
}
.color-primaryyellow {
content: "Palette:string - Color Name:color";
color: yellow;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment