rakutentech/r10/1.1.1

NOTE: the latest version is 7.0.0

R10.Color.Derived

Rakuten derived colors

type Color
= Success
| Primary
| Logo
| FontMediumEmphasisWithMaximumContrast
| FontMediumEmphasis
| FontLink
| FontHighEmphasisWithMaximumContrast
| FontHighEmphasis
| Error
| Debugger
| Border
| BackgroundPhoneDropdown
| BackgroundNormal
| BackgroundInputFieldText
| BackgroundButtonPrimaryOver
| BackgroundButtonPrimaryDisabledOver
| BackgroundButtonPrimaryDisabled
| BackgroundButtonPrimary
| BackgroundButtonMinorOver
list : List Color
toColor : Theme -> Color -> Color

Convert a primary color into a avh4/elm-color type of color. It requiires a Mode because the color can be sligtly different in Light or Dark mode.

To String

toString : Color -> String