Created
November 25, 2014 18:39
-
-
Save KatieK2/de8043d5f6f64162c1e6 to your computer and use it in GitHub Desktop.
Uses Compass' contrast-color function (http://compass-style.org/reference/compass/utilities/color/contrast/).
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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
@import "compass"; | |
$color: #C6538C; | |
.box { | |
background-color: $color; | |
color: contrast-color($color, purple, yellow); | |
padding: .5rem; | |
max-width: 25rem; | |
} |
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
.box { | |
background-color: #C6538C; | |
color: yellow; | |
padding: .5rem; | |
max-width: 25rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment