clay-0.8: 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.

http://www.w3.org/TR/css3-fonts/#font-prop

Methods

font :: a -> CssSource

Instances

data Required a Source

Constructors

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

Instances

Color.

fontColor :: Color -> CssSource

An alias for color.

Font-family.

fontFamily :: [Text] -> [GenericFontFamily] -> CssSource

The fontFamily style rules takes to lists of font families: zero or more custom font-families and preferably one or more generic font families.

sansSerif :: GenericFontFamilySource

serif :: GenericFontFamilySource

monospace :: GenericFontFamilySource

cursive :: GenericFontFamilySource

fantasy :: GenericFontFamilySource

Font-size.

Font-style

Font-variant.

Font-weight

Named fonts.

Line-height.