Last active
November 27, 2017 13:31
-
-
Save i-like-robots/69658bc9c7b340797312 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// libsass (v3.5.0.beta.2) | |
// ---- | |
// Neutral color palette | |
$palette-neutral--xdark: #2C3643; | |
$palette-neutral--dark: #3B444F; | |
$palette-neutral--base: #67747C; | |
$palette-neutral--light: #99A9B3; | |
$palette-neutral--xlight: #DBE6EC; | |
// Primary color palette | |
$palette-blue--dark: #1D508D; | |
$palette-blue--base: #206FAC; | |
$palette-blue--light: #288AD6; | |
$palette-red: #FA5E5B; | |
$palette-green: #16C98D; | |
$palette-orange: #FFC83F; | |
$palette-yellow: #FEEF6D; | |
// Themes | |
$themes: ( | |
brand: ( | |
primary: $palette-blue--base, | |
secondary: $palette-blue--dark, | |
contrast: $palette-yellow | |
), | |
highlight: ( | |
primary: $palette-yellow, | |
secondary: $palette-orange, | |
contrast: $palette-neutral--dark | |
), | |
neutral: ( | |
primary: $palette-neutral--light, | |
secondary: $palette-neutral--xlight, | |
contrast: $palette-neutral--xdark | |
) | |
); | |
// Button base | |
.btn { | |
padding: 0.5em 1em; | |
border-radius: 4px; | |
} | |
// Button color variations | |
@each $name, $theme in $themes { | |
.btn--#{$name} { | |
color: map-get($theme, contrast); | |
background: map-get($theme, primary); | |
&:hover { | |
background: map-get($theme, secondary); | |
} | |
} | |
} |
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
.btn { | |
padding: 0.5em 1em; | |
border-radius: 4px; | |
} | |
.btn--brand { | |
color: #FEEF6D; | |
background: #206FAC; | |
} | |
.btn--brand:hover { | |
background: #1D508D; | |
} | |
.btn--highlight { | |
color: #3B444F; | |
background: #FEEF6D; | |
} | |
.btn--highlight:hover { | |
background: #FFC83F; | |
} | |
.btn--neutral { | |
color: #2C3643; | |
background: #99A9B3; | |
} | |
.btn--neutral:hover { | |
background: #DBE6EC; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment