Sha256: cf28e755502aea2d1a3fccb85bcf3d066b127d0212242ddd07c037287f487150
Contents?: true
Size: 559 Bytes
Versions: 4
Compression:
Stored size: 559 Bytes
Contents
@charset "UTF-8"; /// Programatically determines whether a color is light or dark. /// /// @link http://goo.gl/Dil4Y9 /// /// @argument {color (hex)} $hex-color /// /// @return {boolean} /// /// @example scss /// is-light($color) /// /// @access private @function _is-light($hex-color) { $-local-red: red(rgba($hex-color, 1)); $-local-green: green(rgba($hex-color, 1)); $-local-blue: blue(rgba($hex-color, 1)); $-local-lightness: ($-local-red * 0.2126 + $-local-green * 0.7152 + $-local-blue * 0.0722) / 255; @return $-local-lightness > 0.6; }
Version data entries
4 entries across 4 versions & 2 rubygems