View Source CSSEx.Helpers.Functions (CSSEx v1.0.2)
Default base functions to use in stylesheets.
@fn::opacity(red, 0.8)
Summary
Functions
Darken function, takes a color in the form of a string and a number representing the percentage to darken and returns a CSS rgba() string.
Lighten function, takes a color in the form of a string and a number representing the percentage to lighten and returns a CSS rgba() string.
Opacity function, takes a color in the form of a string and a number representing the desired alpha channel value in the form of a float and returns a CSS rgba() string.
Functions
Darken function, takes a color in the form of a string and a number representing the percentage to darken and returns a CSS rgba() string.
@fn::darken(orange, 25)
Lighten function, takes a color in the form of a string and a number representing the percentage to lighten and returns a CSS rgba() string.
@fn::lighten(orange, 10)
Opacity function, takes a color in the form of a string and a number representing the desired alpha channel value in the form of a float and returns a CSS rgba() string.
@fn::opacity(orange, 0.5)