Created
May 31, 2018 03:24
-
-
Save seven-phases-max/1f917de67753385c920816740b60c39b to your computer and use it in GitHub Desktop.
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
// establish themes: | |
#theme(default) { | |
@primary: black; | |
@contrast: white; | |
} | |
#theme(inverted) { | |
@primary: white; | |
@contrast: black; | |
} | |
#theme(error) { | |
@primary: white; | |
@contrast: red; | |
} | |
// use themes: | |
body { | |
#theme(default); | |
background-color: @primary; | |
color: @contrast; | |
} | |
.error { | |
#theme(error); | |
color: @contrast; | |
background-color: lighten(@contrast, 95%); | |
border: 1px solid @contrast; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment