lucamug/style-framework/1.1.0

Framework.Color.Extra

Utilities

darken : Float -> Color -> Color

Decrease the lightning of a color

desaturate : Float -> Color -> Color

Decrease the saturation of a color

lighten : Float -> Color -> Color

Increase the lightning of a color

maximumContrast : Color -> Color -> Color -> Color

Returns the color with the highest contrast to the base color.

saturate : Float -> Color -> Color

Increase the saturation of a color

Convertions to/from Hex

colorToHex : Color -> String

Converts a color to a hexadecimal string.

hexToColor : String -> Color

Converts a string to a color.

Convertions to/from Color.Color

fromColor : Color -> Color

Convert a Color.Color into an Element.Color

toColor : Color -> Color

Convert an Element.Color into a Color.Color