UNPKG

@fatherbrennan/css-color

Version:

A TypeScript tree-shakable library for using CSS colors.

1,004 lines (1,003 loc) 29.3 kB
//#region src/dist/index.ts /** CSS named colors. */ const CssNamedColor = { "AliceBlue": "aliceblue", "AntiqueWhite": "antiquewhite", "Aqua": "aqua", "Aquamarine": "aquamarine", "Azure": "azure", "Beige": "beige", "Bisque": "bisque", "Black": "black", "BlanchedAlmond": "blanchedalmond", "Blue": "blue", "BlueViolet": "blueviolet", "Brown": "brown", "Burlywood": "burlywood", "CadetBlue": "cadetblue", "Chartreuse": "chartreuse", "Chocolate": "chocolate", "Coral": "coral", "CornflowerBlue": "cornflowerblue", "Cornsilk": "cornsilk", "Crimson": "crimson", "Cyan": "cyan", "DarkBlue": "darkblue", "DarkCyan": "darkcyan", "DarkGoldenrod": "darkgoldenrod", "DarkGray": "darkgray", "DarkGreen": "darkgreen", "DarkGrey": "darkgrey", "DarkKhaki": "darkkhaki", "DarkMagenta": "darkmagenta", "DarkOliveGreen": "darkolivegreen", "DarkOrange": "darkorange", "DarkOrchid": "darkorchid", "DarkRed": "darkred", "DarkSalmon": "darksalmon", "DarkSeagreen": "darkseagreen", "DarkSlateBlue": "darkslateblue", "DarkSlateGray": "darkslategray", "DarkSlateGrey": "darkslategrey", "DarkTurquoise": "darkturquoise", "DarkViolet": "darkviolet", "DeepPink": "deeppink", "DeepSkyBlue": "deepskyblue", "DimGray": "dimgray", "DimGrey": "dimgrey", "DodgerBlue": "dodgerblue", "Firebrick": "firebrick", "FloralWhite": "floralwhite", "ForestGreen": "forestgreen", "Fuchsia": "fuchsia", "Gainsboro": "gainsboro", "GhostWhite": "ghostwhite", "Gold": "gold", "Goldenrod": "goldenrod", "Gray": "gray", "Green": "green", "GreenYellow": "greenyellow", "Grey": "grey", "Honeydew": "honeydew", "HotPink": "hotpink", "IndianRed": "indianred", "Indigo": "indigo", "Ivory": "ivory", "Khaki": "khaki", "Lavender": "lavender", "LavenderBlush": "lavenderblush", "LawnGreen": "lawngreen", "LemonChiffon": "lemonchiffon", "LightBlue": "lightblue", "LightCoral": "lightcoral", "LightCyan": "lightcyan", "LightGoldenrodYellow": "lightgoldenrodyellow", "LightGray": "lightgray", "LightGreen": "lightgreen", "LightGrey": "lightgrey", "LightPink": "lightpink", "LightSalmon": "lightsalmon", "LightSeaGreen": "lightseagreen", "LightSkyBlue": "lightskyblue", "LightSlateGray": "lightslategray", "LightSlateGrey": "lightslategrey", "LightSteelBlue": "lightsteelblue", "LightYellow": "lightyellow", "Lime": "lime", "LimeGreen": "limegreen", "Linen": "linen", "Magenta": "magenta", "Maroon": "maroon", "MediumAquamarine": "mediumaquamarine", "MediumBlue": "mediumblue", "MediumOrchid": "mediumorchid", "MediumPurple": "mediumpurple", "MediumSeaGreen": "mediumseagreen", "MediumSlateBlue": "mediumslateblue", "MediumSpringGreen": "mediumspringgreen", "MediumTurquoise": "mediumturquoise", "MediumVioletRed": "mediumvioletred", "MidnightBlue": "midnightblue", "MintCream": "mintcream", "MistyRose": "mistyrose", "Moccasin": "moccasin", "NavajoWhite": "navajowhite", "Navy": "navy", "OldLace": "oldlace", "Olive": "olive", "OliveDrab": "olivedrab", "Orange": "orange", "OrangeRed": "orangered", "Orchid": "orchid", "PaleGoldenrod": "palegoldenrod", "PaleGreen": "palegreen", "PaleTurquoise": "paleturquoise", "PaleVioletRed": "palevioletred", "PapayaWhip": "papayawhip", "PeachPuff": "peachpuff", "Peru": "peru", "Pink": "pink", "Plum": "plum", "PowderBlue": "powderblue", "Purple": "purple", "RebeccaPurple": "rebeccapurple", "Red": "red", "RosyBrown": "rosybrown", "RoyalBlue": "royalblue", "SaddleBrown": "saddlebrown", "Salmon": "salmon", "SandyBrown": "sandybrown", "SeaGreen": "seagreen", "Seashell": "seashell", "Sienna": "sienna", "Silver": "silver", "SkyBlue": "skyblue", "SlateBlue": "slateblue", "SlateGray": "slategray", "SlateGrey": "slategrey", "Snow": "snow", "SpringGreen": "springgreen", "SteelBlue": "steelblue", "Tan": "tan", "Teal": "teal", "Thistle": "thistle", "Tomato": "tomato", "Turquoise": "turquoise", "Violet": "violet", "Wheat": "wheat", "White": "white", "WhiteSmoke": "whitesmoke", "Yellow": "yellow", "YellowGreen": "yellowgreen" }; /** CSS special colors. */ const CssSpecialColor = { "CurrentColor": "currentcolor", "Transparent": "transparent" }; /** CSS global values. Can be used on any property. */ const CssGlobal = { "Inherit": "inherit", "Initial": "initial", "RevertLayer": "revert-layer", "Revert": "revert", "Unset": "unset" }; /** CSS system colors. *Not commonly used.* */ const CssSystemColor = { "AccentColor": "accentcolor", "AccentColorText": "accentcolortext", "ActiveText": "activetext", "ButtonBorder": "buttonborder", "ButtonFace": "buttonface", "ButtonText": "buttontext", "Canvas": "canvas", "CanvasText": "canvastext", "Field": "field", "FieldText": "fieldtext", "GrayText": "graytext", "Highlight": "highlight", "HighlightText": "highlighttext", "LinkText": "linktext", "Mark": "mark", "MarkText": "marktext", "SelectedItem": "selecteditem", "SelectedItemText": "selecteditemtext", "VisitedText": "visitedtext" }; /** * CSS colors. * - Named colors. * - Special colors. * - Global values. */ const CssColor = { ...CssNamedColor, ...CssSpecialColor, ...CssGlobal }; /** * CSS colors. * - Named colors. * - Special colors. * - Global values. * - System colors. */ const CssColorWithSystem = { ...CssNamedColor, ...CssSpecialColor, ...CssGlobal, ...CssSystemColor }; /** Named color to 6-digit hex map. @example export { blanchedalmond: '#ffebcd' } */ const namedColorToHexMap = { "aliceblue": "#f0f8ff", "antiquewhite": "#faebd7", "aqua": "#00ffff", "aquamarine": "#7fffd4", "azure": "#f0ffff", "beige": "#f5f5dc", "bisque": "#ffe4c4", "black": "#000000", "blanchedalmond": "#ffebcd", "blue": "#0000ff", "blueviolet": "#8a2be2", "brown": "#a52a2a", "burlywood": "#deb887", "cadetblue": "#5f9ea0", "chartreuse": "#7fff00", "chocolate": "#d2691e", "coral": "#ff7f50", "cornflowerblue": "#6495ed", "cornsilk": "#fff8dc", "crimson": "#dc143c", "cyan": "#00ffff", "darkblue": "#00008b", "darkcyan": "#008b8b", "darkgoldenrod": "#b8860b", "darkgray": "#a9a9a9", "darkgreen": "#006400", "darkgrey": "#a9a9a9", "darkkhaki": "#bdb76b", "darkmagenta": "#8b008b", "darkolivegreen": "#556b2f", "darkorange": "#ff8c00", "darkorchid": "#9932cc", "darkred": "#8b0000", "darksalmon": "#e9967a", "darkseagreen": "#8fbc8f", "darkslateblue": "#483d8b", "darkslategray": "#2f4f4f", "darkslategrey": "#2f4f4f", "darkturquoise": "#00ced1", "darkviolet": "#9400d3", "deeppink": "#ff1493", "deepskyblue": "#00bfff", "dimgray": "#696969", "dimgrey": "#696969", "dodgerblue": "#1e90ff", "firebrick": "#b22222", "floralwhite": "#fffaf0", "forestgreen": "#228b22", "fuchsia": "#ff00ff", "gainsboro": "#dcdcdc", "ghostwhite": "#f8f8ff", "gold": "#ffd700", "goldenrod": "#daa520", "gray": "#808080", "green": "#008000", "greenyellow": "#adff2f", "grey": "#808080", "honeydew": "#f0fff0", "hotpink": "#ff69b4", "indianred": "#cd5c5c", "indigo": "#4b0082", "ivory": "#fffff0", "khaki": "#f0e68c", "lavender": "#e6e6fa", "lavenderblush": "#fff0f5", "lawngreen": "#7cfc00", "lemonchiffon": "#fffacd", "lightblue": "#add8e6", "lightcoral": "#f08080", "lightcyan": "#e0ffff", "lightgoldenrodyellow": "#fafad2", "lightgray": "#d3d3d3", "lightgreen": "#90ee90", "lightgrey": "#d3d3d3", "lightpink": "#ffb6c1", "lightsalmon": "#ffa07a", "lightseagreen": "#20b2aa", "lightskyblue": "#87cefa", "lightslategray": "#778899", "lightslategrey": "#778899", "lightsteelblue": "#b0c4de", "lightyellow": "#ffffe0", "lime": "#00ff00", "limegreen": "#32cd32", "linen": "#faf0e6", "magenta": "#ff00ff", "maroon": "#800000", "mediumaquamarine": "#66cdaa", "mediumblue": "#0000cd", "mediumorchid": "#ba55d3", "mediumpurple": "#9370db", "mediumseagreen": "#3cb371", "mediumslateblue": "#7b68ee", "mediumspringgreen": "#00fa9a", "mediumturquoise": "#48d1cc", "mediumvioletred": "#c71585", "midnightblue": "#191970", "mintcream": "#f5fffa", "mistyrose": "#ffe4e1", "moccasin": "#ffe4b5", "navajowhite": "#ffdead", "navy": "#000080", "oldlace": "#fdf5e6", "olive": "#808000", "olivedrab": "#6b8e23", "orange": "#ffa500", "orangered": "#ff4500", "orchid": "#da70d6", "palegoldenrod": "#eee8aa", "palegreen": "#98fb98", "paleturquoise": "#afeeee", "palevioletred": "#db7093", "papayawhip": "#ffefd5", "peachpuff": "#ffdab9", "peru": "#cd853f", "pink": "#ffc0cb", "plum": "#dda0dd", "powderblue": "#b0e0e6", "purple": "#800080", "rebeccapurple": "#663399", "red": "#ff0000", "rosybrown": "#bc8f8f", "royalblue": "#4169e1", "saddlebrown": "#8b4513", "salmon": "#fa8072", "sandybrown": "#f4a460", "seagreen": "#2e8b57", "seashell": "#fff5ee", "sienna": "#a0522d", "silver": "#c0c0c0", "skyblue": "#87ceeb", "slateblue": "#6a5acd", "slategray": "#708090", "slategrey": "#708090", "snow": "#fffafa", "springgreen": "#00ff7f", "steelblue": "#4682b4", "tan": "#d2b48c", "teal": "#008080", "thistle": "#d8bfd8", "tomato": "#ff6347", "turquoise": "#40e0d0", "violet": "#ee82ee", "wheat": "#f5deb3", "white": "#ffffff", "whitesmoke": "#f5f5f5", "yellow": "#ffff00", "yellowgreen": "#9acd32" }; /** Named color to RGB map. @example export { blanchedalmond: 'rgb(255,235,205)' } */ const namedColorToRgbMap = { "aliceblue": "rgb(240,248,255)", "antiquewhite": "rgb(250,235,215)", "aqua": "rgb(0,255,255)", "aquamarine": "rgb(127,255,212)", "azure": "rgb(240,255,255)", "beige": "rgb(245,245,220)", "bisque": "rgb(255,228,196)", "black": "rgb(0,0,0)", "blanchedalmond": "rgb(255,235,205)", "blue": "rgb(0,0,255)", "blueviolet": "rgb(138,43,226)", "brown": "rgb(165,42,42)", "burlywood": "rgb(222,184,135)", "cadetblue": "rgb(95,158,160)", "chartreuse": "rgb(127,255,0)", "chocolate": "rgb(210,105,30)", "coral": "rgb(255,127,80)", "cornflowerblue": "rgb(100,149,237)", "cornsilk": "rgb(255,248,220)", "crimson": "rgb(220,20,60)", "cyan": "rgb(0,255,255)", "darkblue": "rgb(0,0,139)", "darkcyan": "rgb(0,139,139)", "darkgoldenrod": "rgb(184,134,11)", "darkgray": "rgb(169,169,169)", "darkgreen": "rgb(0,100,0)", "darkgrey": "rgb(169,169,169)", "darkkhaki": "rgb(189,183,107)", "darkmagenta": "rgb(139,0,139)", "darkolivegreen": "rgb(85,107,47)", "darkorange": "rgb(255,140,0)", "darkorchid": "rgb(153,50,204)", "darkred": "rgb(139,0,0)", "darksalmon": "rgb(233,150,122)", "darkseagreen": "rgb(143,188,143)", "darkslateblue": "rgb(72,61,139)", "darkslategray": "rgb(47,79,79)", "darkslategrey": "rgb(47,79,79)", "darkturquoise": "rgb(0,206,209)", "darkviolet": "rgb(148,0,211)", "deeppink": "rgb(255,20,147)", "deepskyblue": "rgb(0,191,255)", "dimgray": "rgb(105,105,105)", "dimgrey": "rgb(105,105,105)", "dodgerblue": "rgb(30,144,255)", "firebrick": "rgb(178,34,34)", "floralwhite": "rgb(255,250,240)", "forestgreen": "rgb(34,139,34)", "fuchsia": "rgb(255,0,255)", "gainsboro": "rgb(220,220,220)", "ghostwhite": "rgb(248,248,255)", "gold": "rgb(255,215,0)", "goldenrod": "rgb(218,165,32)", "gray": "rgb(128,128,128)", "green": "rgb(0,128,0)", "greenyellow": "rgb(173,255,47)", "grey": "rgb(128,128,128)", "honeydew": "rgb(240,255,240)", "hotpink": "rgb(255,105,180)", "indianred": "rgb(205,92,92)", "indigo": "rgb(75,0,130)", "ivory": "rgb(255,255,240)", "khaki": "rgb(240,230,140)", "lavender": "rgb(230,230,250)", "lavenderblush": "rgb(255,240,245)", "lawngreen": "rgb(124,252,0)", "lemonchiffon": "rgb(255,250,205)", "lightblue": "rgb(173,216,230)", "lightcoral": "rgb(240,128,128)", "lightcyan": "rgb(224,255,255)", "lightgoldenrodyellow": "rgb(250,250,210)", "lightgray": "rgb(211,211,211)", "lightgreen": "rgb(144,238,144)", "lightgrey": "rgb(211,211,211)", "lightpink": "rgb(255,182,193)", "lightsalmon": "rgb(255,160,122)", "lightseagreen": "rgb(32,178,170)", "lightskyblue": "rgb(135,206,250)", "lightslategray": "rgb(119,136,153)", "lightslategrey": "rgb(119,136,153)", "lightsteelblue": "rgb(176,196,222)", "lightyellow": "rgb(255,255,224)", "lime": "rgb(0,255,0)", "limegreen": "rgb(50,205,50)", "linen": "rgb(250,240,230)", "magenta": "rgb(255,0,255)", "maroon": "rgb(128,0,0)", "mediumaquamarine": "rgb(102,205,170)", "mediumblue": "rgb(0,0,205)", "mediumorchid": "rgb(186,85,211)", "mediumpurple": "rgb(147,112,219)", "mediumseagreen": "rgb(60,179,113)", "mediumslateblue": "rgb(123,104,238)", "mediumspringgreen": "rgb(0,250,154)", "mediumturquoise": "rgb(72,209,204)", "mediumvioletred": "rgb(199,21,133)", "midnightblue": "rgb(25,25,112)", "mintcream": "rgb(245,255,250)", "mistyrose": "rgb(255,228,225)", "moccasin": "rgb(255,228,181)", "navajowhite": "rgb(255,222,173)", "navy": "rgb(0,0,128)", "oldlace": "rgb(253,245,230)", "olive": "rgb(128,128,0)", "olivedrab": "rgb(107,142,35)", "orange": "rgb(255,165,0)", "orangered": "rgb(255,69,0)", "orchid": "rgb(218,112,214)", "palegoldenrod": "rgb(238,232,170)", "palegreen": "rgb(152,251,152)", "paleturquoise": "rgb(175,238,238)", "palevioletred": "rgb(219,112,147)", "papayawhip": "rgb(255,239,213)", "peachpuff": "rgb(255,218,185)", "peru": "rgb(205,133,63)", "pink": "rgb(255,192,203)", "plum": "rgb(221,160,221)", "powderblue": "rgb(176,224,230)", "purple": "rgb(128,0,128)", "rebeccapurple": "rgb(102,51,153)", "red": "rgb(255,0,0)", "rosybrown": "rgb(188,143,143)", "royalblue": "rgb(65,105,225)", "saddlebrown": "rgb(139,69,19)", "salmon": "rgb(250,128,114)", "sandybrown": "rgb(244,164,96)", "seagreen": "rgb(46,139,87)", "seashell": "rgb(255,245,238)", "sienna": "rgb(160,82,45)", "silver": "rgb(192,192,192)", "skyblue": "rgb(135,206,235)", "slateblue": "rgb(106,90,205)", "slategray": "rgb(112,128,144)", "slategrey": "rgb(112,128,144)", "snow": "rgb(255,250,250)", "springgreen": "rgb(0,255,127)", "steelblue": "rgb(70,130,180)", "tan": "rgb(210,180,140)", "teal": "rgb(0,128,128)", "thistle": "rgb(216,191,216)", "tomato": "rgb(255,99,71)", "turquoise": "rgb(64,224,208)", "violet": "rgb(238,130,238)", "wheat": "rgb(245,222,179)", "white": "rgb(255,255,255)", "whitesmoke": "rgb(245,245,245)", "yellow": "rgb(255,255,0)", "yellowgreen": "rgb(154,205,50)" }; /** Named color to 8-digit hex (with alpha) map. @example export { blanchedalmond: '#ffebcdff' } */ const namedColorToHexaMap = { "aliceblue": "#f0f8ffff", "antiquewhite": "#faebd7ff", "aqua": "#00ffffff", "aquamarine": "#7fffd4ff", "azure": "#f0ffffff", "beige": "#f5f5dcff", "bisque": "#ffe4c4ff", "black": "#000000ff", "blanchedalmond": "#ffebcdff", "blue": "#0000ffff", "blueviolet": "#8a2be2ff", "brown": "#a52a2aff", "burlywood": "#deb887ff", "cadetblue": "#5f9ea0ff", "chartreuse": "#7fff00ff", "chocolate": "#d2691eff", "coral": "#ff7f50ff", "cornflowerblue": "#6495edff", "cornsilk": "#fff8dcff", "crimson": "#dc143cff", "cyan": "#00ffffff", "darkblue": "#00008bff", "darkcyan": "#008b8bff", "darkgoldenrod": "#b8860bff", "darkgray": "#a9a9a9ff", "darkgreen": "#006400ff", "darkgrey": "#a9a9a9ff", "darkkhaki": "#bdb76bff", "darkmagenta": "#8b008bff", "darkolivegreen": "#556b2fff", "darkorange": "#ff8c00ff", "darkorchid": "#9932ccff", "darkred": "#8b0000ff", "darksalmon": "#e9967aff", "darkseagreen": "#8fbc8fff", "darkslateblue": "#483d8bff", "darkslategray": "#2f4f4fff", "darkslategrey": "#2f4f4fff", "darkturquoise": "#00ced1ff", "darkviolet": "#9400d3ff", "deeppink": "#ff1493ff", "deepskyblue": "#00bfffff", "dimgray": "#696969ff", "dimgrey": "#696969ff", "dodgerblue": "#1e90ffff", "firebrick": "#b22222ff", "floralwhite": "#fffaf0ff", "forestgreen": "#228b22ff", "fuchsia": "#ff00ffff", "gainsboro": "#dcdcdcff", "ghostwhite": "#f8f8ffff", "gold": "#ffd700ff", "goldenrod": "#daa520ff", "gray": "#808080ff", "green": "#008000ff", "greenyellow": "#adff2fff", "grey": "#808080ff", "honeydew": "#f0fff0ff", "hotpink": "#ff69b4ff", "indianred": "#cd5c5cff", "indigo": "#4b0082ff", "ivory": "#fffff0ff", "khaki": "#f0e68cff", "lavender": "#e6e6faff", "lavenderblush": "#fff0f5ff", "lawngreen": "#7cfc00ff", "lemonchiffon": "#fffacdff", "lightblue": "#add8e6ff", "lightcoral": "#f08080ff", "lightcyan": "#e0ffffff", "lightgoldenrodyellow": "#fafad2ff", "lightgray": "#d3d3d3ff", "lightgreen": "#90ee90ff", "lightgrey": "#d3d3d3ff", "lightpink": "#ffb6c1ff", "lightsalmon": "#ffa07aff", "lightseagreen": "#20b2aaff", "lightskyblue": "#87cefaff", "lightslategray": "#778899ff", "lightslategrey": "#778899ff", "lightsteelblue": "#b0c4deff", "lightyellow": "#ffffe0ff", "lime": "#00ff00ff", "limegreen": "#32cd32ff", "linen": "#faf0e6ff", "magenta": "#ff00ffff", "maroon": "#800000ff", "mediumaquamarine": "#66cdaaff", "mediumblue": "#0000cdff", "mediumorchid": "#ba55d3ff", "mediumpurple": "#9370dbff", "mediumseagreen": "#3cb371ff", "mediumslateblue": "#7b68eeff", "mediumspringgreen": "#00fa9aff", "mediumturquoise": "#48d1ccff", "mediumvioletred": "#c71585ff", "midnightblue": "#191970ff", "mintcream": "#f5fffaff", "mistyrose": "#ffe4e1ff", "moccasin": "#ffe4b5ff", "navajowhite": "#ffdeadff", "navy": "#000080ff", "oldlace": "#fdf5e6ff", "olive": "#808000ff", "olivedrab": "#6b8e23ff", "orange": "#ffa500ff", "orangered": "#ff4500ff", "orchid": "#da70d6ff", "palegoldenrod": "#eee8aaff", "palegreen": "#98fb98ff", "paleturquoise": "#afeeeeff", "palevioletred": "#db7093ff", "papayawhip": "#ffefd5ff", "peachpuff": "#ffdab9ff", "peru": "#cd853fff", "pink": "#ffc0cbff", "plum": "#dda0ddff", "powderblue": "#b0e0e6ff", "purple": "#800080ff", "rebeccapurple": "#663399ff", "red": "#ff0000ff", "rosybrown": "#bc8f8fff", "royalblue": "#4169e1ff", "saddlebrown": "#8b4513ff", "salmon": "#fa8072ff", "sandybrown": "#f4a460ff", "seagreen": "#2e8b57ff", "seashell": "#fff5eeff", "sienna": "#a0522dff", "silver": "#c0c0c0ff", "skyblue": "#87ceebff", "slateblue": "#6a5acdff", "slategray": "#708090ff", "slategrey": "#708090ff", "snow": "#fffafaff", "springgreen": "#00ff7fff", "steelblue": "#4682b4ff", "tan": "#d2b48cff", "teal": "#008080ff", "thistle": "#d8bfd8ff", "tomato": "#ff6347ff", "turquoise": "#40e0d0ff", "violet": "#ee82eeff", "wheat": "#f5deb3ff", "white": "#ffffffff", "whitesmoke": "#f5f5f5ff", "yellow": "#ffff00ff", "yellowgreen": "#9acd32ff" }; /** Named color to RGBA map. @example export { blanchedalmond: '#ffebcd' } */ const namedColorToRgbaMap = { "aliceblue": "rgba(240,248,255,1)", "antiquewhite": "rgba(250,235,215,1)", "aqua": "rgba(0,255,255,1)", "aquamarine": "rgba(127,255,212,1)", "azure": "rgba(240,255,255,1)", "beige": "rgba(245,245,220,1)", "bisque": "rgba(255,228,196,1)", "black": "rgba(0,0,0,1)", "blanchedalmond": "rgba(255,235,205,1)", "blue": "rgba(0,0,255,1)", "blueviolet": "rgba(138,43,226,1)", "brown": "rgba(165,42,42,1)", "burlywood": "rgba(222,184,135,1)", "cadetblue": "rgba(95,158,160,1)", "chartreuse": "rgba(127,255,0,1)", "chocolate": "rgba(210,105,30,1)", "coral": "rgba(255,127,80,1)", "cornflowerblue": "rgba(100,149,237,1)", "cornsilk": "rgba(255,248,220,1)", "crimson": "rgba(220,20,60,1)", "cyan": "rgba(0,255,255,1)", "darkblue": "rgba(0,0,139,1)", "darkcyan": "rgba(0,139,139,1)", "darkgoldenrod": "rgba(184,134,11,1)", "darkgray": "rgba(169,169,169,1)", "darkgreen": "rgba(0,100,0,1)", "darkgrey": "rgba(169,169,169,1)", "darkkhaki": "rgba(189,183,107,1)", "darkmagenta": "rgba(139,0,139,1)", "darkolivegreen": "rgba(85,107,47,1)", "darkorange": "rgba(255,140,0,1)", "darkorchid": "rgba(153,50,204,1)", "darkred": "rgba(139,0,0,1)", "darksalmon": "rgba(233,150,122,1)", "darkseagreen": "rgba(143,188,143,1)", "darkslateblue": "rgba(72,61,139,1)", "darkslategray": "rgba(47,79,79,1)", "darkslategrey": "rgba(47,79,79,1)", "darkturquoise": "rgba(0,206,209,1)", "darkviolet": "rgba(148,0,211,1)", "deeppink": "rgba(255,20,147,1)", "deepskyblue": "rgba(0,191,255,1)", "dimgray": "rgba(105,105,105,1)", "dimgrey": "rgba(105,105,105,1)", "dodgerblue": "rgba(30,144,255,1)", "firebrick": "rgba(178,34,34,1)", "floralwhite": "rgba(255,250,240,1)", "forestgreen": "rgba(34,139,34,1)", "fuchsia": "rgba(255,0,255,1)", "gainsboro": "rgba(220,220,220,1)", "ghostwhite": "rgba(248,248,255,1)", "gold": "rgba(255,215,0,1)", "goldenrod": "rgba(218,165,32,1)", "gray": "rgba(128,128,128,1)", "green": "rgba(0,128,0,1)", "greenyellow": "rgba(173,255,47,1)", "grey": "rgba(128,128,128,1)", "honeydew": "rgba(240,255,240,1)", "hotpink": "rgba(255,105,180,1)", "indianred": "rgba(205,92,92,1)", "indigo": "rgba(75,0,130,1)", "ivory": "rgba(255,255,240,1)", "khaki": "rgba(240,230,140,1)", "lavender": "rgba(230,230,250,1)", "lavenderblush": "rgba(255,240,245,1)", "lawngreen": "rgba(124,252,0,1)", "lemonchiffon": "rgba(255,250,205,1)", "lightblue": "rgba(173,216,230,1)", "lightcoral": "rgba(240,128,128,1)", "lightcyan": "rgba(224,255,255,1)", "lightgoldenrodyellow": "rgba(250,250,210,1)", "lightgray": "rgba(211,211,211,1)", "lightgreen": "rgba(144,238,144,1)", "lightgrey": "rgba(211,211,211,1)", "lightpink": "rgba(255,182,193,1)", "lightsalmon": "rgba(255,160,122,1)", "lightseagreen": "rgba(32,178,170,1)", "lightskyblue": "rgba(135,206,250,1)", "lightslategray": "rgba(119,136,153,1)", "lightslategrey": "rgba(119,136,153,1)", "lightsteelblue": "rgba(176,196,222,1)", "lightyellow": "rgba(255,255,224,1)", "lime": "rgba(0,255,0,1)", "limegreen": "rgba(50,205,50,1)", "linen": "rgba(250,240,230,1)", "magenta": "rgba(255,0,255,1)", "maroon": "rgba(128,0,0,1)", "mediumaquamarine": "rgba(102,205,170,1)", "mediumblue": "rgba(0,0,205,1)", "mediumorchid": "rgba(186,85,211,1)", "mediumpurple": "rgba(147,112,219,1)", "mediumseagreen": "rgba(60,179,113,1)", "mediumslateblue": "rgba(123,104,238,1)", "mediumspringgreen": "rgba(0,250,154,1)", "mediumturquoise": "rgba(72,209,204,1)", "mediumvioletred": "rgba(199,21,133,1)", "midnightblue": "rgba(25,25,112,1)", "mintcream": "rgba(245,255,250,1)", "mistyrose": "rgba(255,228,225,1)", "moccasin": "rgba(255,228,181,1)", "navajowhite": "rgba(255,222,173,1)", "navy": "rgba(0,0,128,1)", "oldlace": "rgba(253,245,230,1)", "olive": "rgba(128,128,0,1)", "olivedrab": "rgba(107,142,35,1)", "orange": "rgba(255,165,0,1)", "orangered": "rgba(255,69,0,1)", "orchid": "rgba(218,112,214,1)", "palegoldenrod": "rgba(238,232,170,1)", "palegreen": "rgba(152,251,152,1)", "paleturquoise": "rgba(175,238,238,1)", "palevioletred": "rgba(219,112,147,1)", "papayawhip": "rgba(255,239,213,1)", "peachpuff": "rgba(255,218,185,1)", "peru": "rgba(205,133,63,1)", "pink": "rgba(255,192,203,1)", "plum": "rgba(221,160,221,1)", "powderblue": "rgba(176,224,230,1)", "purple": "rgba(128,0,128,1)", "rebeccapurple": "rgba(102,51,153,1)", "red": "rgba(255,0,0,1)", "rosybrown": "rgba(188,143,143,1)", "royalblue": "rgba(65,105,225,1)", "saddlebrown": "rgba(139,69,19,1)", "salmon": "rgba(250,128,114,1)", "sandybrown": "rgba(244,164,96,1)", "seagreen": "rgba(46,139,87,1)", "seashell": "rgba(255,245,238,1)", "sienna": "rgba(160,82,45,1)", "silver": "rgba(192,192,192,1)", "skyblue": "rgba(135,206,235,1)", "slateblue": "rgba(106,90,205,1)", "slategray": "rgba(112,128,144,1)", "slategrey": "rgba(112,128,144,1)", "snow": "rgba(255,250,250,1)", "springgreen": "rgba(0,255,127,1)", "steelblue": "rgba(70,130,180,1)", "tan": "rgba(210,180,140,1)", "teal": "rgba(0,128,128,1)", "thistle": "rgba(216,191,216,1)", "tomato": "rgba(255,99,71,1)", "turquoise": "rgba(64,224,208,1)", "violet": "rgba(238,130,238,1)", "wheat": "rgba(245,222,179,1)", "white": "rgba(255,255,255,1)", "whitesmoke": "rgba(245,245,245,1)", "yellow": "rgba(255,255,0,1)", "yellowgreen": "rgba(154,205,50,1)" }; /** Named color to title map. @example export { blanchedalmond: 'Blanched Almond' } */ const namedColorToTitleMap = { "aliceblue": "Alice Blue", "antiquewhite": "Antique White", "aqua": "Aqua", "aquamarine": "Aquamarine", "azure": "Azure", "beige": "Beige", "bisque": "Bisque", "black": "Black", "blanchedalmond": "Blanched Almond", "blue": "Blue", "blueviolet": "Blue Violet", "brown": "Brown", "burlywood": "Burlywood", "cadetblue": "Cadet Blue", "chartreuse": "Chartreuse", "chocolate": "Chocolate", "coral": "Coral", "cornflowerblue": "Cornflower Blue", "cornsilk": "Cornsilk", "crimson": "Crimson", "cyan": "Cyan", "darkblue": "Dark Blue", "darkcyan": "Dark Cyan", "darkgoldenrod": "Dark Goldenrod", "darkgray": "Dark Gray", "darkgreen": "Dark Green", "darkgrey": "Dark Grey", "darkkhaki": "Dark Khaki", "darkmagenta": "Dark Magenta", "darkolivegreen": "Dark Olive Green", "darkorange": "Dark Orange", "darkorchid": "Dark Orchid", "darkred": "Dark Red", "darksalmon": "Dark Salmon", "darkseagreen": "Dark Seagreen", "darkslateblue": "Dark Slate Blue", "darkslategray": "Dark Slate Gray", "darkslategrey": "Dark Slate Grey", "darkturquoise": "Dark Turquoise", "darkviolet": "Dark Violet", "deeppink": "Deep Pink", "deepskyblue": "Deep Sky Blue", "dimgray": "Dim Gray", "dimgrey": "Dim Grey", "dodgerblue": "Dodger Blue", "firebrick": "Firebrick", "floralwhite": "Floral White", "forestgreen": "Forest Green", "fuchsia": "Fuchsia", "gainsboro": "Gainsboro", "ghostwhite": "Ghost White", "gold": "Gold", "goldenrod": "Goldenrod", "gray": "Gray", "green": "Green", "greenyellow": "Green Yellow", "grey": "Grey", "honeydew": "Honeydew", "hotpink": "Hot Pink", "indianred": "Indian Red", "indigo": "Indigo", "ivory": "Ivory", "khaki": "Khaki", "lavender": "Lavender", "lavenderblush": "Lavender Blush", "lawngreen": "Lawn Green", "lemonchiffon": "Lemon Chiffon", "lightblue": "Light Blue", "lightcoral": "Light Coral", "lightcyan": "Light Cyan", "lightgoldenrodyellow": "Light Goldenrod Yellow", "lightgray": "Light Gray", "lightgreen": "Light Green", "lightgrey": "Light Grey", "lightpink": "Light Pink", "lightsalmon": "Light Salmon", "lightseagreen": "Light Sea Green", "lightskyblue": "Light Sky Blue", "lightslategray": "Light Slate Gray", "lightslategrey": "Light Slate Grey", "lightsteelblue": "Light Steel Blue", "lightyellow": "Light Yellow", "lime": "Lime", "limegreen": "Lime Green", "linen": "Linen", "magenta": "Magenta", "maroon": "Maroon", "mediumaquamarine": "Medium Aquamarine", "mediumblue": "Medium Blue", "mediumorchid": "Medium Orchid", "mediumpurple": "Medium Purple", "mediumseagreen": "Medium Sea Green", "mediumslateblue": "Medium Slate Blue", "mediumspringgreen": "Medium Spring Green", "mediumturquoise": "Medium Turquoise", "mediumvioletred": "Medium Violet Red", "midnightblue": "Midnight Blue", "mintcream": "Mint Cream", "mistyrose": "Misty Rose", "moccasin": "Moccasin", "navajowhite": "Navajo White", "navy": "Navy", "oldlace": "Old Lace", "olive": "Olive", "olivedrab": "Olive Drab", "orange": "Orange", "orangered": "Orange Red", "orchid": "Orchid", "palegoldenrod": "Pale Goldenrod", "palegreen": "Pale Green", "paleturquoise": "Pale Turquoise", "palevioletred": "Pale Violet Red", "papayawhip": "Papaya Whip", "peachpuff": "Peach Puff", "peru": "Peru", "pink": "Pink", "plum": "Plum", "powderblue": "Powder Blue", "purple": "Purple", "rebeccapurple": "Rebecca Purple", "red": "Red", "rosybrown": "Rosy Brown", "royalblue": "Royal Blue", "saddlebrown": "Saddle Brown", "salmon": "Salmon", "sandybrown": "Sandy Brown", "seagreen": "Sea Green", "seashell": "Seashell", "sienna": "Sienna", "silver": "Silver", "skyblue": "Sky Blue", "slateblue": "Slate Blue", "slategray": "Slate Gray", "slategrey": "Slate Grey", "snow": "Snow", "springgreen": "Spring Green", "steelblue": "Steel Blue", "tan": "Tan", "teal": "Teal", "thistle": "Thistle", "tomato": "Tomato", "turquoise": "Turquoise", "violet": "Violet", "wheat": "Wheat", "white": "White", "whitesmoke": "White Smoke", "yellow": "Yellow", "yellowgreen": "Yellow Green" }; /** Special color to title map. @example export { currentcolor: 'Current Color' } */ const specialColorToTitleMap = { "currentcolor": "Current Color", "transparent": "Transparent" }; /** Global value to title map. @example export { unset: 'Unset' } */ const globalToTitleMap = { "inherit": "Inherit", "initial": "Initial", "revert-layer": "Revert Layer", "revert": "Revert", "unset": "Unset" }; /** System color to title map. @example export { blanchedalmond: 'Blanched Almond' } */ const systemColorToTitleMap = { "accentcolor": "Accent Color", "accentcolortext": "Accent Color Text", "activetext": "Active Text", "buttonborder": "Button Border", "buttonface": "Button Face", "buttontext": "Button Text", "canvas": "Canvas", "canvastext": "Canvas Text", "field": "Field", "fieldtext": "Field Text", "graytext": "Gray Text", "highlight": "Highlight", "highlighttext": "Highlight Text", "linktext": "Link Text", "mark": "Mark", "marktext": "Mark Text", "selecteditem": "Selected Item", "selecteditemtext": "Selected Item Text", "visitedtext": "Visited Text" }; //#endregion export { CssColor, CssColorWithSystem, CssGlobal, CssNamedColor, CssSpecialColor, CssSystemColor, globalToTitleMap, namedColorToHexMap, namedColorToHexaMap, namedColorToRgbMap, namedColorToRgbaMap, namedColorToTitleMap, specialColorToTitleMap, systemColorToTitleMap };