Last active
August 29, 2015 14:15
-
-
Save anpleenko/b28eadc4f89b31a4472e to your computer and use it in GitHub Desktop.
_palette_color.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$_color-base-grey: rgb(229,231,234); | |
$palettes: ( | |
purple: ( | |
base: rgb(42,40,80), | |
light: rgb(51,46,140), | |
dark: rgb(40,38,65) | |
), | |
grey: ( | |
base: $_color-base-grey, | |
light: lighten($_color-base-grey, 10%), | |
dark: darken($_color-base-grey, 10%) | |
) | |
); | |
@function palette($palette, $tone: 'base') { | |
@return map-get(map-get($palettes, $palette), $tone); | |
} | |
a { | |
color: palette(gray, dark); | |
&:hover { | |
color: palette(purple, light); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment