Skip to content

Instantly share code, notes, and snippets.

@theho
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save theho/96185913764cc6882150 to your computer and use it in GitHub Desktop.

Select an option

Save theho/96185913764cc6882150 to your computer and use it in GitHub Desktop.

Revisions

  1. @benfrain benfrain created this gist Nov 19, 2013.
    9 changes: 9 additions & 0 deletions _tint-and-shade.scss
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    // Add percentage of white to a color
    @function tint($color, $percent){
    @return mix(white, $color, $percent);
    }

    // Add percentage of black to a color
    @function shade($color, $percent){
    @return mix(black, $color, $percent);
    }