Diese Bibliothek enthält alle 280 Flat UI -Farben für die Verwendung mit ELM UI, ELM/HTML und einer anderen Bibliothek.
Diese Bibliothek basiert auf Flat UI -Farben und überprüfen Sie ihre Website für die neuesten Farbpaletten.
Flat UI -Farben werden von Ateya Network zu Ihnen gebracht, sie bauen einfache Werkzeuge für die Produktivität der Menschen auf.
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 ++ " ) "