Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am benebun on github.
  • I am benebun (https://keybase.io/benebun) on keybase.
  • I have a public key whose fingerprint is 61E2 5E79 8E51 B91B 600D A8C7 F55E 647B F668 9BF9

To claim this, I am signing this object:

@benebun
benebun / _palette.scss
Last active August 29, 2015 14:01
Extend sass 3.3 colour maps with warning and fallback to red colour
// extended from http://erskinedesign.com/blog/friendlier-colour-names-sass-maps/
@function palette($palette, $tone: 'base') {
$color: map-get(map-get($palettes, $palette), $tone);
@if $color == null {
@warn "Colour undefined: Palette '#{$palette}' doesn't yet define the tone '#{$tone}'!";
@return #{red};
}
@return $color;
}
@benebun
benebun / SassMeister-input-HTML.html
Created April 10, 2014 13:19
Generated by SassMeister.com.
<header>header</header>
<nav>navigation</nav>
<article>article</article>
<div class="inner">
<section>section</section>
<footer>footer</footer>
</div>