Created
June 9, 2015 10:42
-
-
Save scerelli/b64663e31191bf3609cf to your computer and use it in GitHub Desktop.
A simply way to create components with same structure but based on different color schemes using sass, in this example i create a set of buttons based on a variable map then looping on it i create a set of classes based on the container key. Feel free to improve this gist :) SASS 3.3 or greater is required
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: ( | |
"primary": ( | |
"bg": #333333, | |
"bg-hover": #4d4d4d, | |
"bg-pressed": #666666, | |
"bg-disabled": #d6d6d6, | |
"text": #ffffff, | |
"text-disabled": #999999 | |
), | |
"lighter": ( | |
"bg": #ffffff, | |
"bg-hover": #e6e6e6, | |
"bg-pressed": #cccccc, | |
"bg-disabled": #5c5c5c, | |
"text": #333333, | |
"text-disabled": #333333 | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment