Created
January 6, 2015 18:59
-
-
Save kalepail/a93afc46e682b706d07a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
$purple: #7049A3; | |
// Turn rgba values to rgb values | |
@function rgba2rgb($color, $bg : 255) { | |
$a: alpha($color); | |
$r: ((1 - $a) * $bg) + ($a * red($color)); | |
$g: ((1 - $a) * $bg) + ($a * green($color)); | |
$b: ((1 - $a) * $bg) + ($a * blue($color)); | |
@return rgb($r, $g, $b); | |
} | |
body { | |
color: rgba2rgb(rgba($purple, 0.5)); | |
} |
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
body { | |
color: #b7a4d1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment