Skip to content

Instantly share code, notes, and snippets.

@TJkrusinski
Last active August 29, 2015 14:05
Show Gist options
  • Save TJkrusinski/8a4e371fdecbd03117a7 to your computer and use it in GitHub Desktop.
Save TJkrusinski/8a4e371fdecbd03117a7 to your computer and use it in GitHub Desktop.
// contrived example
$box-height: 30px;
$box-width: 30px;
// optional args
@mixin box-me-bro ($width: $box-width, $height: $box-height) {
width: $width;
height: $height;
}
// using it
div {
@include box-me-bro()
}
main {
@include box-me-bro(50px, 90px)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment