This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
README

Css.Reset

This library is mostly a direct port of normalize.css. Compile it with your elm-css code to have easier cross-browser styling experience.

Normalizing CSS Stylesheet

css : Stylesheet

A Stylesheet to rest values to make them more consistent across most browsers. You can include this stylesheet in your elm-css compilation file.

import Css exposing (..)
import Css.File exposing (..)
import Css.Reset
import Html exposing (div)
import Html.App as Html
import My.Styles
import String

port files : CssFileStructure -> Cmd msg

styles : List Css.Stylesheet
styles =
    [ Css.Reset.css
    , My.Styles.css
    ]

cssFiles : CssFileStructure
cssFiles =
    toFileStructure [ ( "dist/styles.css", compileMany styles ) ]


{- Helper function to compile many stylesheets -}

compileMany : List Css.Stylesheet -> { warnings : List String, css : String }
compileMany styles =
    let
        results =
            List.map Css.compile styles
    in
    { warnings = List.concatMap .warnings results
    , css = String.join "\n\n" (List.map .css results)
    }

main : Program Never
main =
    Html.program
        { init = ( (), files cssFiles )
        , view = \_ -> div [] []
        , update = \_ _ -> ( (), Cmd.none )
        , subscriptions = \_ -> Sub.none
        }

Css Snippets

snippets : List Snippet

The snippets used to generate the normalizing stylesheet. Use this if you want to append these to your own style sheet. This is useful if you prefer to use inline styles over generator a stylesheet with the elm-css preprocessor

import Css exposing (..)
import Css.Elements exposing (..)
import Css.Namespace exposing (namespace)
import Css.Reset

css : Css.Stylesheet
css =
    (Css.stylesheet << namespace "my-styles") <|
        List.append
            Css.Reset.snippets
            [ everything
                [ boxSizing borderBox ]
            ]
module Css.Reset exposing (css, snippets)

{-| This library is mostly a direct port of [normalize.css](https://github.com/necolas/normalize.css).
Compile it with your elm-css code to have easier cross-browser styling experience.


# Normalizing CSS Stylesheet

@docs css


# Css Snippets

@docs snippets

-}

import Css exposing (..)
import Css.Elements as Element exposing (..)


{-| A [Stylesheet](https://github.com/rtfeldman/elm-css/blob/master/Tutorial.md) to rest values to make them more consistent across most browsers. You can
include this stylesheet in your elm-css compilation file.

    import Css exposing (..)
    import Css.File exposing (..)
    import Css.Reset
    import Html exposing (div)
    import Html.App as Html
    import My.Styles
    import String

    port files : CssFileStructure -> Cmd msg

    styles : List Css.Stylesheet
    styles =
        [ Css.Reset.css
        , My.Styles.css
        ]

    cssFiles : CssFileStructure
    cssFiles =
        toFileStructure [ ( "dist/styles.css", compileMany styles ) ]


    {- Helper function to compile many stylesheets -}

    compileMany : List Css.Stylesheet -> { warnings : List String, css : String }
    compileMany styles =
        let
            results =
                List.map Css.compile styles
        in
        { warnings = List.concatMap .warnings results
        , css = String.join "\n\n" (List.map .css results)
        }

    main : Program Never
    main =
        Html.program
            { init = ( (), files cssFiles )
            , view = \_ -> div [] []
            , update = \_ _ -> ( (), Cmd.none )
            , subscriptions = \_ -> Sub.none
            }

-}
css : Stylesheet
css =
    Css.stylesheet snippets


{-| The snippets used to generate the normalizing stylesheet. Use this if you want to append
these to your own style sheet. This is useful if you prefer to use inline styles over
generator a stylesheet with the [elm-css preprocessor](https://www.npmjs.com/package/elm-css)

    import Css exposing (..)
    import Css.Elements exposing (..)
    import Css.Namespace exposing (namespace)
    import Css.Reset

    css : Css.Stylesheet
    css =
        (Css.stylesheet << namespace "my-styles") <|
            List.append
                Css.Reset.snippets
                [ everything
                    [ boxSizing borderBox ]
                ]

-}
snippets : List Snippet
snippets =
    [ each
        [ html
        , body
        , div
        , span
        , selector "object"
        , selector "iframe"
        , h1
        , h2
        , h3
        , h4
        , h5
        , h6
        , p
        , selector "blockquote"
        , pre
        , a
        , selector "abbr"
        , selector "acronym"
        , selector "address"
        , selector "big"
        , selector "cite"
        , selector "code"
        , selector "del"
        , selector "dfn"
        , selector "em"
        , img
        , selector "ins"
        , selector "kbd"
        , selector "q"
        , selector "s"
        , selector "samp"
        , selector "small"
        , selector "strike"
        , strong
        , selector "sub"
        , selector "sup"
        , selector "tt"
        , selector "var"
        , selector "b"
        , selector "u"
        , selector "i"
        , selector "center"
        , selector "dl"
        , selector "dt"
        , selector "dd"
        , ol
        , ul
        , li
        , fieldset
        , form
        , label
        , legend
        , Element.table
        , caption
        , tbody
        , tfoot
        , thead
        , tr
        , th
        , td
        , article
        , selector "aside"
        , canvas
        , selector "details"
        , selector "embed"
        , selector "figure"
        , selector "figcaption"
        , footer
        , header
        , selector "menu"
        , nav
        , selector "output"
        , selector "ruby"
        , section
        , selector "summary"
        , selector "time"
        , selector "mark"
        , audio
        , video
        ]
        [ margin zero
        , padding zero
        , border zero
        , fontSize (pct 100)
        , property "font" "inherit"
        , verticalAlign baseline
        ]
    , each
        [ article
        , selector "aside"
        , selector "details"
        , selector "figcaption"
        , selector "figure"
        , footer
        , header
        , selector "menu"
        , nav
        , section
        ]
        [ display block ]
    , body [ property "line-height" "1" ]
    , each [ ol, ul ] [ property "list-style" "none" ]
    , each [ selector "blockquote", selector "q" ] [ property "quotes" "none" ]
    , selector "blockquote:before, blockquote:after, q:before, q:after"
        [ property "content" ""
        , property "content" "none"
        ]
    , Element.table
        [ property "border-collapse" "collapse"
        , property "border-spacing" "0"
        ]
    ]