Skip to content

Instantly share code, notes, and snippets.

@cahnory
Created September 28, 2015 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cahnory/7a62e0f5a91ce2918012 to your computer and use it in GitHub Desktop.
Save cahnory/7a62e0f5a91ce2918012 to your computer and use it in GitHub Desktop.
Assert in sass
// 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