Skip to content

Instantly share code, notes, and snippets.

@una
Created November 20, 2015 16:50
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 una/e0cde8dbe297af5ee23f to your computer and use it in GitHub Desktop.
Save una/e0cde8dbe297af5ee23f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
//////////////////////////////
// ATLAS PALETTE
//////////////////////////////
//------ IBM COLORS ------//
// * Colors from IBM Design
$palette__ibm-colors: (
'blue-10': color('blue', 10),
'blue-20': color('blue', 20),
'blue-30': color('blue', 30),
'blue-40': color('blue', 40),
'blue-90': color('blue', 90),
'gray': color('cool-gray', 60),
'grey': color('cool-gray', 60),
'green': color('green', 30),
'red': color('red', 40),
'teal': color('teal', 20),
'white': color('white'),
'yellow': color('yellow', 30)
);
@function ibm-color($color) {
$ibm-palette: $palette__ibm-colors;
@if map-has-key($ibm-palette, $color) {
@return map-get($ibm-palette, $color);
} @else {
@warn "We couldn't find #{$color} in the $palette__ibm-colors map! "
"Please make sure it's defined. ";
}
}
//------ BLUEMIX COLORS ------//
// * modified IBM colors
// * completely new colors for use in newest Bluemix/Atlas Designs
$palette__bluemix-colors: (
'white': #2C3E48,
'blue-70': #2D3F49,
'blue-90': #20343E,
'gray': #8C9BA5,
'gray-dark': #485760,
'gray-darker': #42535C,
'gray-darkest': #394B54
);
@function bluemix-color($color) {
$palette: $palette__bluemix-colors;
@if map-has-key($palette, $color) {
@return map-get($palette, $color);
}
}
div {
color: ibm-color('red');
}
div {
color: color("red", 40);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment