Sha256: aa54e5db85276f32581b1c9ca355359cd0588376099f051cdd02b6e0cce35412

Contents?: true

Size: 463 Bytes

Versions: 169

Compression:

Stored size: 463 Bytes

Contents

@charset "UTF-8";

/// Mixes a color with white.
///
/// @param {Color} $color
///
/// @param {Number (Percentage)} $percent
///   The amount of white to be mixed in.
///
/// @example scss - Usage
///   .element {
///     background-color: tint(#6ecaa6, 40%);
///   }
///
/// @example css - CSS Output
///   .element {
///     background-color: #a8dfc9;
///   }
///
/// @return {Color}

@function tint($color, $percent) {
  @return mix(#fff, $color, $percent);
}

Version data entries

169 entries across 162 versions & 26 rubygems

Version Path
uswds-jekyll-2.1.0 assets/uswds/scss/lib/functions/_tint.scss
uswds-jekyll-2.0.1 assets/uswds/scss/lib/functions/_tint.scss
uswds-jekyll-2.0.1 _sass/uswds/lib/functions/_tint.scss
uswds-jekyll-2.0.0 assets/uswds/scss/lib/functions/_tint.scss
uswds-jekyll-2.0.0 _sass/uswds/lib/functions/_tint.scss
uswds-jekyll-1.4.1 assets/uswds/scss/lib/functions/_tint.scss
uswds-jekyll-1.4.1 _sass/uswds/lib/functions/_tint.scss
english_tea-0.6.2 vendor/assets/stylesheets/bourbon/functions/_tint.scss
english_tea-0.6.1 vendor/assets/stylesheets/bourbon/functions/_tint.scss
english_tea-0.6.0 vendor/assets/stylesheets/bourbon/functions/_tint.scss
english_tea-0.5.3 vendor/assets/stylesheets/bourbon/functions/_tint.scss
english_tea-0.5.2 vendor/assets/stylesheets/bourbon/functions/_tint.scss
english_tea-0.5.1 vendor/assets/stylesheets/bourbon/functions/_tint.scss
english_tea-0.5.0 vendor/assets/stylesheets/bourbon/functions/_tint.scss
english_tea-0.4.0 vendor/assets/stylesheets/bourbon/functions/_tint.scss
english_tea-0.3.0 vendor/assets/stylesheets/bourbon/functions/_tint.scss
soffes-blog-jekyll-0.2.0 _sass/bourbon/functions/_tint.scss
soffes-blog-jekyll-0.1.0 _sass/bourbon/functions/_tint.scss
wayfarer-jruby-0.0.3 docs/_sass/vendor/bourbon/functions/_tint.scss
wayfarer-0.0.3 docs/_sass/vendor/bourbon/functions/_tint.scss