Les autres fonctions pour les couleurs

Opacity Functions

  • alpha($color) / opacity($color) - Gets the alpha component (opacity) of a color.
  • rgba($color, $alpha) - Changes the alpha component for a color.
  • opacify($color, $amount) / fade-in($color, $amount) - Makes a color more opaque.
  • transparentize($color, $amount) / fade-out($color, $amount) - Makes a color more transparent.

Other Color Functions

  • adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha]) - Increases or decreases one or more components of a color.
  • scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha]) - Fluidly scales one or more properties of a color.
  • change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha]) - Changes one or more properties of a color.
  • ie-hex-str($color) - Converts a color into the format understood by IE filters.