Created
September 14, 2018 15:24
-
-
Save zastrow/1453a4a71dc84cc8c12f0e6cece4441e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// libsass (v3.5.4) | |
// ---- | |
// Grayscale Maker | |
// Add a number and this will make a gray by | |
// darken white that percentage. | |
@function gray($level) { | |
@if $level == 0 { | |
@return white; | |
} | |
@else if $level == 100 { | |
@return black; | |
} | |
@else { | |
@return darken(white, $level * 1%); | |
} | |
} | |
.test { | |
color: gray(24); | |
} |
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
.test { | |
color: #c2c2c2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment