samueldple/material-color/1.0.0

NOTE: the latest version is 1.0.1

Renamed to notquiteamonad/material-color. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as samueldple/material-color still install under that name. 2 versions of 2 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/notquiteamonad/material-color.

What we checked: The repo moved to github.com/notquiteamonad/material-color. Rebuilt with git archive from commit e216f4e0a2e6 of https://github.com/notquiteamonad/material-color (zip prefix samueldple-material-color-7667aba/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 dc2728e35c458ff17bd161c0a6e4b634abc4de07.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/samueldple/material-color/zipball/1.0.0/

MaterialColor

This library contains all of Google's material colors along with black, white, and custom colors.

It works seamlessly with rtfeldman/elm-css.

Defining Colors

type Color
= Red Shade
| Pink Shade
| Purple Shade
| DeepPurple Shade
| Indigo Shade
| Blue Shade
| LightBlue Shade
| Cyan Shade
| Teal Shade
| Green Shade
| LightGreen Shade
| Lime Shade
| Yellow Shade
| Amber Shade
| Orange Shade
| DeepOrange Shade
| Brown Shade
| Grey Shade
| BlueGrey Shade
| White
| Black
| WhiteWithAlpha String
| BlackWithAlpha String
| Hex String

A color value, usually encompassing a color variant and a shade of the color. Exceptions are black, white, and custom colors.

Custom colors can be defined by hex values as you would in css (without the #).

type Shade
= S50
| S100
| S200
| S300
| S400
| S500
| S600
| S700
| S800
| S900
| S50A String
| S100A String
| S200A String
| S300A String
| S400A String
| S500A String
| S600A String
| S700A String
| S800A String
| S900A String

The shade of color per the material design specification. Variants of shades with "A" appended allow a 2-character hex value for alpha to be supplied.

Using Colors with rtfeldman/elm-css

toCssColor : Color -> Color

Converts from a Color to a Css.Color (from rtfeldman/elm-css).