rakutentech/r10/1.1.0

NOTE: the latest version is 7.0.0

R10.Color

Utilities for colors.

colorToElementColor : Color -> Color

Transform a color, as defined in avh4/elm-color, to an Element color, as defined in mdgriffith/elm-ui.

fromHex : String -> Color

Convert a string containing an hexadecimal number to a Color.

fromLightToDark : Color -> Color

Convert a color from Light Mode to Dark Mode. At the moment this function leave the color untouched as we could not find any good transformation.

setAlpha : Float -> Color -> Color

Change the alpha channel in a color.