Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 804 Bytes

File metadata and controls

57 lines (34 loc) · 804 Bytes

Module Documentation

Module Halogen.HTML.CSS

This module defines an adapter between the purescript-halogen and purescript-css libraries.

Styles

newtype Styles
  = Styles (SM.StrMap String)

A newtype for CSS styles

runStyles

runStyles :: Styles -> SM.StrMap String

Unpack CSS styles

stylesIsAttribute

instance stylesIsAttribute :: A.IsAttribute Styles

style

style :: forall i. Css -> A.Attr i

Render a set of rules as an inline style.

For example:

H.div [ Css.style do color red
                     display block ]
      [ ... ]

stylesheet

stylesheet :: forall i. Css -> H.HTML i

Render a set of rules as a style element.