carboncloud / ui-library / Ui.TextStyle

TextStyle

This module defines a TextStyle and the available font properties.

Types


type TextStyle
    = TextStyle ({ family : List String, size : Basics.Int, weight : FontWeight, lineHeight : Basics.Float })

Body

bodySmall : TextStyle

Heading

heading1 : TextStyle

heading2 : TextStyle

heading3 : TextStyle

Others

label : TextStyle

Font families

sansSerifFamilies : List String

Font weights


type FontWeight
    = Thin
    | ExtraLight
    | Light
    | Normal
    | Medium
    | SemiBold
    | Bold
    | ExtraBold

Represents a font weight

fontWeight : FontWeight -> Basics.Int

Return the weight of a font