This library exposes all 280 Flat UI colors for use with Elm UI, elm/html and any other library.
This library is based on Flat UI Colors, check their website for the latest color palettes.
Flat UI Colors is brought to you by Asteya Network, they build simple tools for people's productivity.
elm install smucode/elm-flat-colors
import FlatColors.AmericanPalette as FlatColors
view: Element msg
view =
el [ Background.color FlatColors.sourLemon ]
<| text "Sour Lemon"
import FlatColors.AmericanPalette as FlatColors
view: Html msg
view =
div [ style "background-color" FlatColors.sourLemonHex ]
[ text "Sour Lemon" ]
import FlatColors.AmericanPalette as FlatColors
color: Color
color =
let
{ red, green, blue } =
FlatColors.sourLemonRgb
in
Color.rgb255 red green blue
import FlatColors.AmericanPalette as FlatColors
cssGradient : String
cssGradient =
let
colors =
String.join "," FlatColors.allHex
in
"linear-gradient(" ++ colors ++ ")"