/elm-css-colors

Primary LanguageElmBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

elm-css-colors

This package uses elm-css's Color type to implement all of the named colors from the CSS Color Module Level 4 spec.

Example

import Css exposing (color)
import Css.Colors exposing (black, white)
import Html.Styled exposing (div, text, toUnstyled)
import Html.Styled.Attributes exposing (css)

main =
    div
        [ css
            [ color white
            , backgroundColor black
            ]
        ]
        [ text "Hello, World!" ]
        |> toUnstyled