app/utils/color_utils.rb
def adjust(name_or_hex, amount)
    c = Color::RGB.by_css(name_or_hex).to_hsl
    c.lightness += amount
    c.to_rgb.hex
  end
# Adjust the color by given amount of Lightness in HSL color space.
# This is what SASS does internally with the darken and lighten function.
Adjust the color by given amount of Lightness in HSL color space.
This is what SASS does internally with the darken and lighten function.
Adjust the color by given amount of Lightness in HSL color space . This is what SASS does internally with the darken and lighten function .
def adjust(name_or_hex, amount)
    c = Color::RGB.by_css(name_or_hex).to_hsl
    c.lightness += amount
    c.to_rgb.hex
  end
def adjust ( name_or_hex , amount ) c = Color :: RGB . by_css ( name_or_hex ) . to_hsl c . lightness += amount c . to_rgb . hex end
Adjust the color by given amount of Lightness in HSL color space.
Adjust the color by given amount of Lightness in HSL color space .
name_or_hex
amount