Fledex.Color.Names.CSS (fledex v0.6.0)

View Source

Do not use this module directly, but use Fledex.Color.Names instead

Summary

Guards

Check whether the atom is a valid color name

Color Names

Types

The allowed color names

Functions

Get all the data about the predefined colors

Get a list of all the predefined color (atom) names.

Guards

is_color_name(atom)

(macro)

Check whether the atom is a valid color name

Color Names

aliceblue(what \\ :hex)

Defines the color rgb(240, 248, 255).

antiquewhite(what \\ :hex)

Defines the color rgb(250, 235, 215).

aqua(what \\ :hex)

Defines the color rgb(0, 255, 255).

aquamarine(what \\ :hex)

Defines the color rgb(127, 255, 212).

azure(what \\ :hex)

Defines the color rgb(240, 255, 255).

beige(what \\ :hex)

Defines the color rgb(245, 245, 220).

bisque(what \\ :hex)

Defines the color rgb(255, 228, 196).

black(what \\ :hex)

Defines the color rgb(0, 0, 0).

blanchedalmond(what \\ :hex)

Defines the color rgb(255, 235, 205).

blue(what \\ :hex)

Defines the color rgb(0, 0, 255).

blueviolet(what \\ :hex)

Defines the color rgb(138, 43, 226).

brown(what \\ :hex)

Defines the color rgb(165, 42, 42).

burlywood(what \\ :hex)

Defines the color rgb(222, 184, 135).

cadetblue(what \\ :hex)

Defines the color rgb(95, 158, 160).

chartreuse(what \\ :hex)

Defines the color rgb(127, 255, 0).

chocolate(what \\ :hex)

Defines the color rgb(210, 105, 30).

coral(what \\ :hex)

Defines the color rgb(255, 127, 80).

cornflowerblue(what \\ :hex)

Defines the color rgb(100, 149, 237).

cornsilk(what \\ :hex)

Defines the color rgb(255, 248, 220).

crimson(what \\ :hex)

Defines the color rgb(220, 20, 60).

cyan(what \\ :hex)

Defines the color rgb(0, 255, 255).

darkblue(what \\ :hex)

Defines the color rgb(0, 0, 139).

darkcyan(what \\ :hex)

Defines the color rgb(0, 139, 139).

darkgoldenrod(what \\ :hex)

Defines the color rgb(184, 134, 11).

darkgray(what \\ :hex)

Defines the color rgb(169, 169, 169).

darkgreen(what \\ :hex)

Defines the color rgb(0, 100, 0).

darkgrey(what \\ :hex)

Defines the color rgb(169, 169, 169).

darkkhaki(what \\ :hex)

Defines the color rgb(189, 183, 107).

darkmagenta(what \\ :hex)

Defines the color rgb(139, 0, 139).

darkolivegreen(what \\ :hex)

Defines the color rgb(85, 107, 47).

darkorange(what \\ :hex)

Defines the color rgb(255, 140, 0).

darkorchid(what \\ :hex)

Defines the color rgb(153, 50, 204).

darkred(what \\ :hex)

Defines the color rgb(139, 0, 0).

darksalmon(what \\ :hex)

Defines the color rgb(233, 150, 122).

darkseagreen(what \\ :hex)

Defines the color rgb(143, 188, 143).

darkslateblue(what \\ :hex)

Defines the color rgb(72, 61, 139).

darkslategray(what \\ :hex)

Defines the color rgb(47, 79, 79).

darkslategrey(what \\ :hex)

Defines the color rgb(47, 79, 79).

darkturquoise(what \\ :hex)

Defines the color rgb(0, 206, 209).

darkviolet(what \\ :hex)

Defines the color rgb(148, 0, 211).

deeppink(what \\ :hex)

Defines the color rgb(255, 20, 147).

deepskyblue(what \\ :hex)

Defines the color rgb(0, 191, 255).

dimgray(what \\ :hex)

Defines the color rgb(105, 105, 105).

dimgrey(what \\ :hex)

Defines the color rgb(105, 105, 105).

dodgerblue(what \\ :hex)

Defines the color rgb(30, 144, 255).

firebrick(what \\ :hex)

Defines the color rgb(178, 34, 34).

floralwhite(what \\ :hex)

Defines the color rgb(255, 250, 240).

forestgreen(what \\ :hex)

Defines the color rgb(34, 139, 34).

fuchsia(what \\ :hex)

Defines the color rgb(255, 0, 255).

gainsboro(what \\ :hex)

Defines the color rgb(220, 220, 220).

ghostwhite(what \\ :hex)

Defines the color rgb(248, 248, 255).

gold(what \\ :hex)

Defines the color rgb(255, 215, 0).

goldenrod(what \\ :hex)

Defines the color rgb(218, 165, 32).

gray(what \\ :hex)

Defines the color rgb(128, 128, 128).

green(what \\ :hex)

Defines the color rgb(0, 128, 0).

greenyellow(what \\ :hex)

Defines the color rgb(173, 255, 47).

grey(what \\ :hex)

Defines the color rgb(128, 128, 128).

honeydew(what \\ :hex)

Defines the color rgb(240, 255, 240).

hotpink(what \\ :hex)

Defines the color rgb(255, 105, 180).

indianred(what \\ :hex)

Defines the color rgb(205, 92, 92).

indigo(what \\ :hex)

Defines the color rgb(75, 0, 130).

ivory(what \\ :hex)

Defines the color rgb(255, 255, 240).

khaki(what \\ :hex)

Defines the color rgb(240, 230, 140).

lavender(what \\ :hex)

Defines the color rgb(230, 230, 250).

lavenderblush(what \\ :hex)

Defines the color rgb(255, 240, 245).

lawngreen(what \\ :hex)

Defines the color rgb(124, 252, 0).

lemonchiffon(what \\ :hex)

Defines the color rgb(255, 250, 205).

lightblue(what \\ :hex)

Defines the color rgb(173, 216, 230).

lightcoral(what \\ :hex)

Defines the color rgb(240, 128, 128).

lightcyan(what \\ :hex)

Defines the color rgb(224, 255, 255).

lightgoldenrodyellow(what \\ :hex)

@spec lightgoldenrodyellow(Fledex.Color.Names.Types.color_props_t()) ::
  Fledex.Color.Names.Types.color_vals_t()
@spec lightgoldenrodyellow(Fledex.Leds.t()) :: Fledex.Leds.t()

Defines the color rgb(250, 250, 210).

lightgray(what \\ :hex)

Defines the color rgb(211, 211, 211).

lightgreen(what \\ :hex)

Defines the color rgb(144, 238, 144).

lightgrey(what \\ :hex)

Defines the color rgb(211, 211, 211).

lightpink(what \\ :hex)

Defines the color rgb(255, 182, 193).

lightsalmon(what \\ :hex)

Defines the color rgb(255, 160, 122).

lightseagreen(what \\ :hex)

Defines the color rgb(32, 178, 170).

lightskyblue(what \\ :hex)

Defines the color rgb(135, 206, 250).

lightslategray(what \\ :hex)

Defines the color rgb(119, 136, 153).

lightslategrey(what \\ :hex)

Defines the color rgb(119, 136, 153).

lightsteelblue(what \\ :hex)

Defines the color rgb(176, 196, 222).

lightyellow(what \\ :hex)

Defines the color rgb(255, 255, 224).

lime(what \\ :hex)

Defines the color rgb(0, 255, 0).

limegreen(what \\ :hex)

Defines the color rgb(50, 205, 50).

linen(what \\ :hex)

Defines the color rgb(250, 240, 230).

magenta(what \\ :hex)

Defines the color rgb(255, 0, 255).

maroon(what \\ :hex)

Defines the color rgb(128, 0, 0).

mediumaquamarine(what \\ :hex)

Defines the color rgb(102, 205, 170).

mediumblue(what \\ :hex)

Defines the color rgb(0, 0, 205).

mediumorchid(what \\ :hex)

Defines the color rgb(186, 85, 211).

mediumpurple(what \\ :hex)

Defines the color rgb(147, 112, 219).

mediumseagreen(what \\ :hex)

Defines the color rgb(60, 179, 113).

mediumslateblue(what \\ :hex)

Defines the color rgb(123, 104, 238).

mediumspringgreen(what \\ :hex)

@spec mediumspringgreen(Fledex.Color.Names.Types.color_props_t()) ::
  Fledex.Color.Names.Types.color_vals_t()
@spec mediumspringgreen(Fledex.Leds.t()) :: Fledex.Leds.t()

Defines the color rgb(0, 250, 154).

mediumturquoise(what \\ :hex)

Defines the color rgb(72, 209, 204).

mediumvioletred(what \\ :hex)

Defines the color rgb(199, 21, 133).

midnightblue(what \\ :hex)

Defines the color rgb(25, 25, 112).

mintcream(what \\ :hex)

Defines the color rgb(245, 255, 250).

mistyrose(what \\ :hex)

Defines the color rgb(255, 228, 225).

moccasin(what \\ :hex)

Defines the color rgb(255, 228, 181).

oldlace(what \\ :hex)

Defines the color rgb(253, 245, 230).

olive(what \\ :hex)

Defines the color rgb(128, 128, 0).

olivedrab(what \\ :hex)

Defines the color rgb(107, 142, 35).

orange(what \\ :hex)

Defines the color rgb(255, 165, 0).

orangered(what \\ :hex)

Defines the color rgb(255, 69, 0).

orchid(what \\ :hex)

Defines the color rgb(218, 112, 214).

palegoldenrod(what \\ :hex)

Defines the color rgb(238, 232, 170).

palegreen(what \\ :hex)

Defines the color rgb(152, 251, 152).

paleturquoise(what \\ :hex)

Defines the color rgb(175, 238, 238).

palevioletred(what \\ :hex)

Defines the color rgb(219, 112, 147).

papayawhip(what \\ :hex)

Defines the color rgb(255, 239, 213).

peachpuff(what \\ :hex)

Defines the color rgb(255, 218, 185).

peru(what \\ :hex)

Defines the color rgb(205, 133, 63).

pink(what \\ :hex)

Defines the color rgb(255, 192, 203).

plum(what \\ :hex)

Defines the color rgb(221, 160, 221).

powderblue(what \\ :hex)

Defines the color rgb(176, 224, 230).

purple(what \\ :hex)

Defines the color rgb(128, 0, 128).

rebeccapurple(what \\ :hex)

Defines the color rgb(102, 51, 153).

red(what \\ :hex)

Defines the color rgb(255, 0, 0).

rosybrown(what \\ :hex)

Defines the color rgb(188, 143, 143).

royalblue(what \\ :hex)

Defines the color rgb(65, 105, 225).

saddlebrown(what \\ :hex)

Defines the color rgb(139, 69, 19).

salmon(what \\ :hex)

Defines the color rgb(250, 128, 114).

sandybrown(what \\ :hex)

Defines the color rgb(244, 164, 96).

seagreen(what \\ :hex)

Defines the color rgb(46, 139, 87).

seashell(what \\ :hex)

Defines the color rgb(255, 245, 238).

sienna(what \\ :hex)

Defines the color rgb(160, 82, 45).

silver(what \\ :hex)

Defines the color rgb(192, 192, 192).

skyblue(what \\ :hex)

Defines the color rgb(135, 206, 235).

slateblue(what \\ :hex)

Defines the color rgb(106, 90, 205).

slategray(what \\ :hex)

Defines the color rgb(112, 128, 144).

slategrey(what \\ :hex)

Defines the color rgb(112, 128, 144).

snow(what \\ :hex)

Defines the color rgb(255, 250, 250).

springgreen(what \\ :hex)

Defines the color rgb(0, 255, 127).

steelblue(what \\ :hex)

Defines the color rgb(70, 130, 180).

tan(what \\ :hex)

Defines the color rgb(210, 180, 140).

teal(what \\ :hex)

Defines the color rgb(0, 128, 128).

thistle(what \\ :hex)

Defines the color rgb(216, 191, 216).

tomato(what \\ :hex)

Defines the color rgb(255, 99, 71).

turquoise(what \\ :hex)

Defines the color rgb(64, 224, 208).

violet(what \\ :hex)

Defines the color rgb(238, 130, 238).

wheat(what \\ :hex)

Defines the color rgb(245, 222, 179).

white(what \\ :hex)

Defines the color rgb(255, 255, 255).

whitesmoke(what \\ :hex)

Defines the color rgb(245, 245, 245).

yellow(what \\ :hex)

Defines the color rgb(255, 255, 0).

yellowgreen(what \\ :hex)

Defines the color rgb(154, 205, 50).

Types

color_names_t()

@type color_names_t() ::
  :darkmagenta
  | :rosybrown
  | :gold
  | :oldlace
  | :cyan
  | :rebeccapurple
  | :cornsilk
  | :darkseagreen
  | :olive
  | :paleturquoise
  | :dimgrey
  | :greenyellow
  | :saddlebrown
  | :brown
  | :blue
  | :navajowhite
  | :palegreen
  | :slategray
  | :lightblue
  | :skyblue
  | :tomato
  | :deeppink
  | :darkslateblue
  | :aquamarine
  | :pink
  | :deepskyblue
  | :linen
  | :crimson
  | :lightpink
  | :seashell
  | :orange
  | :lightgrey
  | :chocolate
  | :dimgray
  | :darkgray
  | :darkolivegreen
  | :yellowgreen
  | :chartreuse
  | :papayawhip
  | :forestgreen
  | :lightcyan
  | :lightskyblue
  | :lime
  | :ghostwhite
  | :khaki
  | :lightgreen
  | :orangered
  | :darkblue
  | :wheat
  | :purple
  | :darksalmon
  | :lawngreen
  | :coral
  | :steelblue
  | :mediumblue
  | :mintcream
  | :firebrick
  | :lightyellow
  | :salmon
  | :peru
  | :mediumorchid
  | :royalblue
  | :floralwhite
  | :darkslategrey
  | :mediumslateblue
  | :mediumpurple
  | :sandybrown
  | :moccasin
  | :violet
  | :navy
  | :mediumspringgreen
  | :darkgrey
  | :lightsalmon
  | :darkgreen
  | :darkcyan
  | :whitesmoke
  | :snow
  | :powderblue
  | :slategrey
  | :red
  | :darkkhaki
  | :aliceblue
  | :lightseagreen
  | :peachpuff
  | :lightslategray
  | :lemonchiffon
  | :darkgoldenrod
  | :darkorange
  | :blueviolet
  | :darkorchid
  | :lightgray
  | :honeydew
  | :olivedrab
  | :lightgoldenrodyellow
  | :white
  | :aqua
  | :mediumseagreen
  | :mediumvioletred
  | :maroon
  | :goldenrod
  | :cornflowerblue
  | :lightcoral
  | :darkturquoise
  | :indigo
  | :gainsboro
  | :limegreen
  | :darkred
  | :thistle
  | :seagreen
  | :mistyrose
  | :plum
  | :bisque
  | :black
  | :gray
  | :grey
  | :beige
  | :silver
  | :springgreen
  | :burlywood
  | :ivory
  | :mediumaquamarine
  | :orchid
  | :antiquewhite
  | :azure
  | :dodgerblue
  | :darkviolet
  | :magenta
  | :darkslategray
  | :lavender
  | :tan
  | :sienna
  | :indianred
  | :lightsteelblue
  | :lavenderblush
  | :yellow
  | :palevioletred
  | :palegoldenrod
  | :cadetblue
  | :fuchsia
  | :hotpink
  | :blanchedalmond
  | :green
  | :midnightblue
  | :turquoise
  | :mediumturquoise
  | :lightslategrey
  | :teal
  | :slateblue

The allowed color names

Functions

colors()

Get all the data about the predefined colors

names()

@spec names() :: [color_names_t()]

Get a list of all the predefined color (atom) names.

The name can be used to either retrieve the info by calling info/2 or by calling the function with that name (see also the description at the top and take a look at this example livebook)