rakutentech/r10/2.1.3

NOTE: the latest version is 7.0.0

R10.FormTypes

Types for Forms

= TextPlain
| TextEmail
| TextUsername
| TextPasswordNew
| TextPasswordCurrent
| TextMultiline
| TextWithPattern String

Possible types of Text input fields

= BinaryCheckbox
| BinarySwitch

Possible types of Binarye input fields

= MultiCombobox

Possible types of Multy input fields

= SingleRadio
| SingleCombobox
| SingleSelect

Possible types of Single input fields

= TypeText TypeText
| TypeSingle TypeSingle (List FieldOption)
| TypeMulti TypeMulti (List FieldOption)
| TypeBinary TypeBinary
type alias FieldOption =
{ value : String
, label : String
}
{ binaryCheckbox : FieldType
, binarySwitch : FieldType
, multiCombobox : List FieldOption -> FieldType
, singleCombobox : List FieldOption -> FieldType
, singleSelect : List FieldOption -> FieldType
, singleRadio : List FieldOption -> FieldType
, textEmail : FieldType
, textMultiline : FieldType
, textPasswordCurrent : FieldType
, textPasswordNew : FieldType
, textPlain : FieldType
, textUsername : FieldType
, textWithPattern : String -> FieldType
}
= NoIcon
| ClearOrCheck
| ErrorOrCheck
type alias Palette =
{ primary : Color
, primaryVariant : Color
, success : Color
, error : Color
, onSurface : Color
, onPrimary : Color
, surface : Color
, background : Color
}
type alias Palette =
    { primary : Color
    , primaryVariant : Color
    , success : Color
    , error : Color


    -- Text Colors
    --
    , onSurface : Color
    , onPrimary : Color


    -- Background Colors
    --
    , surface : Color
    , background : Color
    }

Note that these are Element.Color from elm-ui.

See https://material.io/design/color/dark-theme.html#properties for more details.

If you want to use the default palette, just pass Nothing