Created
September 28, 2015 07:37
-
-
Save cahnory/7a62e0f5a91ce2918012 to your computer and use it in GitHub Desktop.
Assert in sass
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
// Assert example | |
// https://bitbucket.org/cahnory/integrate-css/src/c9c8df11cddf/libs/assert/ | |
$color: assert($color, (type: 'color', default: #333)); | |
$font-size: assert($font-size, (type: 'number', default: 14)); | |
$line-height: assert($line-height, (type: 'number', default: 1.35)); | |
$font-family: assert($font-family, (default: (Arial, sans-serif))); | |
$age: assert($age, (type: 'number', gte: 18)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment