clay-0.3: CSS preprocessor as embedded Haskell.

Safe HaskellNone

Clay.Font

Contents

Synopsis

Generic font property.

class Val a => Font a whereSource

We implement the generic font property as a type class that accepts multiple value types. This allows us to combine different font aspects into a shorthand syntax. Fonts require a mandatory part and have a optional a part.

Methods

font :: a -> CssSource

Instances

data Required a Source

Constructors

Required (Size a) (Maybe (Size a)) [Text] [Text] 

Instances

Color.

fontColor :: Color -> CssSource

An alias for color.

Font-family.

Font-size.

Font-style

Font-variant.

Font-weight

Named fonts.

data NamedFont Source

Instances

Line-height.