← all modules

Std.Ui.Font

Std.Ui.Font
  Std.Ui.Font — typed typography attribute helpers for `Std.Ui`.

Values
  activeColor : Color -> Attribute msg
      Text colour while the element is being clicked / tapped.
  alignCenter : Attribute msg
  alignLeft : Attribute msg
      Text alignment within the element. These compile to `text-align`,
  alignRight : Attribute msg
  black : Attribute msg
  bold : Attribute msg
  center : Attribute msg
  color : Color -> Attribute msg
  disabledColor : Color -> Attribute msg
      Text colour when the element has the `disabled` attribute.
  extraBold : Attribute msg
  family : String -> Attribute msg
      Pass a comma-separated CSS font-family string. Sky's typed codegen
  focusColor : Color -> Attribute msg
      `focusColor` targets `:focus-visible` (safer default — only
  focusVisibleColor : Color -> Attribute msg
      Explicit `:focus-visible` alias.
  hoverColor : Color -> Attribute msg
      Hover-state text colour swap. Hover rules are auto-gated behind
  hoverSize : Int -> Attribute msg
      Hover-state font size (in px). Mirrors `size`.
  italic : Attribute msg
      Italic text.
  justify : Attribute msg
  letterSpacing : Float -> Attribute msg
      Letter-spacing (tracking) in em.
  light : Attribute msg
  lineThrough : Attribute msg
      Strikethrough text. CSS `text-decoration: line-through`.
  monospace : String
  noDecoration : Attribute msg
      Strip default text decoration. Most useful for `Ui.link` — browsers
  overline : Attribute msg
      Overlined text. CSS `text-decoration: overline`.
  regular : Attribute msg
  sansSerif : String
  semiBold : Attribute msg
  serif : String
  size : Int -> Attribute msg
  typeface : String -> String
  underline : Attribute msg
      Underlined text.
  weight : Int -> Attribute msg
  wordSpacing : Float -> Attribute msg
      Word-spacing in em.