Utilities for colors.
There are two competing color types in this library:
Color.Color (from avh4/elm-color)Element.Color (from mdgriffith/elm-ui)The default color type is Element.Color.
Transform an Element.Color into a Color.Color.
Convert a string containing an hexadecimal number into an Element.Color.
Convert a color from Light Mode to Dark Mode. This function works for Color.Color type.
Change the alpha channel in a color. This function works for Color.Color type.
Convert an Element.Color to a RGBA string, for example: rgba(100, 200, 0, 1)
Convert a string containing an hexadecimal number into a Color.Color.
Transform a
Color.Colorinto anElement.Color.