altayaydemir/style-elements/1.0.0

Rerouted (cache, verified). The original is gone. This copy comes from a Lamdera package cache made before it went. The Lamdera package server serves a copy recovered from a Lamdera package cache from 2021-02-13.

What we checked: Rebuilt from the unpacked sources in a Lamdera package cache (5 copies agree), which Elm only writes after the published SHA-1 checked out; elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, so its SHA-1 is not the published one.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/altayaydemir/style-elements/zipball/1.0.0/

Style.Font

Font Properties

Meant to be imported as:

import Style.Font as Font

Typefaces

typeface : List Font -> Property class variation
font : String -> Font
serif : Font
sansSerif : Font
cursive : Font
fantasy : Font
monospace : Font
{ url : String
, name : String
}
-> Font

Properties

size : Float -> Property class variation

Font size as px

lineHeight : Float -> Property class variation

This is the only unitless value in the library that isn't px.

Given as a proportion of the Font.size.

This means the final lineHeight in px is:

  Font.size * Font.lineHeight == lineHeightInPx
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

Font Styles

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