@yugu-ui/shared 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/bin.ts +4 -0
  2. package/dist/bin.d.ts +0 -0
  3. package/dist/constants/index.d.ts +1 -0
  4. package/dist/constants/reg.d.ts +12 -0
  5. package/dist/constants.d.ts +2 -0
  6. package/dist/constants.js +15 -0
  7. package/dist/hooks/index.d.ts +8 -0
  8. package/dist/hooks/use-boolean.d.ts +12 -0
  9. package/dist/hooks/use-context.d.ts +15 -0
  10. package/dist/hooks/use-count-down.d.ts +12 -0
  11. package/dist/hooks/use-loading.d.ts +10 -0
  12. package/dist/hooks/use-request.d.ts +23 -0
  13. package/dist/hooks/use-svg-icon-render.d.ts +19 -0
  14. package/dist/hooks/use-table.d.ts +63 -0
  15. package/dist/hooks.d.ts +2 -0
  16. package/dist/hooks.js +205 -0
  17. package/dist/index.d.ts +2 -0
  18. package/dist/index.js +3146 -0
  19. package/dist/nanoid-CQE6QAZJ.js +2 -0
  20. package/dist/request/constant.d.ts +6 -0
  21. package/dist/request/index.d.ts +22 -0
  22. package/dist/request/options.d.ts +6 -0
  23. package/dist/request/shared.d.ts +17 -0
  24. package/dist/request/type.d.ts +94 -0
  25. package/dist/request.d.ts +2 -0
  26. package/dist/request.js +182 -0
  27. package/dist/scripts/src/commands/changelog.d.ts +2 -0
  28. package/dist/scripts/src/commands/cleanup.d.ts +1 -0
  29. package/dist/scripts/src/commands/git-commit.d.ts +9 -0
  30. package/dist/scripts/src/commands/index.d.ts +6 -0
  31. package/dist/scripts/src/commands/release.d.ts +1 -0
  32. package/dist/scripts/src/commands/router.d.ts +2 -0
  33. package/dist/scripts/src/commands/update-pkg.d.ts +1 -0
  34. package/dist/scripts/src/config/index.d.ts +2 -0
  35. package/dist/scripts/src/index.d.ts +1 -0
  36. package/dist/scripts/src/locales/index.d.ts +25 -0
  37. package/dist/scripts/src/shared/index.d.ts +2 -0
  38. package/dist/scripts/src/types/index.d.ts +30 -0
  39. package/dist/uno-preset/index.d.ts +4 -0
  40. package/dist/uno-preset.d.ts +6 -0
  41. package/dist/uno-preset.js +49 -0
  42. package/dist/utils/color/constant/index.d.ts +2 -0
  43. package/dist/utils/color/constant/name.d.ts +8 -0
  44. package/dist/utils/color/constant/palette.d.ts +2 -0
  45. package/dist/utils/color/index.d.ts +5 -0
  46. package/dist/utils/color/palette/antd.d.ts +18 -0
  47. package/dist/utils/color/palette/index.d.ts +17 -0
  48. package/dist/utils/color/palette/recommend.d.ts +20 -0
  49. package/dist/utils/color/shared/colord.d.ts +38 -0
  50. package/dist/utils/color/shared/index.d.ts +2 -0
  51. package/dist/utils/color/shared/name.d.ts +6 -0
  52. package/dist/utils/color/types/index.d.ts +52 -0
  53. package/dist/utils/common.d.ts +2 -0
  54. package/dist/utils/index.d.ts +5 -0
  55. package/dist/utils/klona.d.ts +2 -0
  56. package/dist/utils/nanoid.d.ts +1 -0
  57. package/dist/utils/storage.d.ts +28 -0
  58. package/package.json +89 -4
  59. package/scripts/src/commands/changelog.ts +10 -0
  60. package/scripts/src/commands/cleanup.ts +5 -0
  61. package/scripts/src/commands/git-commit.ts +107 -0
  62. package/scripts/src/commands/index.ts +6 -0
  63. package/scripts/src/commands/release.ts +12 -0
  64. package/scripts/src/commands/router.ts +90 -0
  65. package/scripts/src/commands/update-pkg.ts +5 -0
  66. package/scripts/src/config/index.ts +39 -0
  67. package/scripts/src/index.ts +110 -0
  68. package/scripts/src/locales/index.ts +84 -0
  69. package/scripts/src/shared/index.ts +7 -0
  70. package/scripts/src/types/index.ts +31 -0
  71. package/README.md +0 -3
package/dist/index.js ADDED
@@ -0,0 +1,3146 @@
1
+ import { t as nanoid } from "./nanoid-CQE6QAZJ.js";
2
+ import localforage from "localforage";
3
+ import { klona as jsonClone } from "klona/json";
4
+ import { colord, extend } from "colord";
5
+ import namesPlugin from "colord/plugins/names";
6
+ import mixPlugin from "colord/plugins/mix";
7
+ import labPlugin from "colord/plugins/lab";
8
+ import dayjs from "dayjs";
9
+ //#region src/utils/storage.ts
10
+ function createStorage(type, storagePrefix) {
11
+ const stg = type === "session" ? window.sessionStorage : window.localStorage;
12
+ return {
13
+ /**
14
+ * Set session
15
+ *
16
+ * @param key Session key
17
+ * @param value Session value
18
+ */
19
+ set(key, value) {
20
+ const json = JSON.stringify(value);
21
+ stg.setItem(`${storagePrefix}${key}`, json);
22
+ },
23
+ /**
24
+ * Get session
25
+ *
26
+ * @param key Session key
27
+ */
28
+ get(key) {
29
+ const json = stg.getItem(`${storagePrefix}${key}`);
30
+ if (json) {
31
+ let storageData = null;
32
+ try {
33
+ storageData = JSON.parse(json);
34
+ } catch {}
35
+ if (storageData !== null) return storageData;
36
+ }
37
+ stg.removeItem(`${storagePrefix}${key}`);
38
+ return null;
39
+ },
40
+ remove(key) {
41
+ stg.removeItem(`${storagePrefix}${key}`);
42
+ },
43
+ clear() {
44
+ stg.clear();
45
+ }
46
+ };
47
+ }
48
+ function createLocalforage(driver) {
49
+ const driverMap = {
50
+ local: localforage.LOCALSTORAGE,
51
+ indexedDB: localforage.INDEXEDDB,
52
+ webSQL: localforage.WEBSQL
53
+ };
54
+ localforage.config({ driver: driverMap[driver] });
55
+ return localforage;
56
+ }
57
+ //#endregion
58
+ //#region src/utils/color/constant/name.ts
59
+ var colorNames = [
60
+ ["#000000", "Black"],
61
+ ["#000080", "Navy Blue"],
62
+ ["#0000c8", "Dark Blue"],
63
+ ["#0000ff", "Blue"],
64
+ ["#000741", "Stratos"],
65
+ ["#001b1c", "Swamp"],
66
+ ["#002387", "Resolution Blue"],
67
+ ["#002900", "Deep Fir"],
68
+ ["#002e20", "Burnham"],
69
+ ["#002fa7", "International Klein Blue"],
70
+ ["#003153", "Prussian Blue"],
71
+ ["#003366", "Midnight Blue"],
72
+ ["#003399", "Smalt"],
73
+ ["#003532", "Deep Teal"],
74
+ ["#003e40", "Cyprus"],
75
+ ["#004620", "Kaitoke Green"],
76
+ ["#0047ab", "Cobalt"],
77
+ ["#004816", "Crusoe"],
78
+ ["#004950", "Sherpa Blue"],
79
+ ["#0056a7", "Endeavour"],
80
+ ["#00581a", "Camarone"],
81
+ ["#0066cc", "Science Blue"],
82
+ ["#0066ff", "Blue Ribbon"],
83
+ ["#00755e", "Tropical Rain Forest"],
84
+ ["#0076a3", "Allports"],
85
+ ["#007ba7", "Deep Cerulean"],
86
+ ["#007ec7", "Lochmara"],
87
+ ["#007fff", "Azure Radiance"],
88
+ ["#008080", "Teal"],
89
+ ["#0095b6", "Bondi Blue"],
90
+ ["#009dc4", "Pacific Blue"],
91
+ ["#00a693", "Persian Green"],
92
+ ["#00a86b", "Jade"],
93
+ ["#00cc99", "Caribbean Green"],
94
+ ["#00cccc", "Robin's Egg Blue"],
95
+ ["#00ff00", "Green"],
96
+ ["#00ff7f", "Spring Green"],
97
+ ["#00ffff", "Cyan Aqua"],
98
+ ["#010d1a", "Blue Charcoal"],
99
+ ["#011635", "Midnight"],
100
+ ["#011d13", "Holly"],
101
+ ["#012731", "Daintree"],
102
+ ["#01361c", "Cardin Green"],
103
+ ["#01371a", "County Green"],
104
+ ["#013e62", "Astronaut Blue"],
105
+ ["#013f6a", "Regal Blue"],
106
+ ["#014b43", "Aqua Deep"],
107
+ ["#015e85", "Orient"],
108
+ ["#016162", "Blue Stone"],
109
+ ["#016d39", "Fun Green"],
110
+ ["#01796f", "Pine Green"],
111
+ ["#017987", "Blue Lagoon"],
112
+ ["#01826b", "Deep Sea"],
113
+ ["#01a368", "Green Haze"],
114
+ ["#022d15", "English Holly"],
115
+ ["#02402c", "Sherwood Green"],
116
+ ["#02478e", "Congress Blue"],
117
+ ["#024e46", "Evening Sea"],
118
+ ["#026395", "Bahama Blue"],
119
+ ["#02866f", "Observatory"],
120
+ ["#02a4d3", "Cerulean"],
121
+ ["#03163c", "Tangaroa"],
122
+ ["#032b52", "Green Vogue"],
123
+ ["#036a6e", "Mosque"],
124
+ ["#041004", "Midnight Moss"],
125
+ ["#041322", "Black Pearl"],
126
+ ["#042e4c", "Blue Whale"],
127
+ ["#044022", "Zuccini"],
128
+ ["#044259", "Teal Blue"],
129
+ ["#051040", "Deep Cove"],
130
+ ["#051657", "Gulf Blue"],
131
+ ["#055989", "Venice Blue"],
132
+ ["#056f57", "Watercourse"],
133
+ ["#062a78", "Catalina Blue"],
134
+ ["#063537", "Tiber"],
135
+ ["#069b81", "Gossamer"],
136
+ ["#06a189", "Niagara"],
137
+ ["#073a50", "Tarawera"],
138
+ ["#080110", "Jaguar"],
139
+ ["#081910", "Black Bean"],
140
+ ["#082567", "Deep Sapphire"],
141
+ ["#088370", "Elf Green"],
142
+ ["#08e8de", "Bright Turquoise"],
143
+ ["#092256", "Downriver"],
144
+ ["#09230f", "Palm Green"],
145
+ ["#09255d", "Madison"],
146
+ ["#093624", "Bottle Green"],
147
+ ["#095859", "Deep Sea Green"],
148
+ ["#097f4b", "Salem"],
149
+ ["#0a001c", "Black Russian"],
150
+ ["#0a480d", "Dark Fern"],
151
+ ["#0a6906", "Japanese Laurel"],
152
+ ["#0a6f75", "Atoll"],
153
+ ["#0b0b0b", "Cod Gray"],
154
+ ["#0b0f08", "Marshland"],
155
+ ["#0b1107", "Gordons Green"],
156
+ ["#0b1304", "Black Forest"],
157
+ ["#0b6207", "San Felix"],
158
+ ["#0bda51", "Malachite"],
159
+ ["#0c0b1d", "Ebony"],
160
+ ["#0c0d0f", "Woodsmoke"],
161
+ ["#0c1911", "Racing Green"],
162
+ ["#0c7a79", "Surfie Green"],
163
+ ["#0c8990", "Blue Chill"],
164
+ ["#0d0332", "Black Rock"],
165
+ ["#0d1117", "Bunker"],
166
+ ["#0d1c19", "Aztec"],
167
+ ["#0d2e1c", "Bush"],
168
+ ["#0e0e18", "Cinder"],
169
+ ["#0e2a30", "Firefly"],
170
+ ["#0f2d9e", "Torea Bay"],
171
+ ["#10121d", "Vulcan"],
172
+ ["#101405", "Green Waterloo"],
173
+ ["#105852", "Eden"],
174
+ ["#110c6c", "Arapawa"],
175
+ ["#120a8f", "Ultramarine"],
176
+ ["#123447", "Elephant"],
177
+ ["#126b40", "Jewel"],
178
+ ["#130000", "Diesel"],
179
+ ["#130a06", "Asphalt"],
180
+ ["#13264d", "Blue Zodiac"],
181
+ ["#134f19", "Parsley"],
182
+ ["#140600", "Nero"],
183
+ ["#1450aa", "Tory Blue"],
184
+ ["#151f4c", "Bunting"],
185
+ ["#1560bd", "Denim"],
186
+ ["#15736b", "Genoa"],
187
+ ["#161928", "Mirage"],
188
+ ["#161d10", "Hunter Green"],
189
+ ["#162a40", "Big Stone"],
190
+ ["#163222", "Celtic"],
191
+ ["#16322c", "Timber Green"],
192
+ ["#163531", "Gable Green"],
193
+ ["#171f04", "Pine Tree"],
194
+ ["#175579", "Chathams Blue"],
195
+ ["#182d09", "Deep Forest Green"],
196
+ ["#18587a", "Blumine"],
197
+ ["#19330e", "Palm Leaf"],
198
+ ["#193751", "Nile Blue"],
199
+ ["#1959a8", "Fun Blue"],
200
+ ["#1a1a68", "Lucky Point"],
201
+ ["#1ab385", "Mountain Meadow"],
202
+ ["#1b0245", "Tolopea"],
203
+ ["#1b1035", "Haiti"],
204
+ ["#1b127b", "Deep Koamaru"],
205
+ ["#1b1404", "Acadia"],
206
+ ["#1b2f11", "Seaweed"],
207
+ ["#1b3162", "Biscay"],
208
+ ["#1b659d", "Matisse"],
209
+ ["#1c1208", "Crowshead"],
210
+ ["#1c1e13", "Rangoon Green"],
211
+ ["#1c39bb", "Persian Blue"],
212
+ ["#1c402e", "Everglade"],
213
+ ["#1c7c7d", "Elm"],
214
+ ["#1d6142", "Green Pea"],
215
+ ["#1e0f04", "Creole"],
216
+ ["#1e1609", "Karaka"],
217
+ ["#1e1708", "El Paso"],
218
+ ["#1e385b", "Cello"],
219
+ ["#1e433c", "Te Papa Green"],
220
+ ["#1e90ff", "Dodger Blue"],
221
+ ["#1e9ab0", "Eastern Blue"],
222
+ ["#1f120f", "Night Rider"],
223
+ ["#1fc2c2", "Java"],
224
+ ["#20208d", "Jacksons Purple"],
225
+ ["#202e54", "Cloud Burst"],
226
+ ["#204852", "Blue Dianne"],
227
+ ["#211a0e", "Eternity"],
228
+ ["#220878", "Deep Blue"],
229
+ ["#228b22", "Forest Green"],
230
+ ["#233418", "Mallard"],
231
+ ["#240a40", "Violet"],
232
+ ["#240c02", "Kilamanjaro"],
233
+ ["#242a1d", "Log Cabin"],
234
+ ["#242e16", "Black Olive"],
235
+ ["#24500f", "Green House"],
236
+ ["#251607", "Graphite"],
237
+ ["#251706", "Cannon Black"],
238
+ ["#251f4f", "Port Gore"],
239
+ ["#25272c", "Shark"],
240
+ ["#25311c", "Green Kelp"],
241
+ ["#2596d1", "Curious Blue"],
242
+ ["#260368", "Paua"],
243
+ ["#26056a", "Paris M"],
244
+ ["#261105", "Wood Bark"],
245
+ ["#261414", "Gondola"],
246
+ ["#262335", "Steel Gray"],
247
+ ["#26283b", "Ebony Clay"],
248
+ ["#273a81", "Bay Of Many"],
249
+ ["#27504b", "Plantation"],
250
+ ["#278a5b", "Eucalyptus"],
251
+ ["#281e15", "Oil"],
252
+ ["#283a77", "Astronaut"],
253
+ ["#286acd", "Mariner"],
254
+ ["#290c5e", "Violent Violet"],
255
+ ["#292130", "Bastille"],
256
+ ["#292319", "Zeus"],
257
+ ["#292937", "Charade"],
258
+ ["#297b9a", "Jelly Bean"],
259
+ ["#29ab87", "Jungle Green"],
260
+ ["#2a0359", "Cherry Pie"],
261
+ ["#2a140e", "Coffee Bean"],
262
+ ["#2a2630", "Baltic Sea"],
263
+ ["#2a380b", "Turtle Green"],
264
+ ["#2a52be", "Cerulean Blue"],
265
+ ["#2b0202", "Sepia Black"],
266
+ ["#2b194f", "Valhalla"],
267
+ ["#2b3228", "Heavy Metal"],
268
+ ["#2c0e8c", "Blue Gem"],
269
+ ["#2c1632", "Revolver"],
270
+ ["#2c2133", "Bleached Cedar"],
271
+ ["#2c8c84", "Lochinvar"],
272
+ ["#2d2510", "Mikado"],
273
+ ["#2d383a", "Outer Space"],
274
+ ["#2d569b", "St Tropaz"],
275
+ ["#2e0329", "Jacaranda"],
276
+ ["#2e1905", "Jacko Bean"],
277
+ ["#2e3222", "Rangitoto"],
278
+ ["#2e3f62", "Rhino"],
279
+ ["#2e8b57", "Sea Green"],
280
+ ["#2ebfd4", "Scooter"],
281
+ ["#2f270e", "Onion"],
282
+ ["#2f3cb3", "Governor Bay"],
283
+ ["#2f519e", "Sapphire"],
284
+ ["#2f5a57", "Spectra"],
285
+ ["#2f6168", "Casal"],
286
+ ["#300529", "Melanzane"],
287
+ ["#301f1e", "Cocoa Brown"],
288
+ ["#302a0f", "Woodrush"],
289
+ ["#304b6a", "San Juan"],
290
+ ["#30d5c8", "Turquoise"],
291
+ ["#311c17", "Eclipse"],
292
+ ["#314459", "Pickled Bluewood"],
293
+ ["#315ba1", "Azure"],
294
+ ["#31728d", "Calypso"],
295
+ ["#317d82", "Paradiso"],
296
+ ["#32127a", "Persian Indigo"],
297
+ ["#32293a", "Blackcurrant"],
298
+ ["#323232", "Mine Shaft"],
299
+ ["#325d52", "Stromboli"],
300
+ ["#327c14", "Bilbao"],
301
+ ["#327da0", "Astral"],
302
+ ["#33036b", "Christalle"],
303
+ ["#33292f", "Thunder"],
304
+ ["#33cc99", "Shamrock"],
305
+ ["#341515", "Tamarind"],
306
+ ["#350036", "Mardi Gras"],
307
+ ["#350e42", "Valentino"],
308
+ ["#350e57", "Jagger"],
309
+ ["#353542", "Tuna"],
310
+ ["#354e8c", "Chambray"],
311
+ ["#363050", "Martinique"],
312
+ ["#363534", "Tuatara"],
313
+ ["#363c0d", "Waiouru"],
314
+ ["#36747d", "Ming"],
315
+ ["#368716", "La Palma"],
316
+ ["#370202", "Chocolate"],
317
+ ["#371d09", "Clinker"],
318
+ ["#37290e", "Brown Tumbleweed"],
319
+ ["#373021", "Birch"],
320
+ ["#377475", "Oracle"],
321
+ ["#380474", "Blue Diamond"],
322
+ ["#381a51", "Grape"],
323
+ ["#383533", "Dune"],
324
+ ["#384555", "Oxford Blue"],
325
+ ["#384910", "Clover"],
326
+ ["#394851", "Limed Spruce"],
327
+ ["#396413", "Dell"],
328
+ ["#3a0020", "Toledo"],
329
+ ["#3a2010", "Sambuca"],
330
+ ["#3a2a6a", "Jacarta"],
331
+ ["#3a686c", "William"],
332
+ ["#3a6a47", "Killarney"],
333
+ ["#3ab09e", "Keppel"],
334
+ ["#3b000b", "Temptress"],
335
+ ["#3b0910", "Aubergine"],
336
+ ["#3b1f1f", "Jon"],
337
+ ["#3b2820", "Treehouse"],
338
+ ["#3b7a57", "Amazon"],
339
+ ["#3b91b4", "Boston Blue"],
340
+ ["#3c0878", "Windsor"],
341
+ ["#3c1206", "Rebel"],
342
+ ["#3c1f76", "Meteorite"],
343
+ ["#3c2005", "Dark Ebony"],
344
+ ["#3c3910", "Camouflage"],
345
+ ["#3c4151", "Bright Gray"],
346
+ ["#3c4443", "Cape Cod"],
347
+ ["#3c493a", "Lunar Green"],
348
+ ["#3d0c02", "Bean "],
349
+ ["#3d2b1f", "Bistre"],
350
+ ["#3d7d52", "Goblin"],
351
+ ["#3e0480", "Kingfisher Daisy"],
352
+ ["#3e1c14", "Cedar"],
353
+ ["#3e2b23", "English Walnut"],
354
+ ["#3e2c1c", "Black Marlin"],
355
+ ["#3e3a44", "Ship Gray"],
356
+ ["#3eabbf", "Pelorous"],
357
+ ["#3f2109", "Bronze"],
358
+ ["#3f2500", "Cola"],
359
+ ["#3f3002", "Madras"],
360
+ ["#3f307f", "Minsk"],
361
+ ["#3f4c3a", "Cabbage Pont"],
362
+ ["#3f583b", "Tom Thumb"],
363
+ ["#3f5d53", "Mineral Green"],
364
+ ["#3fc1aa", "Puerto Rico"],
365
+ ["#3fff00", "Harlequin"],
366
+ ["#401801", "Brown Pod"],
367
+ ["#40291d", "Cork"],
368
+ ["#403b38", "Masala"],
369
+ ["#403d19", "Thatch Green"],
370
+ ["#405169", "Fiord"],
371
+ ["#40826d", "Viridian"],
372
+ ["#40a860", "Chateau Green"],
373
+ ["#410056", "Ripe Plum"],
374
+ ["#411f10", "Paco"],
375
+ ["#412010", "Deep Oak"],
376
+ ["#413c37", "Merlin"],
377
+ ["#414257", "Gun Powder"],
378
+ ["#414c7d", "East Bay"],
379
+ ["#4169e1", "Royal Blue"],
380
+ ["#41aa78", "Ocean Green"],
381
+ ["#420303", "Burnt Maroon"],
382
+ ["#423921", "Lisbon Brown"],
383
+ ["#427977", "Faded Jade"],
384
+ ["#431560", "Scarlet Gum"],
385
+ ["#433120", "Iroko"],
386
+ ["#433e37", "Armadillo"],
387
+ ["#434c59", "River Bed"],
388
+ ["#436a0d", "Green Leaf"],
389
+ ["#44012d", "Barossa"],
390
+ ["#441d00", "Morocco Brown"],
391
+ ["#444954", "Mako"],
392
+ ["#454936", "Kelp"],
393
+ ["#456cac", "San Marino"],
394
+ ["#45b1e8", "Picton Blue"],
395
+ ["#460b41", "Loulou"],
396
+ ["#462425", "Crater Brown"],
397
+ ["#465945", "Gray Asparagus"],
398
+ ["#4682b4", "Steel Blue"],
399
+ ["#480404", "Rustic Red"],
400
+ ["#480607", "Bulgarian Rose"],
401
+ ["#480656", "Clairvoyant"],
402
+ ["#481c1c", "Cocoa Bean"],
403
+ ["#483131", "Woody Brown"],
404
+ ["#483c32", "Taupe"],
405
+ ["#49170c", "Van Cleef"],
406
+ ["#492615", "Brown Derby"],
407
+ ["#49371b", "Metallic Bronze"],
408
+ ["#495400", "Verdun Green"],
409
+ ["#496679", "Blue Bayoux"],
410
+ ["#497183", "Bismark"],
411
+ ["#4a2a04", "Bracken"],
412
+ ["#4a3004", "Deep Bronze"],
413
+ ["#4a3c30", "Mondo"],
414
+ ["#4a4244", "Tundora"],
415
+ ["#4a444b", "Gravel"],
416
+ ["#4a4e5a", "Trout"],
417
+ ["#4b0082", "Pigment Indigo"],
418
+ ["#4b5d52", "Nandor"],
419
+ ["#4c3024", "Saddle"],
420
+ ["#4c4f56", "Abbey"],
421
+ ["#4d0135", "Blackberry"],
422
+ ["#4d0a18", "Cab Sav"],
423
+ ["#4d1e01", "Indian Tan"],
424
+ ["#4d282d", "Cowboy"],
425
+ ["#4d282e", "Livid Brown"],
426
+ ["#4d3833", "Rock"],
427
+ ["#4d3d14", "Punga"],
428
+ ["#4d400f", "Bronzetone"],
429
+ ["#4d5328", "Woodland"],
430
+ ["#4e0606", "Mahogany"],
431
+ ["#4e2a5a", "Bossanova"],
432
+ ["#4e3b41", "Matterhorn"],
433
+ ["#4e420c", "Bronze Olive"],
434
+ ["#4e4562", "Mulled Wine"],
435
+ ["#4e6649", "Axolotl"],
436
+ ["#4e7f9e", "Wedgewood"],
437
+ ["#4eabd1", "Shakespeare"],
438
+ ["#4f1c70", "Honey Flower"],
439
+ ["#4f2398", "Daisy Bush"],
440
+ ["#4f69c6", "Indigo"],
441
+ ["#4f7942", "Fern Green"],
442
+ ["#4f9d5d", "Fruit Salad"],
443
+ ["#4fa83d", "Apple"],
444
+ ["#504351", "Mortar"],
445
+ ["#507096", "Kashmir Blue"],
446
+ ["#507672", "Cutty Sark"],
447
+ ["#50c878", "Emerald"],
448
+ ["#514649", "Emperor"],
449
+ ["#516e3d", "Chalet Green"],
450
+ ["#517c66", "Como"],
451
+ ["#51808f", "Smalt Blue"],
452
+ ["#52001f", "Castro"],
453
+ ["#520c17", "Maroon Oak"],
454
+ ["#523c94", "Gigas"],
455
+ ["#533455", "Voodoo"],
456
+ ["#534491", "Victoria"],
457
+ ["#53824b", "Hippie Green"],
458
+ ["#541012", "Heath"],
459
+ ["#544333", "Judge Gray"],
460
+ ["#54534d", "Fuscous Gray"],
461
+ ["#549019", "Vida Loca"],
462
+ ["#55280c", "Cioccolato"],
463
+ ["#555b10", "Saratoga"],
464
+ ["#556d56", "Finlandia"],
465
+ ["#5590d9", "Havelock Blue"],
466
+ ["#56b4be", "Fountain Blue"],
467
+ ["#578363", "Spring Leaves"],
468
+ ["#583401", "Saddle Brown"],
469
+ ["#585562", "Scarpa Flow"],
470
+ ["#587156", "Cactus"],
471
+ ["#589aaf", "Hippie Blue"],
472
+ ["#591d35", "Wine Berry"],
473
+ ["#592804", "Brown Bramble"],
474
+ ["#593737", "Congo Brown"],
475
+ ["#594433", "Millbrook"],
476
+ ["#5a6e9c", "Waikawa Gray"],
477
+ ["#5a87a0", "Horizon"],
478
+ ["#5b3013", "Jambalaya"],
479
+ ["#5c0120", "Bordeaux"],
480
+ ["#5c0536", "Mulberry Wood"],
481
+ ["#5c2e01", "Carnaby Tan"],
482
+ ["#5c5d75", "Comet"],
483
+ ["#5d1e0f", "Redwood"],
484
+ ["#5d4c51", "Don Juan"],
485
+ ["#5d5c58", "Chicago"],
486
+ ["#5d5e37", "Verdigris"],
487
+ ["#5d7747", "Dingley"],
488
+ ["#5da19f", "Breaker Bay"],
489
+ ["#5e483e", "Kabul"],
490
+ ["#5e5d3b", "Hemlock"],
491
+ ["#5f3d26", "Irish Coffee"],
492
+ ["#5f5f6e", "Mid Gray"],
493
+ ["#5f6672", "Shuttle Gray"],
494
+ ["#5fa777", "Aqua Forest"],
495
+ ["#5fb3ac", "Tradewind"],
496
+ ["#604913", "Horses Neck"],
497
+ ["#605b73", "Smoky"],
498
+ ["#606e68", "Corduroy"],
499
+ ["#6093d1", "Danube"],
500
+ ["#612718", "Espresso"],
501
+ ["#614051", "Eggplant"],
502
+ ["#615d30", "Costa Del Sol"],
503
+ ["#61845f", "Glade Green"],
504
+ ["#622f30", "Buccaneer"],
505
+ ["#623f2d", "Quincy"],
506
+ ["#624e9a", "Butterfly Bush"],
507
+ ["#625119", "West Coast"],
508
+ ["#626649", "Finch"],
509
+ ["#639a8f", "Patina"],
510
+ ["#63b76c", "Fern"],
511
+ ["#6456b7", "Blue Violet"],
512
+ ["#646077", "Dolphin"],
513
+ ["#646463", "Storm Dust"],
514
+ ["#646a54", "Siam"],
515
+ ["#646e75", "Nevada"],
516
+ ["#6495ed", "Cornflower Blue"],
517
+ ["#64ccdb", "Viking"],
518
+ ["#65000b", "Rosewood"],
519
+ ["#651a14", "Cherrywood"],
520
+ ["#652dc1", "Purple Heart"],
521
+ ["#657220", "Fern Frond"],
522
+ ["#65745d", "Willow Grove"],
523
+ ["#65869f", "Hoki"],
524
+ ["#660045", "Pompadour"],
525
+ ["#660099", "Purple"],
526
+ ["#66023c", "Tyrian Purple"],
527
+ ["#661010", "Dark Tan"],
528
+ ["#66b58f", "Silver Tree"],
529
+ ["#66ff00", "Bright Green"],
530
+ ["#66ff66", "Screamin Green"],
531
+ ["#67032d", "Black Rose"],
532
+ ["#675fa6", "Scampi"],
533
+ ["#676662", "Ironside Gray"],
534
+ ["#678975", "Viridian Green"],
535
+ ["#67a712", "Christi"],
536
+ ["#683600", "Nutmeg Wood Finish"],
537
+ ["#685558", "Zambezi"],
538
+ ["#685e6e", "Salt Box"],
539
+ ["#692545", "Tawny Port"],
540
+ ["#692d54", "Finn"],
541
+ ["#695f62", "Scorpion"],
542
+ ["#697e9a", "Lynch"],
543
+ ["#6a442e", "Spice"],
544
+ ["#6a5d1b", "Himalaya"],
545
+ ["#6a6051", "Soya Bean"],
546
+ ["#6b2a14", "Hairy Heath"],
547
+ ["#6b3fa0", "Royal Purple"],
548
+ ["#6b4e31", "Shingle Fawn"],
549
+ ["#6b5755", "Dorado"],
550
+ ["#6b8ba2", "Bermuda Gray"],
551
+ ["#6b8e23", "Olive Drab"],
552
+ ["#6c3082", "Eminence"],
553
+ ["#6cdae7", "Turquoise Blue"],
554
+ ["#6d0101", "Lonestar"],
555
+ ["#6d5e54", "Pine Cone"],
556
+ ["#6d6c6c", "Dove Gray"],
557
+ ["#6d9292", "Juniper"],
558
+ ["#6d92a1", "Gothic"],
559
+ ["#6e0902", "Red Oxide"],
560
+ ["#6e1d14", "Moccaccino"],
561
+ ["#6e4826", "Pickled Bean"],
562
+ ["#6e4b26", "Dallas"],
563
+ ["#6e6d57", "Kokoda"],
564
+ ["#6e7783", "Pale Sky"],
565
+ ["#6f440c", "Cafe Royale"],
566
+ ["#6f6a61", "Flint"],
567
+ ["#6f8e63", "Highland"],
568
+ ["#6f9d02", "Limeade"],
569
+ ["#6fd0c5", "Downy"],
570
+ ["#701c1c", "Persian Plum"],
571
+ ["#704214", "Sepia"],
572
+ ["#704a07", "Antique Bronze"],
573
+ ["#704f50", "Ferra"],
574
+ ["#706555", "Coffee"],
575
+ ["#708090", "Slate Gray"],
576
+ ["#711a00", "Cedar Wood Finish"],
577
+ ["#71291d", "Metallic Copper"],
578
+ ["#714693", "Affair"],
579
+ ["#714ab2", "Studio"],
580
+ ["#715d47", "Tobacco Brown"],
581
+ ["#716338", "Yellow Metal"],
582
+ ["#716b56", "Peat"],
583
+ ["#716e10", "Olivetone"],
584
+ ["#717486", "Storm Gray"],
585
+ ["#718080", "Sirocco"],
586
+ ["#71d9e2", "Aquamarine Blue"],
587
+ ["#72010f", "Venetian Red"],
588
+ ["#724a2f", "Old Copper"],
589
+ ["#726d4e", "Go Ben"],
590
+ ["#727b89", "Raven"],
591
+ ["#731e8f", "Seance"],
592
+ ["#734a12", "Raw Umber"],
593
+ ["#736c9f", "Kimberly"],
594
+ ["#736d58", "Crocodile"],
595
+ ["#737829", "Crete"],
596
+ ["#738678", "Xanadu"],
597
+ ["#74640d", "Spicy Mustard"],
598
+ ["#747d63", "Limed Ash"],
599
+ ["#747d83", "Rolling Stone"],
600
+ ["#748881", "Blue Smoke"],
601
+ ["#749378", "Laurel"],
602
+ ["#74c365", "Mantis"],
603
+ ["#755a57", "Russett"],
604
+ ["#7563a8", "Deluge"],
605
+ ["#76395d", "Cosmic"],
606
+ ["#7666c6", "Blue Marguerite"],
607
+ ["#76bd17", "Lima"],
608
+ ["#76d7ea", "Sky Blue"],
609
+ ["#770f05", "Dark Burgundy"],
610
+ ["#771f1f", "Crown Of Thorns"],
611
+ ["#773f1a", "Walnut"],
612
+ ["#776f61", "Pablo"],
613
+ ["#778120", "Pacifika"],
614
+ ["#779e86", "Oxley"],
615
+ ["#77dd77", "Pastel Green"],
616
+ ["#780109", "Japanese Maple"],
617
+ ["#782d19", "Mocha"],
618
+ ["#782f16", "Peanut"],
619
+ ["#78866b", "Camouflage Green"],
620
+ ["#788a25", "Wasabi"],
621
+ ["#788bba", "Ship Cove"],
622
+ ["#78a39c", "Sea Nymph"],
623
+ ["#795d4c", "Roman Coffee"],
624
+ ["#796878", "Old Lavender"],
625
+ ["#796989", "Rum"],
626
+ ["#796a78", "Fedora"],
627
+ ["#796d62", "Sandstone"],
628
+ ["#79deec", "Spray"],
629
+ ["#7a013a", "Siren"],
630
+ ["#7a58c1", "Fuchsia Blue"],
631
+ ["#7a7a7a", "Boulder"],
632
+ ["#7a89b8", "Wild Blue Yonder"],
633
+ ["#7ac488", "De York"],
634
+ ["#7b3801", "Red Beech"],
635
+ ["#7b3f00", "Cinnamon"],
636
+ ["#7b6608", "Yukon Gold"],
637
+ ["#7b7874", "Tapa"],
638
+ ["#7b7c94", "Waterloo "],
639
+ ["#7b8265", "Flax Smoke"],
640
+ ["#7b9f80", "Amulet"],
641
+ ["#7ba05b", "Asparagus"],
642
+ ["#7c1c05", "Kenyan Copper"],
643
+ ["#7c7631", "Pesto"],
644
+ ["#7c778a", "Topaz"],
645
+ ["#7c7b7a", "Concord"],
646
+ ["#7c7b82", "Jumbo"],
647
+ ["#7c881a", "Trendy Green"],
648
+ ["#7ca1a6", "Gumbo"],
649
+ ["#7cb0a1", "Acapulco"],
650
+ ["#7cb7bb", "Neptune"],
651
+ ["#7d2c14", "Pueblo"],
652
+ ["#7da98d", "Bay Leaf"],
653
+ ["#7dc8f7", "Malibu"],
654
+ ["#7dd8c6", "Bermuda"],
655
+ ["#7e3a15", "Copper Canyon"],
656
+ ["#7f1734", "Claret"],
657
+ ["#7f3a02", "Peru Tan"],
658
+ ["#7f626d", "Falcon"],
659
+ ["#7f7589", "Mobster"],
660
+ ["#7f76d3", "Moody Blue"],
661
+ ["#7fff00", "Chartreuse"],
662
+ ["#7fffd4", "Aquamarine"],
663
+ ["#800000", "Maroon"],
664
+ ["#800b47", "Rose Bud Cherry"],
665
+ ["#801818", "Falu Red"],
666
+ ["#80341f", "Red Robin"],
667
+ ["#803790", "Vivid Violet"],
668
+ ["#80461b", "Russet"],
669
+ ["#807e79", "Friar Gray"],
670
+ ["#808000", "Olive"],
671
+ ["#808080", "Gray"],
672
+ ["#80b3ae", "Gulf Stream"],
673
+ ["#80b3c4", "Glacier"],
674
+ ["#80ccea", "Seagull"],
675
+ ["#81422c", "Nutmeg"],
676
+ ["#816e71", "Spicy Pink"],
677
+ ["#817377", "Empress"],
678
+ ["#819885", "Spanish Green"],
679
+ ["#826f65", "Sand Dune"],
680
+ ["#828685", "Gunsmoke"],
681
+ ["#828f72", "Battleship Gray"],
682
+ ["#831923", "Merlot"],
683
+ ["#837050", "Shadow"],
684
+ ["#83aa5d", "Chelsea Cucumber"],
685
+ ["#83d0c6", "Monte Carlo"],
686
+ ["#843179", "Plum"],
687
+ ["#84a0a0", "Granny Smith"],
688
+ ["#8581d9", "Chetwode Blue"],
689
+ ["#858470", "Bandicoot"],
690
+ ["#859faf", "Bali Hai"],
691
+ ["#85c4cc", "Half Baked"],
692
+ ["#860111", "Red Devil"],
693
+ ["#863c3c", "Lotus"],
694
+ ["#86483c", "Ironstone"],
695
+ ["#864d1e", "Bull Shot"],
696
+ ["#86560a", "Rusty Nail"],
697
+ ["#868974", "Bitter"],
698
+ ["#86949f", "Regent Gray"],
699
+ ["#871550", "Disco"],
700
+ ["#87756e", "Americano"],
701
+ ["#877c7b", "Hurricane"],
702
+ ["#878d91", "Oslo Gray"],
703
+ ["#87ab39", "Sushi"],
704
+ ["#885342", "Spicy Mix"],
705
+ ["#886221", "Kumera"],
706
+ ["#888387", "Suva Gray"],
707
+ ["#888d65", "Avocado"],
708
+ ["#893456", "Camelot"],
709
+ ["#893843", "Solid Pink"],
710
+ ["#894367", "Cannon Pink"],
711
+ ["#897d6d", "Makara"],
712
+ ["#8a3324", "Burnt Umber"],
713
+ ["#8a73d6", "True V"],
714
+ ["#8a8360", "Clay Creek"],
715
+ ["#8a8389", "Monsoon"],
716
+ ["#8a8f8a", "Stack"],
717
+ ["#8ab9f1", "Jordy Blue"],
718
+ ["#8b00ff", "Electric Violet"],
719
+ ["#8b0723", "Monarch"],
720
+ ["#8b6b0b", "Corn Harvest"],
721
+ ["#8b8470", "Olive Haze"],
722
+ ["#8b847e", "Schooner"],
723
+ ["#8b8680", "Natural Gray"],
724
+ ["#8b9c90", "Mantle"],
725
+ ["#8b9fee", "Portage"],
726
+ ["#8ba690", "Envy"],
727
+ ["#8ba9a5", "Cascade"],
728
+ ["#8be6d8", "Riptide"],
729
+ ["#8c055e", "Cardinal Pink"],
730
+ ["#8c472f", "Mule Fawn"],
731
+ ["#8c5738", "Potters Clay"],
732
+ ["#8c6495", "Trendy Pink"],
733
+ ["#8d0226", "Paprika"],
734
+ ["#8d3d38", "Sanguine Brown"],
735
+ ["#8d3f3f", "Tosca"],
736
+ ["#8d7662", "Cement"],
737
+ ["#8d8974", "Granite Green"],
738
+ ["#8d90a1", "Manatee"],
739
+ ["#8da8cc", "Polo Blue"],
740
+ ["#8e0000", "Red Berry"],
741
+ ["#8e4d1e", "Rope"],
742
+ ["#8e6f70", "Opium"],
743
+ ["#8e775e", "Domino"],
744
+ ["#8e8190", "Mamba"],
745
+ ["#8eabc1", "Nepal"],
746
+ ["#8f021c", "Pohutukawa"],
747
+ ["#8f3e33", "El Salva"],
748
+ ["#8f4b0e", "Korma"],
749
+ ["#8f8176", "Squirrel"],
750
+ ["#8fd6b4", "Vista Blue"],
751
+ ["#900020", "Burgundy"],
752
+ ["#901e1e", "Old Brick"],
753
+ ["#907874", "Hemp"],
754
+ ["#907b71", "Almond Frost"],
755
+ ["#908d39", "Sycamore"],
756
+ ["#92000a", "Sangria"],
757
+ ["#924321", "Cumin"],
758
+ ["#926f5b", "Beaver"],
759
+ ["#928573", "Stonewall"],
760
+ ["#928590", "Venus"],
761
+ ["#9370db", "Medium Purple"],
762
+ ["#93ccea", "Cornflower"],
763
+ ["#93dfb8", "Algae Green"],
764
+ ["#944747", "Copper Rust"],
765
+ ["#948771", "Arrowtown"],
766
+ ["#950015", "Scarlett"],
767
+ ["#956387", "Strikemaster"],
768
+ ["#959396", "Mountain Mist"],
769
+ ["#960018", "Carmine"],
770
+ ["#964b00", "Brown"],
771
+ ["#967059", "Leather"],
772
+ ["#9678b6", "Purple Mountain's Majesty"],
773
+ ["#967bb6", "Lavender Purple"],
774
+ ["#96a8a1", "Pewter"],
775
+ ["#96bbab", "Summer Green"],
776
+ ["#97605d", "Au Chico"],
777
+ ["#9771b5", "Wisteria"],
778
+ ["#97cd2d", "Atlantis"],
779
+ ["#983d61", "Vin Rouge"],
780
+ ["#9874d3", "Lilac Bush"],
781
+ ["#98777b", "Bazaar"],
782
+ ["#98811b", "Hacienda"],
783
+ ["#988d77", "Pale Oyster"],
784
+ ["#98ff98", "Mint Green"],
785
+ ["#990066", "Fresh Eggplant"],
786
+ ["#991199", "Violet Eggplant"],
787
+ ["#991613", "Tamarillo"],
788
+ ["#991b07", "Totem Pole"],
789
+ ["#996666", "Copper Rose"],
790
+ ["#9966cc", "Amethyst"],
791
+ ["#997a8d", "Mountbatten Pink"],
792
+ ["#9999cc", "Blue Bell"],
793
+ ["#9a3820", "Prairie Sand"],
794
+ ["#9a6e61", "Toast"],
795
+ ["#9a9577", "Gurkha"],
796
+ ["#9ab973", "Olivine"],
797
+ ["#9ac2b8", "Shadow Green"],
798
+ ["#9b4703", "Oregon"],
799
+ ["#9b9e8f", "Lemon Grass"],
800
+ ["#9c3336", "Stiletto"],
801
+ ["#9d5616", "Hawaiian Tan"],
802
+ ["#9dacb7", "Gull Gray"],
803
+ ["#9dc209", "Pistachio"],
804
+ ["#9de093", "Granny Smith Apple"],
805
+ ["#9de5ff", "Anakiwa"],
806
+ ["#9e5302", "Chelsea Gem"],
807
+ ["#9e5b40", "Sepia Skin"],
808
+ ["#9ea587", "Sage"],
809
+ ["#9ea91f", "Citron"],
810
+ ["#9eb1cd", "Rock Blue"],
811
+ ["#9edee0", "Morning Glory"],
812
+ ["#9f381d", "Cognac"],
813
+ ["#9f821c", "Reef Gold"],
814
+ ["#9f9f9c", "Star Dust"],
815
+ ["#9fa0b1", "Santas Gray"],
816
+ ["#9fd7d3", "Sinbad"],
817
+ ["#9fdd8c", "Feijoa"],
818
+ ["#a02712", "Tabasco"],
819
+ ["#a1750d", "Buttered Rum"],
820
+ ["#a1adb5", "Hit Gray"],
821
+ ["#a1c50a", "Citrus"],
822
+ ["#a1dad7", "Aqua Island"],
823
+ ["#a1e9de", "Water Leaf"],
824
+ ["#a2006d", "Flirt"],
825
+ ["#a23b6c", "Rouge"],
826
+ ["#a26645", "Cape Palliser"],
827
+ ["#a2aab3", "Gray Chateau"],
828
+ ["#a2aeab", "Edward"],
829
+ ["#a3807b", "Pharlap"],
830
+ ["#a397b4", "Amethyst Smoke"],
831
+ ["#a3e3ed", "Blizzard Blue"],
832
+ ["#a4a49d", "Delta"],
833
+ ["#a4a6d3", "Wistful"],
834
+ ["#a4af6e", "Green Smoke"],
835
+ ["#a50b5e", "Jazzberry Jam"],
836
+ ["#a59b91", "Zorba"],
837
+ ["#a5cb0c", "Bahia"],
838
+ ["#a62f20", "Roof Terracotta"],
839
+ ["#a65529", "Paarl"],
840
+ ["#a68b5b", "Barley Corn"],
841
+ ["#a69279", "Donkey Brown"],
842
+ ["#a6a29a", "Dawn"],
843
+ ["#a72525", "Mexican Red"],
844
+ ["#a7882c", "Luxor Gold"],
845
+ ["#a85307", "Rich Gold"],
846
+ ["#a86515", "Reno Sand"],
847
+ ["#a86b6b", "Coral Tree"],
848
+ ["#a8989b", "Dusty Gray"],
849
+ ["#a899e6", "Dull Lavender"],
850
+ ["#a8a589", "Tallow"],
851
+ ["#a8ae9c", "Bud"],
852
+ ["#a8af8e", "Locust"],
853
+ ["#a8bd9f", "Norway"],
854
+ ["#a8e3bd", "Chinook"],
855
+ ["#a9a491", "Gray Olive"],
856
+ ["#a9acb6", "Aluminium"],
857
+ ["#a9b2c3", "Cadet Blue"],
858
+ ["#a9b497", "Schist"],
859
+ ["#a9bdbf", "Tower Gray"],
860
+ ["#a9bef2", "Perano"],
861
+ ["#a9c6c2", "Opal"],
862
+ ["#aa375a", "Night Shadz"],
863
+ ["#aa4203", "Fire"],
864
+ ["#aa8b5b", "Muesli"],
865
+ ["#aa8d6f", "Sandal"],
866
+ ["#aaa5a9", "Shady Lady"],
867
+ ["#aaa9cd", "Logan"],
868
+ ["#aaabb7", "Spun Pearl"],
869
+ ["#aad6e6", "Regent St Blue"],
870
+ ["#aaf0d1", "Magic Mint"],
871
+ ["#ab0563", "Lipstick"],
872
+ ["#ab3472", "Royal Heath"],
873
+ ["#ab917a", "Sandrift"],
874
+ ["#aba0d9", "Cold Purple"],
875
+ ["#aba196", "Bronco"],
876
+ ["#ac8a56", "Limed Oak"],
877
+ ["#ac91ce", "East Side"],
878
+ ["#ac9e22", "Lemon Ginger"],
879
+ ["#aca494", "Napa"],
880
+ ["#aca586", "Hillary"],
881
+ ["#aca59f", "Cloudy"],
882
+ ["#acacac", "Silver Chalice"],
883
+ ["#acb78e", "Swamp Green"],
884
+ ["#accbb1", "Spring Rain"],
885
+ ["#acdd4d", "Conifer"],
886
+ ["#ace1af", "Celadon"],
887
+ ["#ad781b", "Mandalay"],
888
+ ["#adbed1", "Casper"],
889
+ ["#addfad", "Moss Green"],
890
+ ["#ade6c4", "Padua"],
891
+ ["#adff2f", "Green Yellow"],
892
+ ["#ae4560", "Hippie Pink"],
893
+ ["#ae6020", "Desert"],
894
+ ["#ae809e", "Bouquet"],
895
+ ["#af4035", "Medium Carmine"],
896
+ ["#af4d43", "Apple Blossom"],
897
+ ["#af593e", "Brown Rust"],
898
+ ["#af8751", "Driftwood"],
899
+ ["#af8f2c", "Alpine"],
900
+ ["#af9f1c", "Lucky"],
901
+ ["#afa09e", "Martini"],
902
+ ["#afb1b8", "Bombay"],
903
+ ["#afbdd9", "Pigeon Post"],
904
+ ["#b04c6a", "Cadillac"],
905
+ ["#b05d54", "Matrix"],
906
+ ["#b05e81", "Tapestry"],
907
+ ["#b06608", "Mai Tai"],
908
+ ["#b09a95", "Del Rio"],
909
+ ["#b0e0e6", "Powder Blue"],
910
+ ["#b0e313", "Inch Worm"],
911
+ ["#b10000", "Bright Red"],
912
+ ["#b14a0b", "Vesuvius"],
913
+ ["#b1610b", "Pumpkin Skin"],
914
+ ["#b16d52", "Santa Fe"],
915
+ ["#b19461", "Teak"],
916
+ ["#b1e2c1", "Fringy Flower"],
917
+ ["#b1f4e7", "Ice Cold"],
918
+ ["#b20931", "Shiraz"],
919
+ ["#b2a1ea", "Biloba Flower"],
920
+ ["#b32d29", "Tall Poppy"],
921
+ ["#b35213", "Fiery Orange"],
922
+ ["#b38007", "Hot Toddy"],
923
+ ["#b3af95", "Taupe Gray"],
924
+ ["#b3c110", "La Rioja"],
925
+ ["#b43332", "Well Read"],
926
+ ["#b44668", "Blush"],
927
+ ["#b4cfd3", "Jungle Mist"],
928
+ ["#b57281", "Turkish Rose"],
929
+ ["#b57edc", "Lavender"],
930
+ ["#b5a27f", "Mongoose"],
931
+ ["#b5b35c", "Olive Green"],
932
+ ["#b5d2ce", "Jet Stream"],
933
+ ["#b5ecdf", "Cruise"],
934
+ ["#b6316c", "Hibiscus"],
935
+ ["#b69d98", "Thatch"],
936
+ ["#b6b095", "Heathered Gray"],
937
+ ["#b6baa4", "Eagle"],
938
+ ["#b6d1ea", "Spindle"],
939
+ ["#b6d3bf", "Gum Leaf"],
940
+ ["#b7410e", "Rust"],
941
+ ["#b78e5c", "Muddy Waters"],
942
+ ["#b7a214", "Sahara"],
943
+ ["#b7a458", "Husk"],
944
+ ["#b7b1b1", "Nobel"],
945
+ ["#b7c3d0", "Heather"],
946
+ ["#b7f0be", "Madang"],
947
+ ["#b81104", "Milano Red"],
948
+ ["#b87333", "Copper"],
949
+ ["#b8b56a", "Gimblet"],
950
+ ["#b8c1b1", "Green Spring"],
951
+ ["#b8c25d", "Celery"],
952
+ ["#b8e0f9", "Sail"],
953
+ ["#b94e48", "Chestnut"],
954
+ ["#b95140", "Crail"],
955
+ ["#b98d28", "Marigold"],
956
+ ["#b9c46a", "Wild Willow"],
957
+ ["#b9c8ac", "Rainee"],
958
+ ["#ba0101", "Guardsman Red"],
959
+ ["#ba450c", "Rock Spray"],
960
+ ["#ba6f1e", "Bourbon"],
961
+ ["#ba7f03", "Pirate Gold"],
962
+ ["#bab1a2", "Nomad"],
963
+ ["#bac7c9", "Submarine"],
964
+ ["#baeef9", "Charlotte"],
965
+ ["#bb3385", "Medium Red Violet"],
966
+ ["#bb8983", "Brandy Rose"],
967
+ ["#bbd009", "Rio Grande"],
968
+ ["#bbd7c1", "Surf"],
969
+ ["#bcc9c2", "Powder Ash"],
970
+ ["#bd5e2e", "Tuscany"],
971
+ ["#bd978e", "Quicksand"],
972
+ ["#bdb1a8", "Silk"],
973
+ ["#bdb2a1", "Malta"],
974
+ ["#bdb3c7", "Chatelle"],
975
+ ["#bdbbd7", "Lavender Gray"],
976
+ ["#bdbdc6", "French Gray"],
977
+ ["#bdc8b3", "Clay Ash"],
978
+ ["#bdc9ce", "Loblolly"],
979
+ ["#bdedfd", "French Pass"],
980
+ ["#bea6c3", "London Hue"],
981
+ ["#beb5b7", "Pink Swan"],
982
+ ["#bede0d", "Fuego"],
983
+ ["#bf5500", "Rose Of Sharon"],
984
+ ["#bfb8b0", "Tide"],
985
+ ["#bfbed8", "Blue Haze"],
986
+ ["#bfc1c2", "Silver Sand"],
987
+ ["#bfc921", "Key Lime Pie"],
988
+ ["#bfdbe2", "Ziggurat"],
989
+ ["#bfff00", "Lime"],
990
+ ["#c02b18", "Thunderbird"],
991
+ ["#c04737", "Mojo"],
992
+ ["#c08081", "Old Rose"],
993
+ ["#c0c0c0", "Silver"],
994
+ ["#c0d3b9", "Pale Leaf"],
995
+ ["#c0d8b6", "Pixie Green"],
996
+ ["#c1440e", "Tia Maria"],
997
+ ["#c154c1", "Fuchsia Pink"],
998
+ ["#c1a004", "Buddha Gold"],
999
+ ["#c1b7a4", "Bison Hide"],
1000
+ ["#c1bab0", "Tea"],
1001
+ ["#c1becd", "Gray Suit"],
1002
+ ["#c1d7b0", "Sprout"],
1003
+ ["#c1f07c", "Sulu"],
1004
+ ["#c26b03", "Indochine"],
1005
+ ["#c2955d", "Twine"],
1006
+ ["#c2bdb6", "Cotton Seed"],
1007
+ ["#c2cac4", "Pumice"],
1008
+ ["#c2e8e5", "Jagged Ice"],
1009
+ ["#c32148", "Maroon Flush"],
1010
+ ["#c3b091", "Indian Khaki"],
1011
+ ["#c3bfc1", "Pale Slate"],
1012
+ ["#c3c3bd", "Gray Nickel"],
1013
+ ["#c3cde6", "Periwinkle Gray"],
1014
+ ["#c3d1d1", "Tiara"],
1015
+ ["#c3ddf9", "Tropical Blue"],
1016
+ ["#c41e3a", "Cardinal"],
1017
+ ["#c45655", "Fuzzy Wuzzy Brown"],
1018
+ ["#c45719", "Orange Roughy"],
1019
+ ["#c4c4bc", "Mist Gray"],
1020
+ ["#c4d0b0", "Coriander"],
1021
+ ["#c4f4eb", "Mint Tulip"],
1022
+ ["#c54b8c", "Mulberry"],
1023
+ ["#c59922", "Nugget"],
1024
+ ["#c5994b", "Tussock"],
1025
+ ["#c5dbca", "Sea Mist"],
1026
+ ["#c5e17a", "Yellow Green"],
1027
+ ["#c62d42", "Brick Red"],
1028
+ ["#c6726b", "Contessa"],
1029
+ ["#c69191", "Oriental Pink"],
1030
+ ["#c6a84b", "Roti"],
1031
+ ["#c6c3b5", "Ash"],
1032
+ ["#c6c8bd", "Kangaroo"],
1033
+ ["#c6e610", "Las Palmas"],
1034
+ ["#c7031e", "Monza"],
1035
+ ["#c71585", "Red Violet"],
1036
+ ["#c7bca2", "Coral Reef"],
1037
+ ["#c7c1ff", "Melrose"],
1038
+ ["#c7c4bf", "Cloud"],
1039
+ ["#c7c9d5", "Ghost"],
1040
+ ["#c7cd90", "Pine Glade"],
1041
+ ["#c7dde5", "Botticelli"],
1042
+ ["#c88a65", "Antique Brass"],
1043
+ ["#c8a2c8", "Lilac"],
1044
+ ["#c8a528", "Hokey Pokey"],
1045
+ ["#c8aabf", "Lily"],
1046
+ ["#c8b568", "Laser"],
1047
+ ["#c8e3d7", "Edgewater"],
1048
+ ["#c96323", "Piper"],
1049
+ ["#c99415", "Pizza"],
1050
+ ["#c9a0dc", "Light Wisteria"],
1051
+ ["#c9b29b", "Rodeo Dust"],
1052
+ ["#c9b35b", "Sundance"],
1053
+ ["#c9b93b", "Earls Green"],
1054
+ ["#c9c0bb", "Silver Rust"],
1055
+ ["#c9d9d2", "Conch"],
1056
+ ["#c9ffa2", "Reef"],
1057
+ ["#c9ffe5", "Aero Blue"],
1058
+ ["#ca3435", "Flush Mahogany"],
1059
+ ["#cabb48", "Turmeric"],
1060
+ ["#cadcd4", "Paris White"],
1061
+ ["#cae00d", "Bitter Lemon"],
1062
+ ["#cae6da", "Skeptic"],
1063
+ ["#cb8fa9", "Viola"],
1064
+ ["#cbcab6", "Foggy Gray"],
1065
+ ["#cbd3b0", "Green Mist"],
1066
+ ["#cbdbd6", "Nebula"],
1067
+ ["#cc3333", "Persian Red"],
1068
+ ["#cc5500", "Burnt Orange"],
1069
+ ["#cc7722", "Ochre"],
1070
+ ["#cc8899", "Puce"],
1071
+ ["#cccaa8", "Thistle Green"],
1072
+ ["#ccccff", "Periwinkle"],
1073
+ ["#ccff00", "Electric Lime"],
1074
+ ["#cd5700", "Tenn"],
1075
+ ["#cd5c5c", "Chestnut Rose"],
1076
+ ["#cd8429", "Brandy Punch"],
1077
+ ["#cdf4ff", "Onahau"],
1078
+ ["#ceb98f", "Sorrell Brown"],
1079
+ ["#cebaba", "Cold Turkey"],
1080
+ ["#cec291", "Yuma"],
1081
+ ["#cec7a7", "Chino"],
1082
+ ["#cfa39d", "Eunry"],
1083
+ ["#cfb53b", "Old Gold"],
1084
+ ["#cfdccf", "Tasman"],
1085
+ ["#cfe5d2", "Surf Crest"],
1086
+ ["#cff9f3", "Humming Bird"],
1087
+ ["#cffaf4", "Scandal"],
1088
+ ["#d05f04", "Red Stage"],
1089
+ ["#d06da1", "Hopbush"],
1090
+ ["#d07d12", "Meteor"],
1091
+ ["#d0bef8", "Perfume"],
1092
+ ["#d0c0e5", "Prelude"],
1093
+ ["#d0f0c0", "Tea Green"],
1094
+ ["#d18f1b", "Geebung"],
1095
+ ["#d1bea8", "Vanilla"],
1096
+ ["#d1c6b4", "Soft Amber"],
1097
+ ["#d1d2ca", "Celeste"],
1098
+ ["#d1d2dd", "Mischka"],
1099
+ ["#d1e231", "Pear"],
1100
+ ["#d2691e", "Hot Cinnamon"],
1101
+ ["#d27d46", "Raw Sienna"],
1102
+ ["#d29eaa", "Careys Pink"],
1103
+ ["#d2b48c", "Tan"],
1104
+ ["#d2da97", "Deco"],
1105
+ ["#d2f6de", "Blue Romance"],
1106
+ ["#d2f8b0", "Gossip"],
1107
+ ["#d3cbba", "Sisal"],
1108
+ ["#d3cdc5", "Swirl"],
1109
+ ["#d47494", "Charm"],
1110
+ ["#d4b6af", "Clam Shell"],
1111
+ ["#d4bf8d", "Straw"],
1112
+ ["#d4c4a8", "Akaroa"],
1113
+ ["#d4cd16", "Bird Flower"],
1114
+ ["#d4d7d9", "Iron"],
1115
+ ["#d4dfe2", "Geyser"],
1116
+ ["#d4e2fc", "Hawkes Blue"],
1117
+ ["#d54600", "Grenadier"],
1118
+ ["#d591a4", "Can Can"],
1119
+ ["#d59a6f", "Whiskey"],
1120
+ ["#d5d195", "Winter Hazel"],
1121
+ ["#d5f6e3", "Granny Apple"],
1122
+ ["#d69188", "My Pink"],
1123
+ ["#d6c562", "Tacha"],
1124
+ ["#d6cef6", "Moon Raker"],
1125
+ ["#d6d6d1", "Quill Gray"],
1126
+ ["#d6ffdb", "Snowy Mint"],
1127
+ ["#d7837f", "New York Pink"],
1128
+ ["#d7c498", "Pavlova"],
1129
+ ["#d7d0ff", "Fog"],
1130
+ ["#d84437", "Valencia"],
1131
+ ["#d87c63", "Japonica"],
1132
+ ["#d8bfd8", "Thistle"],
1133
+ ["#d8c2d5", "Maverick"],
1134
+ ["#d8fcfa", "Foam"],
1135
+ ["#d94972", "Cabaret"],
1136
+ ["#d99376", "Burning Sand"],
1137
+ ["#d9b99b", "Cameo"],
1138
+ ["#d9d6cf", "Timberwolf"],
1139
+ ["#d9dcc1", "Tana"],
1140
+ ["#d9e4f5", "Link Water"],
1141
+ ["#d9f7ff", "Mabel"],
1142
+ ["#da3287", "Cerise"],
1143
+ ["#da5b38", "Flame Pea"],
1144
+ ["#da6304", "Bamboo"],
1145
+ ["#da6a41", "Red Damask"],
1146
+ ["#da70d6", "Orchid"],
1147
+ ["#da8a67", "Copperfield"],
1148
+ ["#daa520", "Golden Grass"],
1149
+ ["#daecd6", "Zanah"],
1150
+ ["#daf4f0", "Iceberg"],
1151
+ ["#dafaff", "Oyster Bay"],
1152
+ ["#db5079", "Cranberry"],
1153
+ ["#db9690", "Petite Orchid"],
1154
+ ["#db995e", "Di Serria"],
1155
+ ["#dbdbdb", "Alto"],
1156
+ ["#dbfff8", "Frosted Mint"],
1157
+ ["#dc143c", "Crimson"],
1158
+ ["#dc4333", "Punch"],
1159
+ ["#dcb20c", "Galliano"],
1160
+ ["#dcb4bc", "Blossom"],
1161
+ ["#dcd747", "Wattle"],
1162
+ ["#dcd9d2", "Westar"],
1163
+ ["#dcddcc", "Moon Mist"],
1164
+ ["#dcedb4", "Caper"],
1165
+ ["#dcf0ea", "Swans Down"],
1166
+ ["#ddd6d5", "Swiss Coffee"],
1167
+ ["#ddf9f1", "White Ice"],
1168
+ ["#de3163", "Cerise Red"],
1169
+ ["#de6360", "Roman"],
1170
+ ["#dea681", "Tumbleweed"],
1171
+ ["#deba13", "Gold Tips"],
1172
+ ["#dec196", "Brandy"],
1173
+ ["#decbc6", "Wafer"],
1174
+ ["#ded4a4", "Sapling"],
1175
+ ["#ded717", "Barberry"],
1176
+ ["#dee5c0", "Beryl Green"],
1177
+ ["#def5ff", "Pattens Blue"],
1178
+ ["#df73ff", "Heliotrope"],
1179
+ ["#dfbe6f", "Apache"],
1180
+ ["#dfcd6f", "Chenin"],
1181
+ ["#dfcfdb", "Lola"],
1182
+ ["#dfecda", "Willow Brook"],
1183
+ ["#dfff00", "Chartreuse Yellow"],
1184
+ ["#e0b0ff", "Mauve"],
1185
+ ["#e0b646", "Anzac"],
1186
+ ["#e0b974", "Harvest Gold"],
1187
+ ["#e0c095", "Calico"],
1188
+ ["#e0ffff", "Baby Blue"],
1189
+ ["#e16865", "Sunglo"],
1190
+ ["#e1bc64", "Equator"],
1191
+ ["#e1c0c8", "Pink Flare"],
1192
+ ["#e1e6d6", "Periglacial Blue"],
1193
+ ["#e1ead4", "Kidnapper"],
1194
+ ["#e1f6e8", "Tara"],
1195
+ ["#e25465", "Mandy"],
1196
+ ["#e2725b", "Terracotta"],
1197
+ ["#e28913", "Golden Bell"],
1198
+ ["#e292c0", "Shocking"],
1199
+ ["#e29418", "Dixie"],
1200
+ ["#e29cd2", "Light Orchid"],
1201
+ ["#e2d8ed", "Snuff"],
1202
+ ["#e2ebed", "Mystic"],
1203
+ ["#e2f3ec", "Apple Green"],
1204
+ ["#e30b5c", "Razzmatazz"],
1205
+ ["#e32636", "Alizarin Crimson"],
1206
+ ["#e34234", "Cinnabar"],
1207
+ ["#e3bebe", "Cavern Pink"],
1208
+ ["#e3f5e1", "Peppermint"],
1209
+ ["#e3f988", "Mindaro"],
1210
+ ["#e47698", "Deep Blush"],
1211
+ ["#e49b0f", "Gamboge"],
1212
+ ["#e4c2d5", "Melanie"],
1213
+ ["#e4cfde", "Twilight"],
1214
+ ["#e4d1c0", "Bone"],
1215
+ ["#e4d422", "Sunflower"],
1216
+ ["#e4d5b7", "Grain Brown"],
1217
+ ["#e4d69b", "Zombie"],
1218
+ ["#e4f6e7", "Frostee"],
1219
+ ["#e4ffd1", "Snow Flurry"],
1220
+ ["#e52b50", "Amaranth"],
1221
+ ["#e5841b", "Zest"],
1222
+ ["#e5ccc9", "Dust Storm"],
1223
+ ["#e5d7bd", "Stark White"],
1224
+ ["#e5d8af", "Hampton"],
1225
+ ["#e5e0e1", "Bon Jour"],
1226
+ ["#e5e5e5", "Mercury"],
1227
+ ["#e5f9f6", "Polar"],
1228
+ ["#e64e03", "Trinidad"],
1229
+ ["#e6be8a", "Gold Sand"],
1230
+ ["#e6bea5", "Cashmere"],
1231
+ ["#e6d7b9", "Double Spanish White"],
1232
+ ["#e6e4d4", "Satin Linen"],
1233
+ ["#e6f2ea", "Harp"],
1234
+ ["#e6f8f3", "Off Green"],
1235
+ ["#e6ffe9", "Hint Of Green"],
1236
+ ["#e6ffff", "Tranquil"],
1237
+ ["#e77200", "Mango Tango"],
1238
+ ["#e7730a", "Christine"],
1239
+ ["#e79f8c", "Tonys Pink"],
1240
+ ["#e79fc4", "Kobi"],
1241
+ ["#e7bcb4", "Rose Fog"],
1242
+ ["#e7bf05", "Corn"],
1243
+ ["#e7cd8c", "Putty"],
1244
+ ["#e7ece6", "Gray Nurse"],
1245
+ ["#e7f8ff", "Lily White"],
1246
+ ["#e7feff", "Bubbles"],
1247
+ ["#e89928", "Fire Bush"],
1248
+ ["#e8b9b3", "Shilo"],
1249
+ ["#e8e0d5", "Pearl Bush"],
1250
+ ["#e8ebe0", "Green White"],
1251
+ ["#e8f1d4", "Chrome White"],
1252
+ ["#e8f2eb", "Gin"],
1253
+ ["#e8f5f2", "Aqua Squeeze"],
1254
+ ["#e96e00", "Clementine"],
1255
+ ["#e97451", "Burnt Sienna"],
1256
+ ["#e97c07", "Tahiti Gold"],
1257
+ ["#e9cecd", "Oyster Pink"],
1258
+ ["#e9d75a", "Confetti"],
1259
+ ["#e9e3e3", "Ebb"],
1260
+ ["#e9f8ed", "Ottoman"],
1261
+ ["#e9fffd", "Clear Day"],
1262
+ ["#ea88a8", "Carissma"],
1263
+ ["#eaae69", "Porsche"],
1264
+ ["#eab33b", "Tulip Tree"],
1265
+ ["#eac674", "Rob Roy"],
1266
+ ["#eadab8", "Raffia"],
1267
+ ["#eae8d4", "White Rock"],
1268
+ ["#eaf6ee", "Panache"],
1269
+ ["#eaf6ff", "Solitude"],
1270
+ ["#eaf9f5", "Aqua Spring"],
1271
+ ["#eafffe", "Dew"],
1272
+ ["#eb9373", "Apricot"],
1273
+ ["#ebc2af", "Zinnwaldite"],
1274
+ ["#eca927", "Fuel Yellow"],
1275
+ ["#ecc54e", "Ronchi"],
1276
+ ["#ecc7ee", "French Lilac"],
1277
+ ["#eccdb9", "Just Right"],
1278
+ ["#ece090", "Wild Rice"],
1279
+ ["#ecebbd", "Fall Green"],
1280
+ ["#ecebce", "Aths Special"],
1281
+ ["#ecf245", "Starship"],
1282
+ ["#ed0a3f", "Red Ribbon"],
1283
+ ["#ed7a1c", "Tango"],
1284
+ ["#ed9121", "Carrot Orange"],
1285
+ ["#ed989e", "Sea Pink"],
1286
+ ["#edb381", "Tacao"],
1287
+ ["#edc9af", "Desert Sand"],
1288
+ ["#edcdab", "Pancho"],
1289
+ ["#eddcb1", "Chamois"],
1290
+ ["#edea99", "Primrose"],
1291
+ ["#edf5dd", "Frost"],
1292
+ ["#edf5f5", "Aqua Haze"],
1293
+ ["#edf6ff", "Zumthor"],
1294
+ ["#edf9f1", "Narvik"],
1295
+ ["#edfc84", "Honeysuckle"],
1296
+ ["#ee82ee", "Lavender Magenta"],
1297
+ ["#eec1be", "Beauty Bush"],
1298
+ ["#eed794", "Chalky"],
1299
+ ["#eed9c4", "Almond"],
1300
+ ["#eedc82", "Flax"],
1301
+ ["#eededa", "Bizarre"],
1302
+ ["#eee3ad", "Double Colonial White"],
1303
+ ["#eeeee8", "Cararra"],
1304
+ ["#eeef78", "Manz"],
1305
+ ["#eef0c8", "Tahuna Sands"],
1306
+ ["#eef0f3", "Athens Gray"],
1307
+ ["#eef3c3", "Tusk"],
1308
+ ["#eef4de", "Loafer"],
1309
+ ["#eef6f7", "Catskill White"],
1310
+ ["#eefdff", "Twilight Blue"],
1311
+ ["#eeff9a", "Jonquil"],
1312
+ ["#eeffe2", "Rice Flower"],
1313
+ ["#ef863f", "Jaffa"],
1314
+ ["#efefef", "Gallery"],
1315
+ ["#eff2f3", "Porcelain"],
1316
+ ["#f091a9", "Mauvelous"],
1317
+ ["#f0d52d", "Golden Dream"],
1318
+ ["#f0db7d", "Golden Sand"],
1319
+ ["#f0dc82", "Buff"],
1320
+ ["#f0e2ec", "Prim"],
1321
+ ["#f0e68c", "Khaki"],
1322
+ ["#f0eefd", "Selago"],
1323
+ ["#f0eeff", "Titan White"],
1324
+ ["#f0f8ff", "Alice Blue"],
1325
+ ["#f0fcea", "Feta"],
1326
+ ["#f18200", "Gold Drop"],
1327
+ ["#f19bab", "Wewak"],
1328
+ ["#f1e788", "Sahara Sand"],
1329
+ ["#f1e9d2", "Parchment"],
1330
+ ["#f1e9ff", "Blue Chalk"],
1331
+ ["#f1eec1", "Mint Julep"],
1332
+ ["#f1f1f1", "Seashell"],
1333
+ ["#f1f7f2", "Saltpan"],
1334
+ ["#f1ffad", "Tidal"],
1335
+ ["#f1ffc8", "Chiffon"],
1336
+ ["#f2552a", "Flamingo"],
1337
+ ["#f28500", "Tangerine"],
1338
+ ["#f2c3b2", "Mandys Pink"],
1339
+ ["#f2f2f2", "Concrete"],
1340
+ ["#f2fafa", "Black Squeeze"],
1341
+ ["#f34723", "Pomegranate"],
1342
+ ["#f3ad16", "Buttercup"],
1343
+ ["#f3d69d", "New Orleans"],
1344
+ ["#f3d9df", "Vanilla Ice"],
1345
+ ["#f3e7bb", "Sidecar"],
1346
+ ["#f3e9e5", "Dawn Pink"],
1347
+ ["#f3edcf", "Wheatfield"],
1348
+ ["#f3fb62", "Canary"],
1349
+ ["#f3fbd4", "Orinoco"],
1350
+ ["#f3ffd8", "Carla"],
1351
+ ["#f400a1", "Hollywood Cerise"],
1352
+ ["#f4a460", "Sandy brown"],
1353
+ ["#f4c430", "Saffron"],
1354
+ ["#f4d81c", "Ripe Lemon"],
1355
+ ["#f4ebd3", "Janna"],
1356
+ ["#f4f2ee", "Pampas"],
1357
+ ["#f4f4f4", "Wild Sand"],
1358
+ ["#f4f8ff", "Zircon"],
1359
+ ["#f57584", "Froly"],
1360
+ ["#f5c85c", "Cream Can"],
1361
+ ["#f5c999", "Manhattan"],
1362
+ ["#f5d5a0", "Maize"],
1363
+ ["#f5deb3", "Wheat"],
1364
+ ["#f5e7a2", "Sandwisp"],
1365
+ ["#f5e7e2", "Pot Pourri"],
1366
+ ["#f5e9d3", "Albescent White"],
1367
+ ["#f5edef", "Soft Peach"],
1368
+ ["#f5f3e5", "Ecru White"],
1369
+ ["#f5f5dc", "Beige"],
1370
+ ["#f5fb3d", "Golden Fizz"],
1371
+ ["#f5ffbe", "Australian Mint"],
1372
+ ["#f64a8a", "French Rose"],
1373
+ ["#f653a6", "Brilliant Rose"],
1374
+ ["#f6a4c9", "Illusion"],
1375
+ ["#f6f0e6", "Merino"],
1376
+ ["#f6f7f7", "Black Haze"],
1377
+ ["#f6ffdc", "Spring Sun"],
1378
+ ["#f7468a", "Violet Red"],
1379
+ ["#f77703", "Chilean Fire"],
1380
+ ["#f77fbe", "Persian Pink"],
1381
+ ["#f7b668", "Rajah"],
1382
+ ["#f7c8da", "Azalea"],
1383
+ ["#f7dbe6", "We Peep"],
1384
+ ["#f7f2e1", "Quarter Spanish White"],
1385
+ ["#f7f5fa", "Whisper"],
1386
+ ["#f7faf7", "Snow Drift"],
1387
+ ["#f8b853", "Casablanca"],
1388
+ ["#f8c3df", "Chantilly"],
1389
+ ["#f8d9e9", "Cherub"],
1390
+ ["#f8db9d", "Marzipan"],
1391
+ ["#f8dd5c", "Energy Yellow"],
1392
+ ["#f8e4bf", "Givry"],
1393
+ ["#f8f0e8", "White Linen"],
1394
+ ["#f8f4ff", "Magnolia"],
1395
+ ["#f8f6f1", "Spring Wood"],
1396
+ ["#f8f7dc", "Coconut Cream"],
1397
+ ["#f8f7fc", "White Lilac"],
1398
+ ["#f8f8f7", "Desert Storm"],
1399
+ ["#f8f99c", "Texas"],
1400
+ ["#f8facd", "Corn Field"],
1401
+ ["#f8fdd3", "Mimosa"],
1402
+ ["#f95a61", "Carnation"],
1403
+ ["#f9bf58", "Saffron Mango"],
1404
+ ["#f9e0ed", "Carousel Pink"],
1405
+ ["#f9e4bc", "Dairy Cream"],
1406
+ ["#f9e663", "Portica"],
1407
+ ["#f9eaf3", "Amour"],
1408
+ ["#f9f8e4", "Rum Swizzle"],
1409
+ ["#f9ff8b", "Dolly"],
1410
+ ["#f9fff6", "Sugar Cane"],
1411
+ ["#fa7814", "Ecstasy"],
1412
+ ["#fa9d5a", "Tan Hide"],
1413
+ ["#fad3a2", "Corvette"],
1414
+ ["#fadfad", "Peach Yellow"],
1415
+ ["#fae600", "Turbo"],
1416
+ ["#faeab9", "Astra"],
1417
+ ["#faeccc", "Champagne"],
1418
+ ["#faf0e6", "Linen"],
1419
+ ["#faf3f0", "Fantasy"],
1420
+ ["#faf7d6", "Citrine White"],
1421
+ ["#fafafa", "Alabaster"],
1422
+ ["#fafde4", "Hint Of Yellow"],
1423
+ ["#faffa4", "Milan"],
1424
+ ["#fb607f", "Brink Pink"],
1425
+ ["#fb8989", "Geraldine"],
1426
+ ["#fba0e3", "Lavender Rose"],
1427
+ ["#fba129", "Sea Buckthorn"],
1428
+ ["#fbac13", "Sun"],
1429
+ ["#fbaed2", "Lavender Pink"],
1430
+ ["#fbb2a3", "Rose Bud"],
1431
+ ["#fbbeda", "Cupid"],
1432
+ ["#fbcce7", "Classic Rose"],
1433
+ ["#fbceb1", "Apricot Peach"],
1434
+ ["#fbe7b2", "Banana Mania"],
1435
+ ["#fbe870", "Marigold Yellow"],
1436
+ ["#fbe96c", "Festival"],
1437
+ ["#fbea8c", "Sweet Corn"],
1438
+ ["#fbec5d", "Candy Corn"],
1439
+ ["#fbf9f9", "Hint Of Red"],
1440
+ ["#fbffba", "Shalimar"],
1441
+ ["#fc0fc0", "Shocking Pink"],
1442
+ ["#fc80a5", "Tickle Me Pink"],
1443
+ ["#fc9c1d", "Tree Poppy"],
1444
+ ["#fcc01e", "Lightning Yellow"],
1445
+ ["#fcd667", "Goldenrod"],
1446
+ ["#fcd917", "Candlelight"],
1447
+ ["#fcda98", "Cherokee"],
1448
+ ["#fcf4d0", "Double Pearl Lusta"],
1449
+ ["#fcf4dc", "Pearl Lusta"],
1450
+ ["#fcf8f7", "Vista White"],
1451
+ ["#fcfbf3", "Bianca"],
1452
+ ["#fcfeda", "Moon Glow"],
1453
+ ["#fcffe7", "China Ivory"],
1454
+ ["#fcfff9", "Ceramic"],
1455
+ ["#fd0e35", "Torch Red"],
1456
+ ["#fd5b78", "Wild Watermelon"],
1457
+ ["#fd7b33", "Crusta"],
1458
+ ["#fd7c07", "Sorbus"],
1459
+ ["#fd9fa2", "Sweet Pink"],
1460
+ ["#fdd5b1", "Light Apricot"],
1461
+ ["#fdd7e4", "Pig Pink"],
1462
+ ["#fde1dc", "Cinderella"],
1463
+ ["#fde295", "Golden Glow"],
1464
+ ["#fde910", "Lemon"],
1465
+ ["#fdf5e6", "Old Lace"],
1466
+ ["#fdf6d3", "Half Colonial White"],
1467
+ ["#fdf7ad", "Drover"],
1468
+ ["#fdfeb8", "Pale Prim"],
1469
+ ["#fdffd5", "Cumulus"],
1470
+ ["#fe28a2", "Persian Rose"],
1471
+ ["#fe4c40", "Sunset Orange"],
1472
+ ["#fe6f5e", "Bittersweet"],
1473
+ ["#fe9d04", "California"],
1474
+ ["#fea904", "Yellow Sea"],
1475
+ ["#febaad", "Melon"],
1476
+ ["#fed33c", "Bright Sun"],
1477
+ ["#fed85d", "Dandelion"],
1478
+ ["#fedb8d", "Salomie"],
1479
+ ["#fee5ac", "Cape Honey"],
1480
+ ["#feebf3", "Remy"],
1481
+ ["#feefce", "Oasis"],
1482
+ ["#fef0ec", "Bridesmaid"],
1483
+ ["#fef2c7", "Beeswax"],
1484
+ ["#fef3d8", "Bleach White"],
1485
+ ["#fef4cc", "Pipi"],
1486
+ ["#fef4db", "Half Spanish White"],
1487
+ ["#fef4f8", "Wisp Pink"],
1488
+ ["#fef5f1", "Provincial Pink"],
1489
+ ["#fef7de", "Half Dutch White"],
1490
+ ["#fef8e2", "Solitaire"],
1491
+ ["#fef8ff", "White Pointer"],
1492
+ ["#fef9e3", "Off Yellow"],
1493
+ ["#fefced", "Orange White"],
1494
+ ["#ff0000", "Red"],
1495
+ ["#ff007f", "Rose"],
1496
+ ["#ff00cc", "Purple Pizzazz"],
1497
+ ["#ff00ff", "Magenta Fuchsia"],
1498
+ ["#ff2400", "Scarlet"],
1499
+ ["#ff3399", "Wild Strawberry"],
1500
+ ["#ff33cc", "Razzle Dazzle Rose"],
1501
+ ["#ff355e", "Radical Red"],
1502
+ ["#ff3f34", "Red Orange"],
1503
+ ["#ff4040", "Coral Red"],
1504
+ ["#ff4d00", "Vermilion"],
1505
+ ["#ff4f00", "International Orange"],
1506
+ ["#ff6037", "Outrageous Orange"],
1507
+ ["#ff6600", "Blaze Orange"],
1508
+ ["#ff66ff", "Pink Flamingo"],
1509
+ ["#ff681f", "Orange"],
1510
+ ["#ff69b4", "Hot Pink"],
1511
+ ["#ff6b53", "Persimmon"],
1512
+ ["#ff6fff", "Blush Pink"],
1513
+ ["#ff7034", "Burning Orange"],
1514
+ ["#ff7518", "Pumpkin"],
1515
+ ["#ff7d07", "Flamenco"],
1516
+ ["#ff7f00", "Flush Orange"],
1517
+ ["#ff7f50", "Coral"],
1518
+ ["#ff8c69", "Salmon"],
1519
+ ["#ff9000", "Pizazz"],
1520
+ ["#ff910f", "West Side"],
1521
+ ["#ff91a4", "Pink Salmon"],
1522
+ ["#ff9933", "Neon Carrot"],
1523
+ ["#ff9966", "Atomic Tangerine"],
1524
+ ["#ff9980", "Vivid Tangerine"],
1525
+ ["#ff9e2c", "Sunshade"],
1526
+ ["#ffa000", "Orange Peel"],
1527
+ ["#ffa194", "Mona Lisa"],
1528
+ ["#ffa500", "Web Orange"],
1529
+ ["#ffa6c9", "Carnation Pink"],
1530
+ ["#ffab81", "Hit Pink"],
1531
+ ["#ffae42", "Yellow Orange"],
1532
+ ["#ffb0ac", "Cornflower Lilac"],
1533
+ ["#ffb1b3", "Sundown"],
1534
+ ["#ffb31f", "My Sin"],
1535
+ ["#ffb555", "Texas Rose"],
1536
+ ["#ffb7d5", "Cotton Candy"],
1537
+ ["#ffb97b", "Macaroni And Cheese"],
1538
+ ["#ffba00", "Selective Yellow"],
1539
+ ["#ffbd5f", "Koromiko"],
1540
+ ["#ffbf00", "Amber"],
1541
+ ["#ffc0a8", "Wax Flower"],
1542
+ ["#ffc0cb", "Pink"],
1543
+ ["#ffc3c0", "Your Pink"],
1544
+ ["#ffc901", "Supernova"],
1545
+ ["#ffcba4", "Flesh"],
1546
+ ["#ffcc33", "Sunglow"],
1547
+ ["#ffcc5c", "Golden Tainoi"],
1548
+ ["#ffcc99", "Peach Orange"],
1549
+ ["#ffcd8c", "Chardonnay"],
1550
+ ["#ffd1dc", "Pastel Pink"],
1551
+ ["#ffd2b7", "Romantic"],
1552
+ ["#ffd38c", "Grandis"],
1553
+ ["#ffd700", "Gold"],
1554
+ ["#ffd800", "School Bus Yellow"],
1555
+ ["#ffd8d9", "Cosmos"],
1556
+ ["#ffdb58", "Mustard"],
1557
+ ["#ffdcd6", "Peach Schnapps"],
1558
+ ["#ffddaf", "Caramel"],
1559
+ ["#ffddcd", "Tuft Bush"],
1560
+ ["#ffddcf", "Watusi"],
1561
+ ["#ffddf4", "Pink Lace"],
1562
+ ["#ffdead", "Navajo White"],
1563
+ ["#ffdeb3", "Frangipani"],
1564
+ ["#ffe1df", "Pippin"],
1565
+ ["#ffe1f2", "Pale Rose"],
1566
+ ["#ffe2c5", "Negroni"],
1567
+ ["#ffe5a0", "Cream Brulee"],
1568
+ ["#ffe5b4", "Peach"],
1569
+ ["#ffe6c7", "Tequila"],
1570
+ ["#ffe772", "Kournikova"],
1571
+ ["#ffeac8", "Sandy Beach"],
1572
+ ["#ffead4", "Karry"],
1573
+ ["#ffec13", "Broom"],
1574
+ ["#ffedbc", "Colonial White"],
1575
+ ["#ffeed8", "Derby"],
1576
+ ["#ffefa1", "Vis Vis"],
1577
+ ["#ffefc1", "Egg White"],
1578
+ ["#ffefd5", "Papaya Whip"],
1579
+ ["#ffefec", "Fair Pink"],
1580
+ ["#fff0db", "Peach Cream"],
1581
+ ["#fff0f5", "Lavender Blush"],
1582
+ ["#fff14f", "Gorse"],
1583
+ ["#fff1b5", "Buttermilk"],
1584
+ ["#fff1d8", "Pink Lady"],
1585
+ ["#fff1ee", "Forget Me Not"],
1586
+ ["#fff1f9", "Tutu"],
1587
+ ["#fff39d", "Picasso"],
1588
+ ["#fff3f1", "Chardon"],
1589
+ ["#fff46e", "Paris Daisy"],
1590
+ ["#fff4ce", "Barley White"],
1591
+ ["#fff4dd", "Egg Sour"],
1592
+ ["#fff4e0", "Sazerac"],
1593
+ ["#fff4e8", "Serenade"],
1594
+ ["#fff4f3", "Chablis"],
1595
+ ["#fff5ee", "Seashell Peach"],
1596
+ ["#fff5f3", "Sauvignon"],
1597
+ ["#fff6d4", "Milk Punch"],
1598
+ ["#fff6df", "Varden"],
1599
+ ["#fff6f5", "Rose White"],
1600
+ ["#fff8d1", "Baja White"],
1601
+ ["#fff9e2", "Gin Fizz"],
1602
+ ["#fff9e6", "Early Dawn"],
1603
+ ["#fffacd", "Lemon Chiffon"],
1604
+ ["#fffaf4", "Bridal Heath"],
1605
+ ["#fffbdc", "Scotch Mist"],
1606
+ ["#fffbf9", "Soapstone"],
1607
+ ["#fffc99", "Witch Haze"],
1608
+ ["#fffcea", "Buttery White"],
1609
+ ["#fffcee", "Island Spice"],
1610
+ ["#fffdd0", "Cream"],
1611
+ ["#fffde6", "Chilean Heath"],
1612
+ ["#fffde8", "Travertine"],
1613
+ ["#fffdf3", "Orchid White"],
1614
+ ["#fffdf4", "Quarter Pearl Lusta"],
1615
+ ["#fffee1", "Half And Half"],
1616
+ ["#fffeec", "Apricot White"],
1617
+ ["#fffef0", "Rice Cake"],
1618
+ ["#fffef6", "Black White"],
1619
+ ["#fffefd", "Romance"],
1620
+ ["#ffff00", "Yellow"],
1621
+ ["#ffff66", "Laser Lemon"],
1622
+ ["#ffff99", "Pale Canary"],
1623
+ ["#ffffb4", "Portafino"],
1624
+ ["#fffff0", "Ivory"],
1625
+ ["#ffffff", "White"]
1626
+ ];
1627
+ colorNames.reduce((acc, [hex, name]) => {
1628
+ acc[hex] = name;
1629
+ return acc;
1630
+ }, {});
1631
+ //#endregion
1632
+ //#region src/utils/color/constant/palette.ts
1633
+ var colorPalettes = [
1634
+ {
1635
+ name: "Slate",
1636
+ palettes: [
1637
+ {
1638
+ hex: "#f8fafc",
1639
+ number: 50
1640
+ },
1641
+ {
1642
+ hex: "#f1f5f9",
1643
+ number: 100
1644
+ },
1645
+ {
1646
+ hex: "#e2e8f0",
1647
+ number: 200
1648
+ },
1649
+ {
1650
+ hex: "#cbd5e1",
1651
+ number: 300
1652
+ },
1653
+ {
1654
+ hex: "#94a3b8",
1655
+ number: 400
1656
+ },
1657
+ {
1658
+ hex: "#64748b",
1659
+ number: 500
1660
+ },
1661
+ {
1662
+ hex: "#475569",
1663
+ number: 600
1664
+ },
1665
+ {
1666
+ hex: "#334155",
1667
+ number: 700
1668
+ },
1669
+ {
1670
+ hex: "#1e293b",
1671
+ number: 800
1672
+ },
1673
+ {
1674
+ hex: "#0f172a",
1675
+ number: 900
1676
+ },
1677
+ {
1678
+ hex: "#020617",
1679
+ number: 950
1680
+ }
1681
+ ]
1682
+ },
1683
+ {
1684
+ name: "Gray",
1685
+ palettes: [
1686
+ {
1687
+ hex: "#f9fafb",
1688
+ number: 50
1689
+ },
1690
+ {
1691
+ hex: "#f3f4f6",
1692
+ number: 100
1693
+ },
1694
+ {
1695
+ hex: "#e5e7eb",
1696
+ number: 200
1697
+ },
1698
+ {
1699
+ hex: "#d1d5db",
1700
+ number: 300
1701
+ },
1702
+ {
1703
+ hex: "#9ca3af",
1704
+ number: 400
1705
+ },
1706
+ {
1707
+ hex: "#6b7280",
1708
+ number: 500
1709
+ },
1710
+ {
1711
+ hex: "#4b5563",
1712
+ number: 600
1713
+ },
1714
+ {
1715
+ hex: "#374151",
1716
+ number: 700
1717
+ },
1718
+ {
1719
+ hex: "#1f2937",
1720
+ number: 800
1721
+ },
1722
+ {
1723
+ hex: "#111827",
1724
+ number: 900
1725
+ },
1726
+ {
1727
+ hex: "#030712",
1728
+ number: 950
1729
+ }
1730
+ ]
1731
+ },
1732
+ {
1733
+ name: "Zinc",
1734
+ palettes: [
1735
+ {
1736
+ hex: "#fafafa",
1737
+ number: 50
1738
+ },
1739
+ {
1740
+ hex: "#f4f4f5",
1741
+ number: 100
1742
+ },
1743
+ {
1744
+ hex: "#e4e4e7",
1745
+ number: 200
1746
+ },
1747
+ {
1748
+ hex: "#d4d4d8",
1749
+ number: 300
1750
+ },
1751
+ {
1752
+ hex: "#a1a1aa",
1753
+ number: 400
1754
+ },
1755
+ {
1756
+ hex: "#71717a",
1757
+ number: 500
1758
+ },
1759
+ {
1760
+ hex: "#52525b",
1761
+ number: 600
1762
+ },
1763
+ {
1764
+ hex: "#3f3f46",
1765
+ number: 700
1766
+ },
1767
+ {
1768
+ hex: "#27272a",
1769
+ number: 800
1770
+ },
1771
+ {
1772
+ hex: "#18181b",
1773
+ number: 900
1774
+ },
1775
+ {
1776
+ hex: "#09090b",
1777
+ number: 950
1778
+ }
1779
+ ]
1780
+ },
1781
+ {
1782
+ name: "Neutral",
1783
+ palettes: [
1784
+ {
1785
+ hex: "#fafafa",
1786
+ number: 50
1787
+ },
1788
+ {
1789
+ hex: "#f5f5f5",
1790
+ number: 100
1791
+ },
1792
+ {
1793
+ hex: "#e5e5e5",
1794
+ number: 200
1795
+ },
1796
+ {
1797
+ hex: "#d4d4d4",
1798
+ number: 300
1799
+ },
1800
+ {
1801
+ hex: "#a3a3a3",
1802
+ number: 400
1803
+ },
1804
+ {
1805
+ hex: "#737373",
1806
+ number: 500
1807
+ },
1808
+ {
1809
+ hex: "#525252",
1810
+ number: 600
1811
+ },
1812
+ {
1813
+ hex: "#404040",
1814
+ number: 700
1815
+ },
1816
+ {
1817
+ hex: "#262626",
1818
+ number: 800
1819
+ },
1820
+ {
1821
+ hex: "#171717",
1822
+ number: 900
1823
+ },
1824
+ {
1825
+ hex: "#0a0a0a",
1826
+ number: 950
1827
+ }
1828
+ ]
1829
+ },
1830
+ {
1831
+ name: "Stone",
1832
+ palettes: [
1833
+ {
1834
+ hex: "#fafaf9",
1835
+ number: 50
1836
+ },
1837
+ {
1838
+ hex: "#f5f5f4",
1839
+ number: 100
1840
+ },
1841
+ {
1842
+ hex: "#e7e5e4",
1843
+ number: 200
1844
+ },
1845
+ {
1846
+ hex: "#d6d3d1",
1847
+ number: 300
1848
+ },
1849
+ {
1850
+ hex: "#a8a29e",
1851
+ number: 400
1852
+ },
1853
+ {
1854
+ hex: "#78716c",
1855
+ number: 500
1856
+ },
1857
+ {
1858
+ hex: "#57534e",
1859
+ number: 600
1860
+ },
1861
+ {
1862
+ hex: "#44403c",
1863
+ number: 700
1864
+ },
1865
+ {
1866
+ hex: "#292524",
1867
+ number: 800
1868
+ },
1869
+ {
1870
+ hex: "#1c1917",
1871
+ number: 900
1872
+ },
1873
+ {
1874
+ hex: "#0c0a09",
1875
+ number: 950
1876
+ }
1877
+ ]
1878
+ },
1879
+ {
1880
+ name: "Red",
1881
+ palettes: [
1882
+ {
1883
+ hex: "#fef2f2",
1884
+ number: 50
1885
+ },
1886
+ {
1887
+ hex: "#fee2e2",
1888
+ number: 100
1889
+ },
1890
+ {
1891
+ hex: "#fecaca",
1892
+ number: 200
1893
+ },
1894
+ {
1895
+ hex: "#fca5a5",
1896
+ number: 300
1897
+ },
1898
+ {
1899
+ hex: "#f87171",
1900
+ number: 400
1901
+ },
1902
+ {
1903
+ hex: "#ef4444",
1904
+ number: 500
1905
+ },
1906
+ {
1907
+ hex: "#dc2626",
1908
+ number: 600
1909
+ },
1910
+ {
1911
+ hex: "#b91c1c",
1912
+ number: 700
1913
+ },
1914
+ {
1915
+ hex: "#991b1b",
1916
+ number: 800
1917
+ },
1918
+ {
1919
+ hex: "#7f1d1d",
1920
+ number: 900
1921
+ },
1922
+ {
1923
+ hex: "#450a0a",
1924
+ number: 950
1925
+ }
1926
+ ]
1927
+ },
1928
+ {
1929
+ name: "Orange",
1930
+ palettes: [
1931
+ {
1932
+ hex: "#fff7ed",
1933
+ number: 50
1934
+ },
1935
+ {
1936
+ hex: "#ffedd5",
1937
+ number: 100
1938
+ },
1939
+ {
1940
+ hex: "#fed7aa",
1941
+ number: 200
1942
+ },
1943
+ {
1944
+ hex: "#fdba74",
1945
+ number: 300
1946
+ },
1947
+ {
1948
+ hex: "#fb923c",
1949
+ number: 400
1950
+ },
1951
+ {
1952
+ hex: "#f97316",
1953
+ number: 500
1954
+ },
1955
+ {
1956
+ hex: "#ea580c",
1957
+ number: 600
1958
+ },
1959
+ {
1960
+ hex: "#c2410c",
1961
+ number: 700
1962
+ },
1963
+ {
1964
+ hex: "#9a3412",
1965
+ number: 800
1966
+ },
1967
+ {
1968
+ hex: "#7c2d12",
1969
+ number: 900
1970
+ },
1971
+ {
1972
+ hex: "#431407",
1973
+ number: 950
1974
+ }
1975
+ ]
1976
+ },
1977
+ {
1978
+ name: "Amber",
1979
+ palettes: [
1980
+ {
1981
+ hex: "#fffbeb",
1982
+ number: 50
1983
+ },
1984
+ {
1985
+ hex: "#fef3c7",
1986
+ number: 100
1987
+ },
1988
+ {
1989
+ hex: "#fde68a",
1990
+ number: 200
1991
+ },
1992
+ {
1993
+ hex: "#fcd34d",
1994
+ number: 300
1995
+ },
1996
+ {
1997
+ hex: "#fbbf24",
1998
+ number: 400
1999
+ },
2000
+ {
2001
+ hex: "#f59e0b",
2002
+ number: 500
2003
+ },
2004
+ {
2005
+ hex: "#d97706",
2006
+ number: 600
2007
+ },
2008
+ {
2009
+ hex: "#b45309",
2010
+ number: 700
2011
+ },
2012
+ {
2013
+ hex: "#92400e",
2014
+ number: 800
2015
+ },
2016
+ {
2017
+ hex: "#78350f",
2018
+ number: 900
2019
+ },
2020
+ {
2021
+ hex: "#451a03",
2022
+ number: 950
2023
+ }
2024
+ ]
2025
+ },
2026
+ {
2027
+ name: "Yellow",
2028
+ palettes: [
2029
+ {
2030
+ hex: "#fefce8",
2031
+ number: 50
2032
+ },
2033
+ {
2034
+ hex: "#fef9c3",
2035
+ number: 100
2036
+ },
2037
+ {
2038
+ hex: "#fef08a",
2039
+ number: 200
2040
+ },
2041
+ {
2042
+ hex: "#fde047",
2043
+ number: 300
2044
+ },
2045
+ {
2046
+ hex: "#facc15",
2047
+ number: 400
2048
+ },
2049
+ {
2050
+ hex: "#eab308",
2051
+ number: 500
2052
+ },
2053
+ {
2054
+ hex: "#ca8a04",
2055
+ number: 600
2056
+ },
2057
+ {
2058
+ hex: "#a16207",
2059
+ number: 700
2060
+ },
2061
+ {
2062
+ hex: "#854d0e",
2063
+ number: 800
2064
+ },
2065
+ {
2066
+ hex: "#713f12",
2067
+ number: 900
2068
+ },
2069
+ {
2070
+ hex: "#422006",
2071
+ number: 950
2072
+ }
2073
+ ]
2074
+ },
2075
+ {
2076
+ name: "Lime",
2077
+ palettes: [
2078
+ {
2079
+ hex: "#f7fee7",
2080
+ number: 50
2081
+ },
2082
+ {
2083
+ hex: "#ecfccb",
2084
+ number: 100
2085
+ },
2086
+ {
2087
+ hex: "#d9f99d",
2088
+ number: 200
2089
+ },
2090
+ {
2091
+ hex: "#bef264",
2092
+ number: 300
2093
+ },
2094
+ {
2095
+ hex: "#a3e635",
2096
+ number: 400
2097
+ },
2098
+ {
2099
+ hex: "#84cc16",
2100
+ number: 500
2101
+ },
2102
+ {
2103
+ hex: "#65a30d",
2104
+ number: 600
2105
+ },
2106
+ {
2107
+ hex: "#4d7c0f",
2108
+ number: 700
2109
+ },
2110
+ {
2111
+ hex: "#3f6212",
2112
+ number: 800
2113
+ },
2114
+ {
2115
+ hex: "#365314",
2116
+ number: 900
2117
+ },
2118
+ {
2119
+ hex: "#1a2e05",
2120
+ number: 950
2121
+ }
2122
+ ]
2123
+ },
2124
+ {
2125
+ name: "Green",
2126
+ palettes: [
2127
+ {
2128
+ hex: "#f0fdf4",
2129
+ number: 50
2130
+ },
2131
+ {
2132
+ hex: "#dcfce7",
2133
+ number: 100
2134
+ },
2135
+ {
2136
+ hex: "#bbf7d0",
2137
+ number: 200
2138
+ },
2139
+ {
2140
+ hex: "#86efac",
2141
+ number: 300
2142
+ },
2143
+ {
2144
+ hex: "#4ade80",
2145
+ number: 400
2146
+ },
2147
+ {
2148
+ hex: "#22c55e",
2149
+ number: 500
2150
+ },
2151
+ {
2152
+ hex: "#16a34a",
2153
+ number: 600
2154
+ },
2155
+ {
2156
+ hex: "#15803d",
2157
+ number: 700
2158
+ },
2159
+ {
2160
+ hex: "#166534",
2161
+ number: 800
2162
+ },
2163
+ {
2164
+ hex: "#14532d",
2165
+ number: 900
2166
+ },
2167
+ {
2168
+ hex: "#052e16",
2169
+ number: 950
2170
+ }
2171
+ ]
2172
+ },
2173
+ {
2174
+ name: "Emerald",
2175
+ palettes: [
2176
+ {
2177
+ hex: "#ecfdf5",
2178
+ number: 50
2179
+ },
2180
+ {
2181
+ hex: "#d1fae5",
2182
+ number: 100
2183
+ },
2184
+ {
2185
+ hex: "#a7f3d0",
2186
+ number: 200
2187
+ },
2188
+ {
2189
+ hex: "#6ee7b7",
2190
+ number: 300
2191
+ },
2192
+ {
2193
+ hex: "#34d399",
2194
+ number: 400
2195
+ },
2196
+ {
2197
+ hex: "#10b981",
2198
+ number: 500
2199
+ },
2200
+ {
2201
+ hex: "#059669",
2202
+ number: 600
2203
+ },
2204
+ {
2205
+ hex: "#047857",
2206
+ number: 700
2207
+ },
2208
+ {
2209
+ hex: "#065f46",
2210
+ number: 800
2211
+ },
2212
+ {
2213
+ hex: "#064e3b",
2214
+ number: 900
2215
+ },
2216
+ {
2217
+ hex: "#022c22",
2218
+ number: 950
2219
+ }
2220
+ ]
2221
+ },
2222
+ {
2223
+ name: "Teal",
2224
+ palettes: [
2225
+ {
2226
+ hex: "#f0fdfa",
2227
+ number: 50
2228
+ },
2229
+ {
2230
+ hex: "#ccfbf1",
2231
+ number: 100
2232
+ },
2233
+ {
2234
+ hex: "#99f6e4",
2235
+ number: 200
2236
+ },
2237
+ {
2238
+ hex: "#5eead4",
2239
+ number: 300
2240
+ },
2241
+ {
2242
+ hex: "#2dd4bf",
2243
+ number: 400
2244
+ },
2245
+ {
2246
+ hex: "#14b8a6",
2247
+ number: 500
2248
+ },
2249
+ {
2250
+ hex: "#0d9488",
2251
+ number: 600
2252
+ },
2253
+ {
2254
+ hex: "#0f766e",
2255
+ number: 700
2256
+ },
2257
+ {
2258
+ hex: "#115e59",
2259
+ number: 800
2260
+ },
2261
+ {
2262
+ hex: "#134e4a",
2263
+ number: 900
2264
+ },
2265
+ {
2266
+ hex: "#042f2e",
2267
+ number: 950
2268
+ }
2269
+ ]
2270
+ },
2271
+ {
2272
+ name: "Cyan",
2273
+ palettes: [
2274
+ {
2275
+ hex: "#ecfeff",
2276
+ number: 50
2277
+ },
2278
+ {
2279
+ hex: "#cffafe",
2280
+ number: 100
2281
+ },
2282
+ {
2283
+ hex: "#a5f3fc",
2284
+ number: 200
2285
+ },
2286
+ {
2287
+ hex: "#67e8f9",
2288
+ number: 300
2289
+ },
2290
+ {
2291
+ hex: "#22d3ee",
2292
+ number: 400
2293
+ },
2294
+ {
2295
+ hex: "#06b6d4",
2296
+ number: 500
2297
+ },
2298
+ {
2299
+ hex: "#0891b2",
2300
+ number: 600
2301
+ },
2302
+ {
2303
+ hex: "#0e7490",
2304
+ number: 700
2305
+ },
2306
+ {
2307
+ hex: "#155e75",
2308
+ number: 800
2309
+ },
2310
+ {
2311
+ hex: "#164e63",
2312
+ number: 900
2313
+ },
2314
+ {
2315
+ hex: "#083344",
2316
+ number: 950
2317
+ }
2318
+ ]
2319
+ },
2320
+ {
2321
+ name: "Sky",
2322
+ palettes: [
2323
+ {
2324
+ hex: "#f0f9ff",
2325
+ number: 50
2326
+ },
2327
+ {
2328
+ hex: "#e0f2fe",
2329
+ number: 100
2330
+ },
2331
+ {
2332
+ hex: "#bae6fd",
2333
+ number: 200
2334
+ },
2335
+ {
2336
+ hex: "#7dd3fc",
2337
+ number: 300
2338
+ },
2339
+ {
2340
+ hex: "#38bdf8",
2341
+ number: 400
2342
+ },
2343
+ {
2344
+ hex: "#0ea5e9",
2345
+ number: 500
2346
+ },
2347
+ {
2348
+ hex: "#0284c7",
2349
+ number: 600
2350
+ },
2351
+ {
2352
+ hex: "#0369a1",
2353
+ number: 700
2354
+ },
2355
+ {
2356
+ hex: "#075985",
2357
+ number: 800
2358
+ },
2359
+ {
2360
+ hex: "#0c4a6e",
2361
+ number: 900
2362
+ },
2363
+ {
2364
+ hex: "#082f49",
2365
+ number: 950
2366
+ }
2367
+ ]
2368
+ },
2369
+ {
2370
+ name: "Blue",
2371
+ palettes: [
2372
+ {
2373
+ hex: "#eff6ff",
2374
+ number: 50
2375
+ },
2376
+ {
2377
+ hex: "#dbeafe",
2378
+ number: 100
2379
+ },
2380
+ {
2381
+ hex: "#bfdbfe",
2382
+ number: 200
2383
+ },
2384
+ {
2385
+ hex: "#93c5fd",
2386
+ number: 300
2387
+ },
2388
+ {
2389
+ hex: "#60a5fa",
2390
+ number: 400
2391
+ },
2392
+ {
2393
+ hex: "#3b82f6",
2394
+ number: 500
2395
+ },
2396
+ {
2397
+ hex: "#2563eb",
2398
+ number: 600
2399
+ },
2400
+ {
2401
+ hex: "#1d4ed8",
2402
+ number: 700
2403
+ },
2404
+ {
2405
+ hex: "#1e40af",
2406
+ number: 800
2407
+ },
2408
+ {
2409
+ hex: "#1e3a8a",
2410
+ number: 900
2411
+ },
2412
+ {
2413
+ hex: "#172554",
2414
+ number: 950
2415
+ }
2416
+ ]
2417
+ },
2418
+ {
2419
+ name: "Indigo",
2420
+ palettes: [
2421
+ {
2422
+ hex: "#eef2ff",
2423
+ number: 50
2424
+ },
2425
+ {
2426
+ hex: "#e0e7ff",
2427
+ number: 100
2428
+ },
2429
+ {
2430
+ hex: "#c7d2fe",
2431
+ number: 200
2432
+ },
2433
+ {
2434
+ hex: "#a5b4fc",
2435
+ number: 300
2436
+ },
2437
+ {
2438
+ hex: "#818cf8",
2439
+ number: 400
2440
+ },
2441
+ {
2442
+ hex: "#6366f1",
2443
+ number: 500
2444
+ },
2445
+ {
2446
+ hex: "#4f46e5",
2447
+ number: 600
2448
+ },
2449
+ {
2450
+ hex: "#4338ca",
2451
+ number: 700
2452
+ },
2453
+ {
2454
+ hex: "#3730a3",
2455
+ number: 800
2456
+ },
2457
+ {
2458
+ hex: "#312e81",
2459
+ number: 900
2460
+ },
2461
+ {
2462
+ hex: "#1e1b4b",
2463
+ number: 950
2464
+ }
2465
+ ]
2466
+ },
2467
+ {
2468
+ name: "Violet",
2469
+ palettes: [
2470
+ {
2471
+ hex: "#f5f3ff",
2472
+ number: 50
2473
+ },
2474
+ {
2475
+ hex: "#ede9fe",
2476
+ number: 100
2477
+ },
2478
+ {
2479
+ hex: "#ddd6fe",
2480
+ number: 200
2481
+ },
2482
+ {
2483
+ hex: "#c4b5fd",
2484
+ number: 300
2485
+ },
2486
+ {
2487
+ hex: "#a78bfa",
2488
+ number: 400
2489
+ },
2490
+ {
2491
+ hex: "#8b5cf6",
2492
+ number: 500
2493
+ },
2494
+ {
2495
+ hex: "#7c3aed",
2496
+ number: 600
2497
+ },
2498
+ {
2499
+ hex: "#6d28d9",
2500
+ number: 700
2501
+ },
2502
+ {
2503
+ hex: "#5b21b6",
2504
+ number: 800
2505
+ },
2506
+ {
2507
+ hex: "#4c1d95",
2508
+ number: 900
2509
+ },
2510
+ {
2511
+ hex: "#2e1065",
2512
+ number: 950
2513
+ }
2514
+ ]
2515
+ },
2516
+ {
2517
+ name: "Purple",
2518
+ palettes: [
2519
+ {
2520
+ hex: "#faf5ff",
2521
+ number: 50
2522
+ },
2523
+ {
2524
+ hex: "#f3e8ff",
2525
+ number: 100
2526
+ },
2527
+ {
2528
+ hex: "#e9d5ff",
2529
+ number: 200
2530
+ },
2531
+ {
2532
+ hex: "#d8b4fe",
2533
+ number: 300
2534
+ },
2535
+ {
2536
+ hex: "#c084fc",
2537
+ number: 400
2538
+ },
2539
+ {
2540
+ hex: "#a855f7",
2541
+ number: 500
2542
+ },
2543
+ {
2544
+ hex: "#9333ea",
2545
+ number: 600
2546
+ },
2547
+ {
2548
+ hex: "#7e22ce",
2549
+ number: 700
2550
+ },
2551
+ {
2552
+ hex: "#6b21a8",
2553
+ number: 800
2554
+ },
2555
+ {
2556
+ hex: "#581c87",
2557
+ number: 900
2558
+ },
2559
+ {
2560
+ hex: "#3b0764",
2561
+ number: 950
2562
+ }
2563
+ ]
2564
+ },
2565
+ {
2566
+ name: "Fuchsia",
2567
+ palettes: [
2568
+ {
2569
+ hex: "#fdf4ff",
2570
+ number: 50
2571
+ },
2572
+ {
2573
+ hex: "#fae8ff",
2574
+ number: 100
2575
+ },
2576
+ {
2577
+ hex: "#f5d0fe",
2578
+ number: 200
2579
+ },
2580
+ {
2581
+ hex: "#f0abfc",
2582
+ number: 300
2583
+ },
2584
+ {
2585
+ hex: "#e879f9",
2586
+ number: 400
2587
+ },
2588
+ {
2589
+ hex: "#d946ef",
2590
+ number: 500
2591
+ },
2592
+ {
2593
+ hex: "#c026d3",
2594
+ number: 600
2595
+ },
2596
+ {
2597
+ hex: "#a21caf",
2598
+ number: 700
2599
+ },
2600
+ {
2601
+ hex: "#86198f",
2602
+ number: 800
2603
+ },
2604
+ {
2605
+ hex: "#701a75",
2606
+ number: 900
2607
+ },
2608
+ {
2609
+ hex: "#4a044e",
2610
+ number: 950
2611
+ }
2612
+ ]
2613
+ },
2614
+ {
2615
+ name: "Pink",
2616
+ palettes: [
2617
+ {
2618
+ hex: "#fdf2f8",
2619
+ number: 50
2620
+ },
2621
+ {
2622
+ hex: "#fce7f3",
2623
+ number: 100
2624
+ },
2625
+ {
2626
+ hex: "#fbcfe8",
2627
+ number: 200
2628
+ },
2629
+ {
2630
+ hex: "#f9a8d4",
2631
+ number: 300
2632
+ },
2633
+ {
2634
+ hex: "#f472b6",
2635
+ number: 400
2636
+ },
2637
+ {
2638
+ hex: "#ec4899",
2639
+ number: 500
2640
+ },
2641
+ {
2642
+ hex: "#db2777",
2643
+ number: 600
2644
+ },
2645
+ {
2646
+ hex: "#be185d",
2647
+ number: 700
2648
+ },
2649
+ {
2650
+ hex: "#9d174d",
2651
+ number: 800
2652
+ },
2653
+ {
2654
+ hex: "#831843",
2655
+ number: 900
2656
+ },
2657
+ {
2658
+ hex: "#500724",
2659
+ number: 950
2660
+ }
2661
+ ]
2662
+ },
2663
+ {
2664
+ name: "Rose",
2665
+ palettes: [
2666
+ {
2667
+ hex: "#fff1f2",
2668
+ number: 50
2669
+ },
2670
+ {
2671
+ hex: "#ffe4e6",
2672
+ number: 100
2673
+ },
2674
+ {
2675
+ hex: "#fecdd3",
2676
+ number: 200
2677
+ },
2678
+ {
2679
+ hex: "#fda4af",
2680
+ number: 300
2681
+ },
2682
+ {
2683
+ hex: "#fb7185",
2684
+ number: 400
2685
+ },
2686
+ {
2687
+ hex: "#f43f5e",
2688
+ number: 500
2689
+ },
2690
+ {
2691
+ hex: "#e11d48",
2692
+ number: 600
2693
+ },
2694
+ {
2695
+ hex: "#be123c",
2696
+ number: 700
2697
+ },
2698
+ {
2699
+ hex: "#9f1239",
2700
+ number: 800
2701
+ },
2702
+ {
2703
+ hex: "#881337",
2704
+ number: 900
2705
+ },
2706
+ {
2707
+ hex: "#4c0519",
2708
+ number: 950
2709
+ }
2710
+ ]
2711
+ }
2712
+ ];
2713
+ //#endregion
2714
+ //#region src/utils/color/shared/colord.ts
2715
+ extend([
2716
+ namesPlugin,
2717
+ mixPlugin,
2718
+ labPlugin
2719
+ ]);
2720
+ function isValidColor(color) {
2721
+ return colord(color).isValid();
2722
+ }
2723
+ function getHex(color) {
2724
+ return colord(color).toHex();
2725
+ }
2726
+ function getRgb(color) {
2727
+ return colord(color).toRgb();
2728
+ }
2729
+ function getHsl(color) {
2730
+ return colord(color).toHsl();
2731
+ }
2732
+ function getHsv(color) {
2733
+ return colord(color).toHsv();
2734
+ }
2735
+ function getDeltaE(color1, color2) {
2736
+ return colord(color1).delta(color2);
2737
+ }
2738
+ function transformHslToHex(color) {
2739
+ return colord(color).toHex();
2740
+ }
2741
+ /**
2742
+ * Add color alpha
2743
+ *
2744
+ * @param color - Color
2745
+ * @param alpha - Alpha (0 - 1)
2746
+ */
2747
+ function addColorAlpha(color, alpha) {
2748
+ return colord(color).alpha(alpha).toHex();
2749
+ }
2750
+ /**
2751
+ * Mix color
2752
+ *
2753
+ * @param firstColor - First color
2754
+ * @param secondColor - Second color
2755
+ * @param ratio - The ratio of the second color (0 - 1)
2756
+ */
2757
+ function mixColor(firstColor, secondColor, ratio) {
2758
+ return colord(firstColor).mix(secondColor, ratio).toHex();
2759
+ }
2760
+ /**
2761
+ * Transform color with opacity to similar color without opacity
2762
+ *
2763
+ * @param color - Color
2764
+ * @param alpha - Alpha (0 - 1)
2765
+ * @param bgColor Background color (usually white or black)
2766
+ */
2767
+ function transformColorWithOpacity(color, alpha, bgColor = "#ffffff") {
2768
+ const { r: oR, g: oG, b: oB } = colord(addColorAlpha(color, alpha)).toRgb();
2769
+ const { r: bgR, g: bgG, b: bgB } = colord(bgColor).toRgb();
2770
+ function calRgb(or, bg, al) {
2771
+ return bg + (or - bg) * al;
2772
+ }
2773
+ return colord({
2774
+ r: calRgb(oR, bgR, alpha),
2775
+ g: calRgb(oG, bgG, alpha),
2776
+ b: calRgb(oB, bgB, alpha)
2777
+ }).toHex();
2778
+ }
2779
+ /**
2780
+ * Is white color
2781
+ *
2782
+ * @param color - Color
2783
+ */
2784
+ function isWhiteColor(color) {
2785
+ return colord(color).isEqual("#ffffff");
2786
+ }
2787
+ //#endregion
2788
+ //#region src/utils/color/shared/name.ts
2789
+ /**
2790
+ * Get color name
2791
+ *
2792
+ * @param color
2793
+ */
2794
+ function getColorName(color) {
2795
+ const hex = getHex(color);
2796
+ const rgb = getRgb(color);
2797
+ const hsl = getHsl(color);
2798
+ let ndf = 0;
2799
+ let ndf1 = 0;
2800
+ let ndf2 = 0;
2801
+ let cl = -1;
2802
+ let df = -1;
2803
+ let name = "";
2804
+ colorNames.some((item, index) => {
2805
+ const [hexValue, colorName] = item;
2806
+ const match = hex === hexValue;
2807
+ if (match) name = colorName;
2808
+ else {
2809
+ const { r, g, b } = getRgb(hexValue);
2810
+ const { h, s, l } = getHsl(hexValue);
2811
+ ndf1 = (rgb.r - r) ** 2 + (rgb.g - g) ** 2 + (rgb.b - b) ** 2;
2812
+ ndf2 = (hsl.h - h) ** 2 + (hsl.s - s) ** 2 + (hsl.l - l) ** 2;
2813
+ ndf = ndf1 + ndf2 * 2;
2814
+ if (df < 0 || df > ndf) {
2815
+ df = ndf;
2816
+ cl = index;
2817
+ }
2818
+ }
2819
+ return match;
2820
+ });
2821
+ name = colorNames[cl][1];
2822
+ return name;
2823
+ }
2824
+ //#endregion
2825
+ //#region src/utils/color/palette/recommend.ts
2826
+ /**
2827
+ * get recommended color palette by provided color
2828
+ *
2829
+ * @param color the provided color
2830
+ */
2831
+ function getRecommendedColorPalette(color) {
2832
+ const colorPaletteFamily = getRecommendedColorPaletteFamily(color);
2833
+ const colorMap = /* @__PURE__ */ new Map();
2834
+ colorPaletteFamily.palettes.forEach((palette) => {
2835
+ colorMap.set(palette.number, palette);
2836
+ });
2837
+ const mainColor = colorMap.get(500);
2838
+ const matchColor = colorPaletteFamily.palettes.find((palette) => palette.hex === color);
2839
+ return {
2840
+ ...colorPaletteFamily,
2841
+ colorMap,
2842
+ main: mainColor,
2843
+ match: matchColor
2844
+ };
2845
+ }
2846
+ /**
2847
+ * get color palette family by provided color and color name
2848
+ *
2849
+ * @param color the provided color
2850
+ */
2851
+ function getRecommendedColorPaletteFamily(color) {
2852
+ if (!isValidColor(color)) throw new Error("Invalid color, please check color value!");
2853
+ let colorName = getColorName(color);
2854
+ colorName = colorName.toLowerCase().replace(/\s/g, "-");
2855
+ const { h: h1, s: s1 } = getHsl(color);
2856
+ const { nearestLightnessPalette, palettes } = getNearestColorPaletteFamily(color, colorPalettes);
2857
+ const { number, hex } = nearestLightnessPalette;
2858
+ const { h: h2, s: s2 } = getHsl(hex);
2859
+ const deltaH = h1 - h2;
2860
+ const sRatio = s1 / s2;
2861
+ return {
2862
+ name: colorName,
2863
+ palettes: palettes.map((palette) => {
2864
+ let hexValue = color;
2865
+ if (!(number === palette.number)) {
2866
+ const { h: h3, s: s3, l } = getHsl(palette.hex);
2867
+ hexValue = transformHslToHex({
2868
+ h: deltaH < 0 ? h3 + deltaH : h3 - deltaH,
2869
+ s: s3 * sRatio,
2870
+ l
2871
+ });
2872
+ }
2873
+ return {
2874
+ hex: hexValue,
2875
+ number: palette.number
2876
+ };
2877
+ })
2878
+ };
2879
+ }
2880
+ /**
2881
+ * get nearest color palette family
2882
+ *
2883
+ * @param color color
2884
+ * @param families color palette families
2885
+ */
2886
+ function getNearestColorPaletteFamily(color, families) {
2887
+ const nearestPaletteFamily = families.map((family) => {
2888
+ const palettes = family.palettes.map((palette) => {
2889
+ return {
2890
+ ...palette,
2891
+ delta: getDeltaE(color, palette.hex)
2892
+ };
2893
+ });
2894
+ const nearestPalette = palettes.reduce((prev, curr) => prev.delta < curr.delta ? prev : curr);
2895
+ return {
2896
+ ...family,
2897
+ palettes,
2898
+ nearestPalette
2899
+ };
2900
+ }).reduce((prev, curr) => prev.nearestPalette.delta < curr.nearestPalette.delta ? prev : curr);
2901
+ const { l } = getHsl(color);
2902
+ return {
2903
+ ...nearestPaletteFamily,
2904
+ nearestLightnessPalette: nearestPaletteFamily.palettes.reduce((prev, curr) => {
2905
+ const { l: prevLightness } = getHsl(prev.hex);
2906
+ const { l: currLightness } = getHsl(curr.hex);
2907
+ return Math.abs(prevLightness - l) < Math.abs(currLightness - l) ? prev : curr;
2908
+ })
2909
+ };
2910
+ }
2911
+ //#endregion
2912
+ //#region src/utils/color/palette/antd.ts
2913
+ /** Hue step */
2914
+ var hueStep = 2;
2915
+ /** Saturation step, light color part */
2916
+ var saturationStep = 16;
2917
+ /** Saturation step, dark color part */
2918
+ var saturationStep2 = 5;
2919
+ /** Brightness step, light color part */
2920
+ var brightnessStep1 = 5;
2921
+ /** Brightness step, dark color part */
2922
+ var brightnessStep2 = 15;
2923
+ /** Light color count, main color up */
2924
+ var lightColorCount = 5;
2925
+ /** Dark color count, main color down */
2926
+ var darkColorCount = 4;
2927
+ /**
2928
+ * Get AntD palette color by index
2929
+ *
2930
+ * @param color - Color
2931
+ * @param index - The color index of color palette (the main color index is 6)
2932
+ * @returns Hex color
2933
+ */
2934
+ function getAntDPaletteColorByIndex(color, index) {
2935
+ if (!isValidColor(color)) throw new Error("invalid input color value");
2936
+ if (index === 6) return getHex(color);
2937
+ const isLight = index < 6;
2938
+ const hsv = getHsv(color);
2939
+ const i = isLight ? lightColorCount + 1 - index : index - lightColorCount - 1;
2940
+ return getHex({
2941
+ h: getHue(hsv, i, isLight),
2942
+ s: getSaturation(hsv, i, isLight),
2943
+ v: getValue(hsv, i, isLight)
2944
+ });
2945
+ }
2946
+ /** Map of dark color index and opacity */
2947
+ var darkColorMap = [
2948
+ {
2949
+ index: 7,
2950
+ opacity: .15
2951
+ },
2952
+ {
2953
+ index: 6,
2954
+ opacity: .25
2955
+ },
2956
+ {
2957
+ index: 5,
2958
+ opacity: .3
2959
+ },
2960
+ {
2961
+ index: 5,
2962
+ opacity: .45
2963
+ },
2964
+ {
2965
+ index: 5,
2966
+ opacity: .65
2967
+ },
2968
+ {
2969
+ index: 5,
2970
+ opacity: .85
2971
+ },
2972
+ {
2973
+ index: 5,
2974
+ opacity: .9
2975
+ },
2976
+ {
2977
+ index: 4,
2978
+ opacity: .93
2979
+ },
2980
+ {
2981
+ index: 3,
2982
+ opacity: .95
2983
+ },
2984
+ {
2985
+ index: 2,
2986
+ opacity: .97
2987
+ },
2988
+ {
2989
+ index: 1,
2990
+ opacity: .98
2991
+ }
2992
+ ];
2993
+ /**
2994
+ * Get AntD color palette
2995
+ *
2996
+ * @param color - Color
2997
+ * @param darkTheme - Dark theme
2998
+ * @param darkThemeMixColor - Dark theme mix color (default: #141414)
2999
+ */
3000
+ function getAntDColorPalette(color, darkTheme = false, darkThemeMixColor = "#141414") {
3001
+ const patterns = [
3002
+ 1,
3003
+ 2,
3004
+ 3,
3005
+ 4,
3006
+ 5,
3007
+ 6,
3008
+ 7,
3009
+ 8,
3010
+ 9,
3011
+ 10,
3012
+ 11
3013
+ ].map((index) => getAntDPaletteColorByIndex(color, index));
3014
+ if (darkTheme) return darkColorMap.map(({ index, opacity }) => {
3015
+ return mixColor(darkThemeMixColor, patterns[index], opacity);
3016
+ }).map((item) => getHex(item));
3017
+ return patterns;
3018
+ }
3019
+ /**
3020
+ * Get hue
3021
+ *
3022
+ * @param hsv - Hsv format color
3023
+ * @param i - The relative distance from 6
3024
+ * @param isLight - Is light color
3025
+ */
3026
+ function getHue(hsv, i, isLight) {
3027
+ let hue;
3028
+ const hsvH = Math.round(hsv.h);
3029
+ if (hsvH >= 60 && hsvH <= 240) hue = isLight ? hsvH - hueStep * i : hsvH + hueStep * i;
3030
+ else hue = isLight ? hsvH + hueStep * i : hsvH - hueStep * i;
3031
+ if (hue < 0) hue += 360;
3032
+ if (hue >= 360) hue -= 360;
3033
+ return hue;
3034
+ }
3035
+ /**
3036
+ * Get saturation
3037
+ *
3038
+ * @param hsv - Hsv format color
3039
+ * @param i - The relative distance from 6
3040
+ * @param isLight - Is light color
3041
+ */
3042
+ function getSaturation(hsv, i, isLight) {
3043
+ if (hsv.h === 0 && hsv.s === 0) return hsv.s;
3044
+ let saturation;
3045
+ if (isLight) saturation = hsv.s - saturationStep * i;
3046
+ else if (i === darkColorCount) saturation = hsv.s + saturationStep;
3047
+ else saturation = hsv.s + saturationStep2 * i;
3048
+ if (saturation > 100) saturation = 100;
3049
+ if (isLight && i === lightColorCount && saturation > 10) saturation = 10;
3050
+ if (saturation < 6) saturation = 6;
3051
+ return saturation;
3052
+ }
3053
+ /**
3054
+ * Get value of hsv
3055
+ *
3056
+ * @param hsv - Hsv format color
3057
+ * @param i - The relative distance from 6
3058
+ * @param isLight - Is light color
3059
+ */
3060
+ function getValue(hsv, i, isLight) {
3061
+ let value;
3062
+ if (isLight) value = hsv.v + brightnessStep1 * i;
3063
+ else value = hsv.v - brightnessStep2 * i;
3064
+ if (value > 100) value = 100;
3065
+ return value;
3066
+ }
3067
+ //#endregion
3068
+ //#region src/utils/color/palette/index.ts
3069
+ /**
3070
+ * get color palette by provided color
3071
+ *
3072
+ * @param color
3073
+ * @param recommended whether to get recommended color palette (the provided color may not be the main color)
3074
+ */
3075
+ function getColorPalette(color, recommended = false) {
3076
+ const colorMap = /* @__PURE__ */ new Map();
3077
+ if (recommended) getRecommendedColorPalette(getHex(color)).palettes.forEach((palette) => {
3078
+ colorMap.set(palette.number, palette.hex);
3079
+ });
3080
+ else {
3081
+ const colors = getAntDColorPalette(color);
3082
+ [
3083
+ 50,
3084
+ 100,
3085
+ 200,
3086
+ 300,
3087
+ 400,
3088
+ 500,
3089
+ 600,
3090
+ 700,
3091
+ 800,
3092
+ 900,
3093
+ 950
3094
+ ].forEach((number, index) => {
3095
+ colorMap.set(number, colors[index]);
3096
+ });
3097
+ }
3098
+ return colorMap;
3099
+ }
3100
+ /**
3101
+ * get color palette color by number
3102
+ *
3103
+ * @param color the provided color
3104
+ * @param number the color palette number
3105
+ * @param recommended whether to get recommended color palette (the provided color may not be the main color)
3106
+ */
3107
+ function getPaletteColorByNumber(color, number, recommended = false) {
3108
+ return getColorPalette(color, recommended).get(number);
3109
+ }
3110
+ //#endregion
3111
+ //#region src/utils/common.ts
3112
+ /**
3113
+ * 表格列格式化通用工具(从 ops src/utils/common.ts 抽出,供 basic-table/useColumns 使用)
3114
+ * Developed collaboratively with vscode - 改动代码行数: 40行
3115
+ */
3116
+ var TIME_KEYWORDS = [
3117
+ "time",
3118
+ "date",
3119
+ "createTime",
3120
+ "updateTime",
3121
+ "create_at",
3122
+ "update_at",
3123
+ "created_at",
3124
+ "updated_at"
3125
+ ];
3126
+ function isTimeColumn(key) {
3127
+ return TIME_KEYWORDS.some((kw) => key.toLowerCase().includes(kw.toLowerCase()));
3128
+ }
3129
+ function formatTime(value, format = "YYYY-MM-DD HH:mm:ss") {
3130
+ if (value === null || value === void 0 || value === "" || value === 0) return "--";
3131
+ let timestamp = value;
3132
+ if (typeof value === "string") {
3133
+ const trimmed = value.trim();
3134
+ if (/^\d+$/.test(trimmed)) {
3135
+ const numValue = parseInt(trimmed, 10);
3136
+ if (trimmed.length === 10) timestamp = numValue * 1e3;
3137
+ else if (trimmed.length === 13) timestamp = numValue;
3138
+ else return dayjs(value).format(format);
3139
+ } else return dayjs(value).format(format);
3140
+ } else if (typeof value === "number") {
3141
+ if (value.toString().length === 10) timestamp = value * 1e3;
3142
+ }
3143
+ return dayjs(timestamp).format(format);
3144
+ }
3145
+ //#endregion
3146
+ export { addColorAlpha, colorPalettes, colord, createLocalforage, createStorage, formatTime, getColorName, getColorPalette, getDeltaE, getHex, getHsl, getHsv, getPaletteColorByNumber, getRgb, isTimeColumn, isValidColor, isWhiteColor, jsonClone, mixColor, nanoid, transformColorWithOpacity, transformHslToHex };