Sha256: c25d54911dbd63c07845a597dceb9f2d922315731d5952f66d326eee087577f6

Contents?: true

Size: 715 Bytes

Versions: 12

Compression:

Stored size: 715 Bytes

Contents

/* ==========================================================================
   Color Functions
   ========================================================================== */

/// Slightly lighten a color
/// @access public
/// @param {Color} $color - color to tint
/// @param {Number} $percentage - percentage of `$color` in returned color
/// @return {Color}
@function tint($color, $percentage) {
  @return mix(#fff, $color, $percentage);
}

/// Slightly darken a color
/// @access public
/// @param {Color} $color - color to shade
/// @param {Number} $percentage - percentage of `$color` in returned color
/// @return {Color}
@function shade($color, $percentage) {
  @return mix(#000, $color, $percentage);
}

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
jekyll-theme-basically-basic-1.4.5 _sass/basically-basic/functions/_color.scss
jekyll-theme-so-simple-libre-4.0.0 _sass/so-simple/functions/_color.scss
jekyll-theme-so-simple-3.2.0 _sass/so-simple/functions/_color.scss
jekyll-theme-so-simple-3.1.3 _sass/so-simple/functions/_color.scss
jekyll-theme-basically-basic-1.4.4 _sass/basically-basic/functions/_color.scss
jekyll-theme-basically-basic-1.4.3 _sass/basically-basic/functions/_color.scss
jekyll-theme-basically-basic-1.4.2 _sass/basically-basic/functions/_color.scss
jekyll-theme-so-simple-3.1.2 _sass/so-simple/functions/_color.scss
jekyll-theme-basically-basic-1.4.1 _sass/basically-basic/functions/_color.scss
jekyll-theme-so-simple-3.1.1 _sass/so-simple/functions/_color.scss
jekyll-theme-basically-basic-1.4.0 _sass/basically-basic/functions/_color.scss
jekyll-theme-basically-basic-1.0.0 _sass/basically-basic/mixins/_color.scss