@hiimjustin000/colors-css
Version:
Get all the colors that are included in CSS.
679 lines (678 loc) • 13 kB
TypeScript
interface ColorTypes {
/**
* The color type HEX.
*/
hex: string;
/**
* The color type RGB.
*/
rgb: [number, number, number];
/**
* The color type HSL.
*/
hsl: [number, number, number];
/**
* The color type HSV.
*/
hsv: [number, number, number];
/**
* The color type HWB.
*/
hwb: [number, number, number];
/**
* The color type CMYK.
*/
cmyk: [number, number, number, number];
/**
* The color type XYZ.
*/
xyz: [number, number, number];
/**
* The color type LAB.
*/
lab: [number, number, number];
/**
* The color type LCH.
*/
lch: [number, number, number];
/**
* The color type KEYWORD.
*/
keyword: string;
/**
* The color type ANSI16.
*/
ansi16: number;
/**
* The color type ANSI256.
*/
ansi256: number;
/**
* The color type HCG.
*/
hcg: [number, number, number];
/**
* The color type APPLE.
*/
apple: [number, number, number];
}
declare class Colors {
/**
* The CSS color `aliceblue`.
*/
aliceblue: any;
/**
* The CSS color `antiquewhite`.
*/
antiquewhite: any;
/**
* The CSS color `aqua`.
*/
aqua: any;
/**
* The CSS color `aquamarine`.
*/
aquamarine: any;
/**
* The CSS color `azure`.
*/
azure: any;
/**
* The CSS color `beige`.
*/
beige: any;
/**
* The CSS color `bisque`.
*/
bisque: any;
/**
* The CSS color `black`.
*/
black: any;
/**
* The CSS color `blanchedalmond`.
*/
blanchedalmond: any;
/**
* The CSS color `blue`.
*/
blue: any;
/**
* The CSS color `blueviolet`.
*/
blueviolet: any;
/**
* The CSS color `brown`.
*/
brown: any;
/**
* The CSS color `burlywood`.
*/
burlywood: any;
/**
* The CSS color `cadetblue`.
*/
cadetblue: any;
/**
* The CSS color `chartreuse`.
*/
chartreuse: any;
/**
* The CSS color `chocolate`.
*/
chocolate: any;
/**
* The CSS color `coral`.
*/
coral: any;
/**
* The CSS color `cornflowerblue`.
*/
cornflowerblue: any;
/**
* The CSS color `cornsilk`.
*/
cornsilk: any;
/**
* The CSS color `crimson`.
*/
crimson: any;
/**
* The CSS color `cyan`.
*/
cyan: any;
/**
* The CSS color `darkblue`.
*/
darkblue: any;
/**
* The CSS color `darkcyan`.
*/
darkcyan: any;
/**
* The CSS color `darkgoldenrod`.
*/
darkgoldenrod: any;
/**
* The CSS color `darkgray`.
*/
darkgray: any;
/**
* The CSS color `darkgreen`.
*/
darkgreen: any;
/**
* The CSS color `darkgrey`.
*/
darkgrey: any;
/**
* The CSS color `darkkhaki`.
*/
darkkhaki: any;
/**
* The CSS color `darkmagenta`.
*/
darkmagenta: any;
/**
* The CSS color `darkolivegreen`.
*/
darkolivegreen: any;
/**
* The CSS color `darkorange`.
*/
darkorange: any;
/**
* The CSS color `darkorchid`.
*/
darkorchid: any;
/**
* The CSS color `darkred`.
*/
darkred: any;
/**
* The CSS color `darksalmon`.
*/
darksalmon: any;
/**
* The CSS color `darkseagreen`.
*/
darkseagreen: any;
/**
* The CSS color `darkslateblue`.
*/
darkslateblue: any;
/**
* The CSS color `darkslategray`.
*/
darkslategray: any;
/**
* The CSS color `darkslategrey`.
*/
darkslategrey: any;
/**
* The CSS color `darkturquoise`.
*/
darkturquoise: any;
/**
* The CSS color `darkviolet`.
*/
darkviolet: any;
/**
* The CSS color `deeppink`.
*/
deeppink: any;
/**
* The CSS color `deepskyblue`.
*/
deepskyblue: any;
/**
* The CSS color `dimgray`.
*/
dimgray: any;
/**
* The CSS color `dimgrey`.
*/
dimgrey: any;
/**
* The CSS color `dodgerblue`.
*/
dodgerblue: any;
/**
* The CSS color `firebrick`.
*/
firebrick: any;
/**
* The CSS color `floralwhite`.
*/
floralwhite: any;
/**
* The CSS color `forestgreen`.
*/
forestgreen: any;
/**
* The CSS color `fuchsia`.
*/
fuchsia: any;
/**
* The CSS color `gainsboro`.
*/
gainsboro: any;
/**
* The CSS color `ghostwhite`.
*/
ghostwhite: any;
/**
* The CSS color `gold`.
*/
gold: any;
/**
* The CSS color `goldenrod`.
*/
goldenrod: any;
/**
* The CSS color `gray`.
*/
gray: any;
/**
* The CSS color `green`.
*/
green: any;
/**
* The CSS color `greenyellow`.
*/
greenyellow: any;
/**
* The CSS color `grey`.
*/
grey: any;
/**
* The CSS color `honeydew`.
*/
honeydew: any;
/**
* The CSS color `hotpink`.
*/
hotpink: any;
/**
* The CSS color `indianred`.
*/
indianred: any;
/**
* The CSS color `indigo`.
*/
indigo: any;
/**
* The CSS color `ivory`.
*/
ivory: any;
/**
* The CSS color `khaki`.
*/
khaki: any;
/**
* The CSS color `lavender`.
*/
lavender: any;
/**
* The CSS color `lavenderblush`.
*/
lavenderblush: any;
/**
* The CSS color `lawngreen`.
*/
lawngreen: any;
/**
* The CSS color `lemonchiffon`.
*/
lemonchiffon: any;
/**
* The CSS color `lightblue`.
*/
lightblue: any;
/**
* The CSS color `lightcoral`.
*/
lightcoral: any;
/**
* The CSS color `lightcyan`.
*/
lightcyan: any;
/**
* The CSS color `lightgoldenrodyellow`.
*/
lightgoldenrodyellow: any;
/**
* The CSS color `lightgray`.
*/
lightgray: any;
/**
* The CSS color `lightgreen`.
*/
lightgreen: any;
/**
* The CSS color `lightgrey`.
*/
lightgrey: any;
/**
* The CSS color `lightpink`.
*/
lightpink: any;
/**
* The CSS color `lightsalmon`.
*/
lightsalmon: any;
/**
* The CSS color `lightseagreen`.
*/
lightseagreen: any;
/**
* The CSS color `lightskyblue`.
*/
lightskyblue: any;
/**
* The CSS color `lightslategray`.
*/
lightslategray: any;
/**
* The CSS color `lightslategrey`.
*/
lightslategrey: any;
/**
* The CSS color `lightsteelblue`.
*/
lightsteelblue: any;
/**
* The CSS color `lightyellow`.
*/
lightyellow: any;
/**
* The CSS color `lime`.
*/
lime: any;
/**
* The CSS color `limegreen`.
*/
limegreen: any;
/**
* The CSS color `linen`.
*/
linen: any;
/**
* The CSS color `magenta`.
*/
magenta: any;
/**
* The CSS color `maroon`.
*/
maroon: any;
/**
* The CSS color `mediumaquamarine`.
*/
mediumaquamarine: any;
/**
* The CSS color `mediumblue`.
*/
mediumblue: any;
/**
* The CSS color `mediumorchid`.
*/
mediumorchid: any;
/**
* The CSS color `mediumpurple`.
*/
mediumpurple: any;
/**
* The CSS color `mediumseagreen`.
*/
mediumseagreen: any;
/**
* The CSS color `mediumslateblue`.
*/
mediumslateblue: any;
/**
* The CSS color `mediumspringgreen`.
*/
mediumspringgreen: any;
/**
* The CSS color `mediumturquoise`.
*/
mediumturquoise: any;
/**
* The CSS color `mediumvioletred`.
*/
mediumvioletred: any;
/**
* The CSS color `midnightblue`.
*/
midnightblue: any;
/**
* The CSS color `mintcream`.
*/
mintcream: any;
/**
* The CSS color `mistyrose`.
*/
mistyrose: any;
/**
* The CSS color `moccasin`.
*/
moccasin: any;
/**
* The CSS color `navajowhite`.
*/
navajowhite: any;
/**
* The CSS color `navy`.
*/
navy: any;
/**
* The CSS color `oldlace`.
*/
oldlace: any;
/**
* The CSS color `olive`.
*/
olive: any;
/**
* The CSS color `olivedrab`.
*/
olivedrab: any;
/**
* The CSS color `orange`.
*/
orange: any;
/**
* The CSS color `orangered`.
*/
orangered: any;
/**
* The CSS color `orchid`.
*/
orchid: any;
/**
* The CSS color `palegoldenrod`.
*/
palegoldenrod: any;
/**
* The CSS color `palegreen`.
*/
palegreen: any;
/**
* The CSS color `paleturquoise`.
*/
paleturquoise: any;
/**
* The CSS color `palevioletred`.
*/
palevioletred: any;
/**
* The CSS color `papayawhip`.
*/
papayawhip: any;
/**
* The CSS color `peachpuff`.
*/
peachpuff: any;
/**
* The CSS color `peru`.
*/
peru: any;
/**
* The CSS color `pink`.
*/
pink: any;
/**
* The CSS color `plum`.
*/
plum: any;
/**
* The CSS color `powderblue`.
*/
powderblue: any;
/**
* The CSS color `purple`.
*/
purple: any;
/**
* The CSS color `rebeccapurple`.
*/
rebeccapurple: any;
/**
* The CSS color `red`.
*/
red: any;
/**
* The CSS color `rosybrown`.
*/
rosybrown: any;
/**
* The CSS color `royalblue`.
*/
royalblue: any;
/**
* The CSS color `saddlebrown`.
*/
saddlebrown: any;
/**
* The CSS color `salmon`.
*/
salmon: any;
/**
* The CSS color `sandybrown`.
*/
sandybrown: any;
/**
* The CSS color `seagreen`.
*/
seagreen: any;
/**
* The CSS color `seashell`.
*/
seashell: any;
/**
* The CSS color `sienna`.
*/
sienna: any;
/**
* The CSS color `silver`.
*/
silver: any;
/**
* The CSS color `skyblue`.
*/
skyblue: any;
/**
* The CSS color `slateblue`.
*/
slateblue: any;
/**
* The CSS color `slategray`.
*/
slategray: any;
/**
* The CSS color `slategrey`.
*/
slategrey: any;
/**
* The CSS color `snow`.
*/
snow: any;
/**
* The CSS color `springgreen`.
*/
springgreen: any;
/**
* The CSS color `steelblue`.
*/
steelblue: any;
/**
* The CSS color `tan`.
*/
tan: any;
/**
* The CSS color `teal`.
*/
teal: any;
/**
* The CSS color `thistle`.
*/
thistle: any;
/**
* The CSS color `tomato`.
*/
tomato: any;
/**
* The CSS color `turquoise`.
*/
turquoise: any;
/**
* The CSS color `violet`.
*/
violet: any;
/**
* The CSS color `wheat`.
*/
wheat: any;
/**
* The CSS color `white`.
*/
white: any;
/**
* The CSS color `whitesmoke`.
*/
whitesmoke: any;
/**
* The CSS color `yellow`.
*/
yellow: any;
/**
* The CSS color `yellowgreen`.
*/
yellowgreen: any;
/**
* The Colors constructor.
* @param {string} type The type of color to use.
*/
constructor(type: string);
/**
* Gets any color from the HEX or KEYWORD color type.
* @param {string} color The HEX or KEYWORD color to input.
* @returns {ColorTypes} 14 color types:
* - hex: The color type HEX.
* - rgb: The color type RGB.
* - hsl: The color type HSL.
* - hsv: The color type HSV.
* - hwb: The color type HWB.
* - cmyk: The color type CMYK.
* - xyz: The color type XYZ.
* - lab: The color type LAB.
* - lch: The color type LCH.
* - keyword: The color type KEYWORD.
* - ansi16: The color type ANSI16.
* - ansi256: The color type ANSI256.
* - hcg: The color type HCG.
* - apple: The color type APPLE.
*/
static color(color: string): ColorTypes;
}
export = Colors;