nsbno / spor-elm / Spor.TextStyle

The TextStyle type is used for configuring text appareance in other components.


type TextStyle
    = DoubleExtraLarge
    | ExtraLargeDisplay
    | ExtraLargeSans
    | Large
    | Medium
    | Small
    | ExtraSmall
    | ExtraLargeSansBold
    | LargeBold
    | MediumBold
    | SmallBold
    | ExtraSmallBold

Represents a combination of font type, size and line height for some text. Used in components such as Text and Heading. This setting scales according to the size of the user device.