NoRedInk/noredink-ui/4.11.1

NOTE: this package is not compatible with Elm 0.19.1

Nri.Ui.Text.V1

styles : Styles Never CssClasses msg

Semantic text types:

caption : List (Html msg) -> Html msg

This is a little note or caption.

heading : List (Html msg) -> Html msg

This is a Page Heading.

mediumBody : List (Html msg) -> Html msg

This is some medium body copy.

smallBody : List (Html msg) -> Html msg

This is some small body copy.

smallBodyGray : List (Html msg) -> Html msg

This is some small body copy but it's gray.

subHeading : List (Html msg) -> Html msg

This is a subhead.

smallHeading : List (Html msg) -> Html msg

This is a small Page Heading.

tagline : List (Html msg) -> Html msg

This is a tagline for a page heading.

User-generated text styles:

ugMediumBody : List (Html msg) -> Html msg

User-generated text.

ugSmallBody : List (Html msg) -> Html msg

User-generated text.

Text class strings:

Stringified version of captionClasses. Necessary because https://github.com/rtfeldman/elm-css-helpers/issues/2

Stringified version of mediumBodyClasses. Necessary because https://github.com/rtfeldman/elm-css-helpers/issues/2

Stringified version of smallBodyClasses. Necessary because https://github.com/rtfeldman/elm-css-helpers/issues/2

Modifying strings to display nicely:

noWidow : String -> String

Eliminate widows (single words on their own line caused by wrapping) by inserting a non-breaking space if there are at least two words.