An Elm port of modern-normalize for rtfeldman/elm-css.
elm install hmsk/elm-css-modern-normalize
import Css.ModernNormalize as ModernNormalize
view : Model -> Html Msg
view _ =
[
ModernNormalize.globalHtml
-- Your application view comes here
]
import Css exposing (color, hex)
import Css.Global exposing (global, selector)
import Css.ModernNormalize as ModernNormalize
import Html.Styled
buildGlobal : Html.Styled.Html msg
buildGlobal =
global <|
[
selector ".myGlobalStyle" [ color <| hex "#597B8C" ]
]
++ ModernNormalize.snippets
import Css.ModernNormalize as ModernNormalize
import Html.Styled exposing (h1)
styledView : Html.Styled.Html msg
styledView =
[ h1 [] [text "header"]
, ModernNormalize.globalStyledHtml
]