Skip to content

Instantly share code, notes, and snippets.

@conormcafee
Created July 6, 2015 13:56
Show Gist options
  • Save conormcafee/907570201e0da959c222 to your computer and use it in GitHub Desktop.
Save conormcafee/907570201e0da959c222 to your computer and use it in GitHub Desktop.
Colour Management
$accent: #ffffff;
// Brand Colour Palette
$brand-colours: (
accent: (
base: $accent,
lighter: lighten($accent, 20%),
light: lighten($accent, 10%),
dark: darken($accent, 10%),
darker: darken($accent, 20%)
)
);
@function brand-colour($brand-colour, $tone: 'base') {
@return map-get(map-get($brand-colours, $brand-colour), $tone);
}
@function get-brand-colour($brand-colour, $tone: 'base') {
@return map-get(map-get($brand-colours, $brand-colour), $tone);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment