mdgriffith/style-elements/3.4.1

NOTE: this package is not compatible with Elm 0.19.1

Style.Font

Font Properties

Meant to be imported as:

import Style.Font as Font
typeface : List String -> Property class variation
size : Float -> Property class variation

Font size specified in px

lineHeight : Float -> Property class variation

Given as a ratio of the Font.size.

letterSpacing : Float -> Property class variation

In px.

wordSpacing : Float -> Property class variation

In px.

alignLeft : Property class variation

Align the font to the left.

alignRight : Property class variation

Align the font to the right.

center : Property class variation

Align font center.

justify : Property class variation
justifyAll : Property class variation
wrap : Property class variation

Renders as "white-space:normal", which is the standard wrapping behavior you're probably used to.

pre : Property class variation
preWrap : Property class variation
preLine : Property class variation
noWrap : Property class variation
uppercase : Property class variation
capitalize : Property class variation
lowercase : Property class variation
underline : Property class variation
strike : Property class variation
italic : Property class variation
bold : Property class variation
weight : Int -> Property class variation
light : Property class variation