friedbrice / elm-teaching-tools / ElmTeachingTools.Lib.Color

A library with some stock colors so that you don't have to remember their Hex values.

Basic API


type Color
    = Color String

A color in RGB hex notation.

hexValue : Color -> String

Get the RGB hex notation of a Color.

--| Example
hexValue (Color "#c0c0c0")
--> "#c0c0c0"

Predefined Colors

white : Color

silver : Color

gray : Color

black : Color

red : Color

maroon : Color

yellow : Color

olive : Color

lime : Color

green : Color

aqua : Color

teal : Color

blue : Color

navy : Color

fuchsia : Color

purple : Color