Basic Theme types
{ base : Engage.Unit.Color.Color
, contrast : Engage.Unit.Color.Color
, tertiary : Engage.Unit.Color.Color
}
A color palette
{ a | border : Engage.Unit.Border.Border }
A decoration type
Decoration {}
A decoration only type
{ a | labelFontFamily : Engage.Unit.FontFamily.FontFamily
, labelFontSize : { base : Engage.Unit.Size.Size
, small : Engage.Unit.Relative.Relative }
}
A label typography type
LabelTypography {}
A label typography only type
{ buttonPrimary : ColorPalette
, buttonPrimaryHover : ColorPalette
, buttonStandard : ColorPalette
, buttonStandardHover : ColorPalette
, buttonDivert : ColorPalette
, buttonDivertHover : ColorPalette
, input : ColorPalette
, dropdown : ColorPalette
, error : ColorPalette
, warning : ColorPalette
, confirmation : ColorPalette
, info : ColorPalette
, wizardHeader : ColorPalette
}
A theme palatte
ThemeData SpacingDataOnly (SpacingData WithLabelOnly) (SpacingData WithLabelOnly) SpacingDataOnly SpacingDataOnly
A spacing type
{ modifier | padding : { base : Engage.Unit.Padding.Padding
, small : Engage.Unit.Relative.Relative }
, margin : { base : Engage.Unit.Margin.Margin
, small : Engage.Unit.Relative.Relative }
}
A spacing data type
ThemeData (Typography (LabelTypography DecorationOnly)) (Typography (LabelTypography DecorationOnly)) (Typography (LabelTypography DecorationOnly)) (Typography DecorationOnly) (Typography DecorationOnly)
A style type
A theme
{ button : button
, input : input
, dropdown : dropdown
, wizard : wizard
, wizardHeader : wizardHeader
}
A theme data type
{ a | fontFamily : Engage.Unit.FontFamily.FontFamily
, fontSize : { base : Engage.Unit.Size.Size
, small : Engage.Unit.Relative.Relative }
}
A typography type
Typography {}
A typography only type
{ a | labelMargin : { base : Engage.Unit.Margin.Margin
, small : Engage.Unit.Relative.Relative }
, labelPadding : { base : Engage.Unit.Padding.Padding
, small : Engage.Unit.Relative.Relative }
}
A with label type
WithLabel {}
A with label only type
fromString : Theme -> String -> Theme
Get a theme from a string
toDropdownItem : Theme -> Dropdown.Item
Get a dropdown item for the theme
toString : Theme -> String
Get the string value of a theme