Last active
August 29, 2015 14:01
-
-
Save kotarok/ec32bb632797af084551 to your computer and use it in GitHub Desktop.
オレオレ Sass の色管理
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
// Define custom color name. | |
$my-red: #ee3333; | |
$my-blue: #3333ee; | |
// Then assign thme to role or context based name variables. | |
$header-bg: $my-red; | |
$header-active-fg: $my-blue; | |
// Bind them to elements finally. | |
.header { | |
background-color: $header-bg; | |
} | |
.header .active { | |
color: $header-active-fg; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment