This file contains hidden or 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
/** | |
* Calculate the luminance for a color. | |
* See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests | |
*/ | |
@function luminance($color) { | |
$red: nth($linear-channel-values, red($color) + 1); | |
$green: nth($linear-channel-values, green($color) + 1); | |
$blue: nth($linear-channel-values, blue($color) + 1); | |
@return .2126 * $red + .7152 * $green + .0722 * $blue; |
This file contains hidden or 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
$theme-color: #3f51b5 !default; | |
theme-color-bg { | |
background-color: $theme-color; | |
} | |
theme-color-bg-contrast { | |
color: choose-contrast-color($theme-color); | |
} |
This file contains hidden or 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
dark-background-contrast { | |
color: white; | |
} | |
light-background-contrast { | |
color: black; | |
} |
This file contains hidden or 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
theme-color-bg { | |
background-color: #3f51b5; | |
} | |
theme-color-bg-contrast { | |
color: white; | |
} |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am sgomes on github. | |
* I am sgomes (https://keybase.io/sgomes) on keybase. | |
* I have a public key whose fingerprint is E59A DF7F F82A E973 F7CF 196B B273 014C 8B9F 3B03 | |
To claim this, I am signing this object: |