-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d3dd63
commit 044fbf0
Showing
8 changed files
with
298 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
export const colorTable = { | ||
// 红色系 | ||
red: "#ff0000", | ||
crimson: "#dc143c", | ||
darkred: "#8b0000", | ||
firebrick: "#b22222", | ||
indianred: "#cd5c5c", | ||
lightcoral: "#f08080", | ||
maroon: "#800000", | ||
salmon: "#fa8072", | ||
darksalmon: "#e9967a", | ||
lightsalmon: "#ffa07a", | ||
|
||
// 粉色系 | ||
pink: "#ffc0cb", | ||
deeppink: "#ff1493", | ||
hotpink: "#ff69b4", | ||
lightpink: "#ffb6c1", | ||
palevioletred: "#db7093", | ||
|
||
// 橙色系 | ||
orange: "#ffa500", | ||
darkorange: "#ff8c00", | ||
coral: "#ff7f50", | ||
tomato: "#ff6347", | ||
orangered: "#ff4500", | ||
|
||
// 黄色系 | ||
yellow: "#ffff00", | ||
gold: "#ffd700", | ||
goldenrod: "#daa520", | ||
darkgoldenrod: "#b8860b", | ||
khaki: "#f0e68c", | ||
darkkhaki: "#bdb76b", | ||
palegoldenrod: "#eee8aa", | ||
lightyellow: "#ffffe0", | ||
|
||
// 绿色系 | ||
green: "#008000", | ||
lime: "#00ff00", | ||
limegreen: "#32cd32", | ||
forestgreen: "#228b22", | ||
darkgreen: "#006400", | ||
greenyellow: "#adff2f", | ||
yellowgreen: "#9acd32", | ||
springgreen: "#00ff7f", | ||
mediumspringgreen: "#00fa9a", | ||
lightgreen: "#90ee90", | ||
palegreen: "#98fb98", | ||
darkseagreen: "#8fbc8f", | ||
seagreen: "#2e8b57", | ||
olive: "#808000", | ||
darkolivegreen: "#556b2f", | ||
olivedrab: "#6b8e23", | ||
|
||
// 青色系 | ||
cyan: "#00ffff", | ||
aqua: "#00ffff", | ||
aquamarine: "#7fffd4", | ||
mediumaquamarine: "#66cdaa", | ||
turquoise: "#40e0d0", | ||
darkturquoise: "#00ced1", | ||
lightseagreen: "#20b2aa", | ||
mediumturquoise: "#48d1cc", | ||
paleturquoise: "#afeeee", | ||
teal: "#008080", | ||
|
||
// 蓝色系 | ||
blue: "#0000ff", | ||
darkblue: "#00008b", | ||
mediumblue: "#0000cd", | ||
navy: "#000080", | ||
midnightblue: "#191970", | ||
royalblue: "#4169e1", | ||
cornflowerblue: "#6495ed", | ||
dodgerblue: "#1e90ff", | ||
deepskyblue: "#00bfff", | ||
lightskyblue: "#87cefa", | ||
skyblue: "#87ceeb", | ||
lightblue: "#add8e6", | ||
powderblue: "#b0e0e6", | ||
steelblue: "#4682b4", | ||
lightsteelblue: "#b0c4de", | ||
cadetblue: "#5f9ea0", | ||
|
||
// 紫色系 | ||
purple: "#800080", | ||
magenta: "#ff00ff", | ||
fuchsia: "#ff00ff", | ||
darkmagenta: "#8b008b", | ||
darkorchid: "#9932cc", | ||
darkviolet: "#9400d3", | ||
blueviolet: "#8a2be2", | ||
mediumpurple: "#9370db", | ||
mediumorchid: "#ba55d3", | ||
orchid: "#da70d6", | ||
violet: "#ee82ee", | ||
plum: "#dda0dd", | ||
thistle: "#d8bfd8", | ||
lavender: "#e6e6fa", | ||
indigo: "#4b0082", | ||
slateblue: "#6a5acd", | ||
mediumslateblue: "#7b68ee", | ||
darkslateblue: "#483d8b", | ||
|
||
// 棕色系 | ||
brown: "#a52a2a", | ||
saddlebrown: "#8b4513", | ||
sienna: "#a0522d", | ||
chocolate: "#d2691e", | ||
peru: "#cd853f", | ||
sandybrown: "#f4a460", | ||
rosybrown: "#bc8f8f", | ||
tan: "#d2b48c", | ||
burlywood: "#deb887", | ||
wheat: "#f5deb3", | ||
|
||
// 白色系 | ||
white: "#ffffff", | ||
snow: "#fffafa", | ||
honeydew: "#f0fff0", | ||
mintcream: "#f5fffa", | ||
azure: "#f0ffff", | ||
aliceblue: "#f0f8ff", | ||
ghostwhite: "#f8f8ff", | ||
whitesmoke: "#f5f5f5", | ||
seashell: "#fff5ee", | ||
beige: "#f5f5dc", | ||
oldlace: "#fdf5e6", | ||
floralwhite: "#fffaf0", | ||
ivory: "#fffff0", | ||
antiquewhite: "#faebd7", | ||
linen: "#faf0e6", | ||
lavenderblush: "#fff0f5", | ||
mistyrose: "#ffe4e1", | ||
|
||
// 灰色系 | ||
gainsboro: "#dcdcdc", | ||
lightgray: "#d3d3d3", | ||
silver: "#c0c0c0", | ||
darkgray: "#a9a9a9", | ||
gray: "#808080", | ||
dimgray: "#696969", | ||
lightslategray: "#778899", | ||
slategray: "#708090", | ||
darkslategray: "#2f4f4f", | ||
black: "#000000", | ||
} as const; | ||
|
||
export function findColor(name: keyof typeof colorTable): string { | ||
return colorTable[name] || ""; | ||
} | ||
|
||
export default colorTable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from "./deep-clone"; | ||
export * from "./judgements"; | ||
export * from "./color-table"; |
Oops, something went wrong.