chromonym 1.0.0
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.
- package/LICENSE +21 -0
- package/README.md +27 -0
- package/dist/index.d.ts +338 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +268 -0
- package/dist/index.js.map +1 -0
- package/package.json +62 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jesse Harlin (the-simian)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# chromonym
|
|
2
|
+
|
|
3
|
+
Color naming tool — resolve RGB or Hex color input to a human-readable name.
|
|
4
|
+
|
|
5
|
+
> Scaffold stage — public API is not yet defined.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
bun add chromonym
|
|
11
|
+
# or
|
|
12
|
+
npm install chromonym
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Development
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
bun install
|
|
19
|
+
bun run lint # biome
|
|
20
|
+
bun run typecheck # tsgo (native-preview)
|
|
21
|
+
bun test
|
|
22
|
+
bun run build
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## License
|
|
26
|
+
|
|
27
|
+
MIT © [the-simian](https://github.com/the-simian)
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
export type HexColor = `#${string}`;
|
|
2
|
+
export type RgbString = `rgb(${number},${number},${number})`;
|
|
3
|
+
export type RgbTuple = readonly [r: number, g: number, b: number];
|
|
4
|
+
export type RgbObject = {
|
|
5
|
+
r: number;
|
|
6
|
+
g: number;
|
|
7
|
+
b: number;
|
|
8
|
+
};
|
|
9
|
+
export type RgbInput = RgbString | RgbTuple | RgbObject;
|
|
10
|
+
export type ColorInput = HexColor | RgbInput;
|
|
11
|
+
export declare const colorGroups: {
|
|
12
|
+
readonly red: readonly ["rgb(102,0,0)", "rgb(153,0,0)", "rgb(204,0,0)", "rgb(255,0,0)", "rgb(255,51,51)", "rgb(255,102,102)", "rgb(255,153,153)"];
|
|
13
|
+
readonly orange: readonly ["rgb(102,51,0)", "rgb(153,76,0)", "rgb(204,102,0)", "rgb(255,128,0)", "rgb(255,153,51)", "rgb(255,178,102)", "rgb(255,204,153)"];
|
|
14
|
+
readonly yellow: readonly ["rgb(102,102,0)", "rgb(153,153,0)", "rgb(204,204,0)", "rgb(255,255,0)", "rgb(255,255,51)", "rgb(255,255,102)", "rgb(255,255,153)", "rgb(255,255,204)"];
|
|
15
|
+
readonly green: readonly ["rgb(124,252,0)", "rgb(127,255,0)", "rgb(50,205,50)", "rgb(0,255,0)", "rgb(34,139,34)", "rgb(0,128,0)", "rgb(0,100,0)", "rgb(173,255,47)", "rgb(154,205,50)", "rgb(0,255,127)", "rgb(0,250,154)", "rgb(144,238,144)", "rgb(152,251,152)", "rgb(143,188,143)", "rgb(60,179,113)", "rgb(46,139,87)", "rgb(128,128,0)", "rgb(85,107,47)", "rgb(107,142,35)", "rgb(2,166,165)", "rgb(13,125,126)"];
|
|
16
|
+
readonly blue: readonly ["rgb(0,0,102)", "rgb(0,0,153)", "rgb(0,0,255)", "rgb(51,51,255)", "rgb(102,102,255)", "rgb(0,51,102)", "rgb(0,76,153)", "rgb(0,102,204)", "rgb(0,128,255)", "rgb(51,153,255)", "rgb(102,178,255)", "rgb(0,204,204)", "rgb(0,255,255)", "rgb(51,255,255)", "rgb(153,255,255)", "rgb(204,229,255)", "rgb(196,218,242)"];
|
|
17
|
+
readonly white: readonly ["rgb(255,255,255)", "rgb(255,250,250)", "rgb(240,255,240)", "rgb(245,255,250)", "rgb(255,255,240)", "rgb(196,222,237)", "rgb(254,249,191)", "rgb(169,199,209)"];
|
|
18
|
+
readonly pink: readonly ["rgb(51,0,51)", "rgb(102,0,102)", "rgb(153,0,153)", "rgb(204,0,204)", "rgb(255,0,255)", "rgb(255,51,255)", "rgb(255,102,255)", "rgb(255,153,255)", "rgb(255,204,255)", "rgb(251,140,173)", "rgb(211,78,125)"];
|
|
19
|
+
readonly black: readonly ["rgb(0,0,0)", "rgb(32,32,32)"];
|
|
20
|
+
readonly grey: readonly ["rgb(64,64,64)", "rgb(96,96,96)", "rgb(128,128,128)", "rgb(160,160,160)", "rgb(192,192,192)"];
|
|
21
|
+
readonly purple: readonly ["rgb(51,0,102)", "rgb(76,0,153)", "rgb(102,0,204)", "rgb(127,0,255)", "rgb(153,51,255)", "rgb(178,102,255)", "rgb(204,153,255)"];
|
|
22
|
+
};
|
|
23
|
+
export type ColorGroupName = keyof typeof colorGroups;
|
|
24
|
+
export declare const cssColorList: {
|
|
25
|
+
readonly aliceblue: '#f0f8ff';
|
|
26
|
+
readonly antiquewhite: '#faebd7';
|
|
27
|
+
readonly aqua: '#00ffff';
|
|
28
|
+
readonly aquamarine: '#7fffd4';
|
|
29
|
+
readonly azure: '#f0ffff';
|
|
30
|
+
readonly beige: '#f5f5dc';
|
|
31
|
+
readonly bisque: '#ffe4c4';
|
|
32
|
+
readonly black: '#000000';
|
|
33
|
+
readonly blanchedalmond: '#ffebcd';
|
|
34
|
+
readonly blue: '#0000ff';
|
|
35
|
+
readonly blueviolet: '#8a2be2';
|
|
36
|
+
readonly brown: '#a52a2a';
|
|
37
|
+
readonly burlywood: '#deb887';
|
|
38
|
+
readonly cadetblue: '#5f9ea0';
|
|
39
|
+
readonly chartreuse: '#7fff00';
|
|
40
|
+
readonly chocolate: '#d2691e';
|
|
41
|
+
readonly coral: '#ff7f50';
|
|
42
|
+
readonly cornflowerblue: '#6495ed';
|
|
43
|
+
readonly cornsilk: '#fff8dc';
|
|
44
|
+
readonly crimson: '#dc143c';
|
|
45
|
+
readonly cyan: '#00ffff';
|
|
46
|
+
readonly darkblue: '#00008b';
|
|
47
|
+
readonly darkcyan: '#008b8b';
|
|
48
|
+
readonly darkgoldenrod: '#b8860b';
|
|
49
|
+
readonly darkgray: '#a9a9a9';
|
|
50
|
+
readonly darkgreen: '#006400';
|
|
51
|
+
readonly darkgrey: '#a9a9a9';
|
|
52
|
+
readonly darkkhaki: '#bdb76b';
|
|
53
|
+
readonly darkmagenta: '#8b008b';
|
|
54
|
+
readonly darkolivegreen: '#556b2f';
|
|
55
|
+
readonly darkorange: '#ff8c00';
|
|
56
|
+
readonly darkorchid: '#9932cc';
|
|
57
|
+
readonly darkred: '#8b0000';
|
|
58
|
+
readonly darksalmon: '#e9967a';
|
|
59
|
+
readonly darkseagreen: '#8fbc8f';
|
|
60
|
+
readonly darkslateblue: '#483d8b';
|
|
61
|
+
readonly darkslategray: '#2f4f4f';
|
|
62
|
+
readonly darkslategrey: '#2f4f4f';
|
|
63
|
+
readonly darkturquoise: '#00ced1';
|
|
64
|
+
readonly darkviolet: '#9400d3';
|
|
65
|
+
readonly deeppink: '#ff1493';
|
|
66
|
+
readonly deepskyblue: '#00bfff';
|
|
67
|
+
readonly dimgray: '#696969';
|
|
68
|
+
readonly dimgrey: '#696969';
|
|
69
|
+
readonly dodgerblue: '#1e90ff';
|
|
70
|
+
readonly firebrick: '#b22222';
|
|
71
|
+
readonly floralwhite: '#fffaf0';
|
|
72
|
+
readonly forestgreen: '#228b22';
|
|
73
|
+
readonly fuchsia: '#ff00ff';
|
|
74
|
+
readonly gainsboro: '#dcdcdc';
|
|
75
|
+
readonly ghostwhite: '#f8f8ff';
|
|
76
|
+
readonly goldenrod: '#daa520';
|
|
77
|
+
readonly gold: '#ffd700';
|
|
78
|
+
readonly gray: '#808080';
|
|
79
|
+
readonly green: '#008000';
|
|
80
|
+
readonly greenyellow: '#adff2f';
|
|
81
|
+
readonly grey: '#808080';
|
|
82
|
+
readonly honeydew: '#f0fff0';
|
|
83
|
+
readonly hotpink: '#ff69b4';
|
|
84
|
+
readonly indianred: '#cd5c5c';
|
|
85
|
+
readonly indigo: '#4b0082';
|
|
86
|
+
readonly ivory: '#fffff0';
|
|
87
|
+
readonly khaki: '#f0e68c';
|
|
88
|
+
readonly lavenderblush: '#fff0f5';
|
|
89
|
+
readonly lavender: '#e6e6fa';
|
|
90
|
+
readonly lawngreen: '#7cfc00';
|
|
91
|
+
readonly lemonchiffon: '#fffacd';
|
|
92
|
+
readonly lightblue: '#add8e6';
|
|
93
|
+
readonly lightcoral: '#f08080';
|
|
94
|
+
readonly lightcyan: '#e0ffff';
|
|
95
|
+
readonly lightgoldenrodyellow: '#fafad2';
|
|
96
|
+
readonly lightgray: '#d3d3d3';
|
|
97
|
+
readonly lightgreen: '#90ee90';
|
|
98
|
+
readonly lightgrey: '#d3d3d3';
|
|
99
|
+
readonly lightpink: '#ffb6c1';
|
|
100
|
+
readonly lightsalmon: '#ffa07a';
|
|
101
|
+
readonly lightseagreen: '#20b2aa';
|
|
102
|
+
readonly lightskyblue: '#87cefa';
|
|
103
|
+
readonly lightslategray: '#778899';
|
|
104
|
+
readonly lightslategrey: '#778899';
|
|
105
|
+
readonly lightsteelblue: '#b0c4de';
|
|
106
|
+
readonly lightyellow: '#ffffe0';
|
|
107
|
+
readonly lime: '#00ff00';
|
|
108
|
+
readonly limegreen: '#32cd32';
|
|
109
|
+
readonly linen: '#faf0e6';
|
|
110
|
+
readonly magenta: '#ff00ff';
|
|
111
|
+
readonly maroon: '#800000';
|
|
112
|
+
readonly mediumaquamarine: '#66cdaa';
|
|
113
|
+
readonly mediumblue: '#0000cd';
|
|
114
|
+
readonly mediumorchid: '#ba55d3';
|
|
115
|
+
readonly mediumpurple: '#9370db';
|
|
116
|
+
readonly mediumseagreen: '#3cb371';
|
|
117
|
+
readonly mediumslateblue: '#7b68ee';
|
|
118
|
+
readonly mediumspringgreen: '#00fa9a';
|
|
119
|
+
readonly mediumturquoise: '#48d1cc';
|
|
120
|
+
readonly mediumvioletred: '#c71585';
|
|
121
|
+
readonly midnightblue: '#191970';
|
|
122
|
+
readonly mintcream: '#f5fffa';
|
|
123
|
+
readonly mistyrose: '#ffe4e1';
|
|
124
|
+
readonly moccasin: '#ffe4b5';
|
|
125
|
+
readonly navajowhite: '#ffdead';
|
|
126
|
+
readonly navy: '#000080';
|
|
127
|
+
readonly oldlace: '#fdf5e6';
|
|
128
|
+
readonly olive: '#808000';
|
|
129
|
+
readonly olivedrab: '#6b8e23';
|
|
130
|
+
readonly orange: '#ffa500';
|
|
131
|
+
readonly orangered: '#ff4500';
|
|
132
|
+
readonly orchid: '#da70d6';
|
|
133
|
+
readonly palegoldenrod: '#eee8aa';
|
|
134
|
+
readonly palegreen: '#98fb98';
|
|
135
|
+
readonly paleturquoise: '#afeeee';
|
|
136
|
+
readonly palevioletred: '#db7093';
|
|
137
|
+
readonly papayawhip: '#ffefd5';
|
|
138
|
+
readonly peachpuff: '#ffdab9';
|
|
139
|
+
readonly peru: '#cd853f';
|
|
140
|
+
readonly pink: '#ffc0cb';
|
|
141
|
+
readonly plum: '#dda0dd';
|
|
142
|
+
readonly powderblue: '#b0e0e6';
|
|
143
|
+
readonly purple: '#800080';
|
|
144
|
+
readonly rebeccapurple: '#663399';
|
|
145
|
+
readonly red: '#ff0000';
|
|
146
|
+
readonly rosybrown: '#bc8f8f';
|
|
147
|
+
readonly royalblue: '#4169e1';
|
|
148
|
+
readonly saddlebrown: '#8b4513';
|
|
149
|
+
readonly salmon: '#fa8072';
|
|
150
|
+
readonly sandybrown: '#f4a460';
|
|
151
|
+
readonly seagreen: '#2e8b57';
|
|
152
|
+
readonly seashell: '#fff5ee';
|
|
153
|
+
readonly sienna: '#a0522d';
|
|
154
|
+
readonly silver: '#c0c0c0';
|
|
155
|
+
readonly skyblue: '#87ceeb';
|
|
156
|
+
readonly slateblue: '#6a5acd';
|
|
157
|
+
readonly slategray: '#708090';
|
|
158
|
+
readonly slategrey: '#708090';
|
|
159
|
+
readonly snow: '#fffafa';
|
|
160
|
+
readonly springgreen: '#00ff7f';
|
|
161
|
+
readonly steelblue: '#4682b4';
|
|
162
|
+
readonly tan: '#d2b48c';
|
|
163
|
+
readonly teal: '#008080';
|
|
164
|
+
readonly thistle: '#d8bfd8';
|
|
165
|
+
readonly tomato: '#ff6347';
|
|
166
|
+
readonly turquoise: '#40e0d0';
|
|
167
|
+
readonly violet: '#ee82ee';
|
|
168
|
+
readonly wheat: '#f5deb3';
|
|
169
|
+
readonly white: '#ffffff';
|
|
170
|
+
readonly whitesmoke: '#f5f5f5';
|
|
171
|
+
readonly yellow: '#ffff00';
|
|
172
|
+
readonly yellowgreen: '#9acd32';
|
|
173
|
+
};
|
|
174
|
+
export type CssColorName = keyof typeof cssColorList;
|
|
175
|
+
export declare const colors: {
|
|
176
|
+
readonly red: readonly ["rgb(102,0,0)", "rgb(153,0,0)", "rgb(204,0,0)", "rgb(255,0,0)", "rgb(255,51,51)", "rgb(255,102,102)", "rgb(255,153,153)"];
|
|
177
|
+
readonly orange: readonly ["rgb(102,51,0)", "rgb(153,76,0)", "rgb(204,102,0)", "rgb(255,128,0)", "rgb(255,153,51)", "rgb(255,178,102)", "rgb(255,204,153)"];
|
|
178
|
+
readonly yellow: readonly ["rgb(102,102,0)", "rgb(153,153,0)", "rgb(204,204,0)", "rgb(255,255,0)", "rgb(255,255,51)", "rgb(255,255,102)", "rgb(255,255,153)", "rgb(255,255,204)"];
|
|
179
|
+
readonly green: readonly ["rgb(124,252,0)", "rgb(127,255,0)", "rgb(50,205,50)", "rgb(0,255,0)", "rgb(34,139,34)", "rgb(0,128,0)", "rgb(0,100,0)", "rgb(173,255,47)", "rgb(154,205,50)", "rgb(0,255,127)", "rgb(0,250,154)", "rgb(144,238,144)", "rgb(152,251,152)", "rgb(143,188,143)", "rgb(60,179,113)", "rgb(46,139,87)", "rgb(128,128,0)", "rgb(85,107,47)", "rgb(107,142,35)", "rgb(2,166,165)", "rgb(13,125,126)"];
|
|
180
|
+
readonly blue: readonly ["rgb(0,0,102)", "rgb(0,0,153)", "rgb(0,0,255)", "rgb(51,51,255)", "rgb(102,102,255)", "rgb(0,51,102)", "rgb(0,76,153)", "rgb(0,102,204)", "rgb(0,128,255)", "rgb(51,153,255)", "rgb(102,178,255)", "rgb(0,204,204)", "rgb(0,255,255)", "rgb(51,255,255)", "rgb(153,255,255)", "rgb(204,229,255)", "rgb(196,218,242)"];
|
|
181
|
+
readonly white: readonly ["rgb(255,255,255)", "rgb(255,250,250)", "rgb(240,255,240)", "rgb(245,255,250)", "rgb(255,255,240)", "rgb(196,222,237)", "rgb(254,249,191)", "rgb(169,199,209)"];
|
|
182
|
+
readonly pink: readonly ["rgb(51,0,51)", "rgb(102,0,102)", "rgb(153,0,153)", "rgb(204,0,204)", "rgb(255,0,255)", "rgb(255,51,255)", "rgb(255,102,255)", "rgb(255,153,255)", "rgb(255,204,255)", "rgb(251,140,173)", "rgb(211,78,125)"];
|
|
183
|
+
readonly black: readonly ["rgb(0,0,0)", "rgb(32,32,32)"];
|
|
184
|
+
readonly grey: readonly ["rgb(64,64,64)", "rgb(96,96,96)", "rgb(128,128,128)", "rgb(160,160,160)", "rgb(192,192,192)"];
|
|
185
|
+
readonly purple: readonly ["rgb(51,0,102)", "rgb(76,0,153)", "rgb(102,0,204)", "rgb(127,0,255)", "rgb(153,51,255)", "rgb(178,102,255)", "rgb(204,153,255)"];
|
|
186
|
+
readonly cssColorList: {
|
|
187
|
+
readonly aliceblue: '#f0f8ff';
|
|
188
|
+
readonly antiquewhite: '#faebd7';
|
|
189
|
+
readonly aqua: '#00ffff';
|
|
190
|
+
readonly aquamarine: '#7fffd4';
|
|
191
|
+
readonly azure: '#f0ffff';
|
|
192
|
+
readonly beige: '#f5f5dc';
|
|
193
|
+
readonly bisque: '#ffe4c4';
|
|
194
|
+
readonly black: '#000000';
|
|
195
|
+
readonly blanchedalmond: '#ffebcd';
|
|
196
|
+
readonly blue: '#0000ff';
|
|
197
|
+
readonly blueviolet: '#8a2be2';
|
|
198
|
+
readonly brown: '#a52a2a';
|
|
199
|
+
readonly burlywood: '#deb887';
|
|
200
|
+
readonly cadetblue: '#5f9ea0';
|
|
201
|
+
readonly chartreuse: '#7fff00';
|
|
202
|
+
readonly chocolate: '#d2691e';
|
|
203
|
+
readonly coral: '#ff7f50';
|
|
204
|
+
readonly cornflowerblue: '#6495ed';
|
|
205
|
+
readonly cornsilk: '#fff8dc';
|
|
206
|
+
readonly crimson: '#dc143c';
|
|
207
|
+
readonly cyan: '#00ffff';
|
|
208
|
+
readonly darkblue: '#00008b';
|
|
209
|
+
readonly darkcyan: '#008b8b';
|
|
210
|
+
readonly darkgoldenrod: '#b8860b';
|
|
211
|
+
readonly darkgray: '#a9a9a9';
|
|
212
|
+
readonly darkgreen: '#006400';
|
|
213
|
+
readonly darkgrey: '#a9a9a9';
|
|
214
|
+
readonly darkkhaki: '#bdb76b';
|
|
215
|
+
readonly darkmagenta: '#8b008b';
|
|
216
|
+
readonly darkolivegreen: '#556b2f';
|
|
217
|
+
readonly darkorange: '#ff8c00';
|
|
218
|
+
readonly darkorchid: '#9932cc';
|
|
219
|
+
readonly darkred: '#8b0000';
|
|
220
|
+
readonly darksalmon: '#e9967a';
|
|
221
|
+
readonly darkseagreen: '#8fbc8f';
|
|
222
|
+
readonly darkslateblue: '#483d8b';
|
|
223
|
+
readonly darkslategray: '#2f4f4f';
|
|
224
|
+
readonly darkslategrey: '#2f4f4f';
|
|
225
|
+
readonly darkturquoise: '#00ced1';
|
|
226
|
+
readonly darkviolet: '#9400d3';
|
|
227
|
+
readonly deeppink: '#ff1493';
|
|
228
|
+
readonly deepskyblue: '#00bfff';
|
|
229
|
+
readonly dimgray: '#696969';
|
|
230
|
+
readonly dimgrey: '#696969';
|
|
231
|
+
readonly dodgerblue: '#1e90ff';
|
|
232
|
+
readonly firebrick: '#b22222';
|
|
233
|
+
readonly floralwhite: '#fffaf0';
|
|
234
|
+
readonly forestgreen: '#228b22';
|
|
235
|
+
readonly fuchsia: '#ff00ff';
|
|
236
|
+
readonly gainsboro: '#dcdcdc';
|
|
237
|
+
readonly ghostwhite: '#f8f8ff';
|
|
238
|
+
readonly goldenrod: '#daa520';
|
|
239
|
+
readonly gold: '#ffd700';
|
|
240
|
+
readonly gray: '#808080';
|
|
241
|
+
readonly green: '#008000';
|
|
242
|
+
readonly greenyellow: '#adff2f';
|
|
243
|
+
readonly grey: '#808080';
|
|
244
|
+
readonly honeydew: '#f0fff0';
|
|
245
|
+
readonly hotpink: '#ff69b4';
|
|
246
|
+
readonly indianred: '#cd5c5c';
|
|
247
|
+
readonly indigo: '#4b0082';
|
|
248
|
+
readonly ivory: '#fffff0';
|
|
249
|
+
readonly khaki: '#f0e68c';
|
|
250
|
+
readonly lavenderblush: '#fff0f5';
|
|
251
|
+
readonly lavender: '#e6e6fa';
|
|
252
|
+
readonly lawngreen: '#7cfc00';
|
|
253
|
+
readonly lemonchiffon: '#fffacd';
|
|
254
|
+
readonly lightblue: '#add8e6';
|
|
255
|
+
readonly lightcoral: '#f08080';
|
|
256
|
+
readonly lightcyan: '#e0ffff';
|
|
257
|
+
readonly lightgoldenrodyellow: '#fafad2';
|
|
258
|
+
readonly lightgray: '#d3d3d3';
|
|
259
|
+
readonly lightgreen: '#90ee90';
|
|
260
|
+
readonly lightgrey: '#d3d3d3';
|
|
261
|
+
readonly lightpink: '#ffb6c1';
|
|
262
|
+
readonly lightsalmon: '#ffa07a';
|
|
263
|
+
readonly lightseagreen: '#20b2aa';
|
|
264
|
+
readonly lightskyblue: '#87cefa';
|
|
265
|
+
readonly lightslategray: '#778899';
|
|
266
|
+
readonly lightslategrey: '#778899';
|
|
267
|
+
readonly lightsteelblue: '#b0c4de';
|
|
268
|
+
readonly lightyellow: '#ffffe0';
|
|
269
|
+
readonly lime: '#00ff00';
|
|
270
|
+
readonly limegreen: '#32cd32';
|
|
271
|
+
readonly linen: '#faf0e6';
|
|
272
|
+
readonly magenta: '#ff00ff';
|
|
273
|
+
readonly maroon: '#800000';
|
|
274
|
+
readonly mediumaquamarine: '#66cdaa';
|
|
275
|
+
readonly mediumblue: '#0000cd';
|
|
276
|
+
readonly mediumorchid: '#ba55d3';
|
|
277
|
+
readonly mediumpurple: '#9370db';
|
|
278
|
+
readonly mediumseagreen: '#3cb371';
|
|
279
|
+
readonly mediumslateblue: '#7b68ee';
|
|
280
|
+
readonly mediumspringgreen: '#00fa9a';
|
|
281
|
+
readonly mediumturquoise: '#48d1cc';
|
|
282
|
+
readonly mediumvioletred: '#c71585';
|
|
283
|
+
readonly midnightblue: '#191970';
|
|
284
|
+
readonly mintcream: '#f5fffa';
|
|
285
|
+
readonly mistyrose: '#ffe4e1';
|
|
286
|
+
readonly moccasin: '#ffe4b5';
|
|
287
|
+
readonly navajowhite: '#ffdead';
|
|
288
|
+
readonly navy: '#000080';
|
|
289
|
+
readonly oldlace: '#fdf5e6';
|
|
290
|
+
readonly olive: '#808000';
|
|
291
|
+
readonly olivedrab: '#6b8e23';
|
|
292
|
+
readonly orange: '#ffa500';
|
|
293
|
+
readonly orangered: '#ff4500';
|
|
294
|
+
readonly orchid: '#da70d6';
|
|
295
|
+
readonly palegoldenrod: '#eee8aa';
|
|
296
|
+
readonly palegreen: '#98fb98';
|
|
297
|
+
readonly paleturquoise: '#afeeee';
|
|
298
|
+
readonly palevioletred: '#db7093';
|
|
299
|
+
readonly papayawhip: '#ffefd5';
|
|
300
|
+
readonly peachpuff: '#ffdab9';
|
|
301
|
+
readonly peru: '#cd853f';
|
|
302
|
+
readonly pink: '#ffc0cb';
|
|
303
|
+
readonly plum: '#dda0dd';
|
|
304
|
+
readonly powderblue: '#b0e0e6';
|
|
305
|
+
readonly purple: '#800080';
|
|
306
|
+
readonly rebeccapurple: '#663399';
|
|
307
|
+
readonly red: '#ff0000';
|
|
308
|
+
readonly rosybrown: '#bc8f8f';
|
|
309
|
+
readonly royalblue: '#4169e1';
|
|
310
|
+
readonly saddlebrown: '#8b4513';
|
|
311
|
+
readonly salmon: '#fa8072';
|
|
312
|
+
readonly sandybrown: '#f4a460';
|
|
313
|
+
readonly seagreen: '#2e8b57';
|
|
314
|
+
readonly seashell: '#fff5ee';
|
|
315
|
+
readonly sienna: '#a0522d';
|
|
316
|
+
readonly silver: '#c0c0c0';
|
|
317
|
+
readonly skyblue: '#87ceeb';
|
|
318
|
+
readonly slateblue: '#6a5acd';
|
|
319
|
+
readonly slategray: '#708090';
|
|
320
|
+
readonly slategrey: '#708090';
|
|
321
|
+
readonly snow: '#fffafa';
|
|
322
|
+
readonly springgreen: '#00ff7f';
|
|
323
|
+
readonly steelblue: '#4682b4';
|
|
324
|
+
readonly tan: '#d2b48c';
|
|
325
|
+
readonly teal: '#008080';
|
|
326
|
+
readonly thistle: '#d8bfd8';
|
|
327
|
+
readonly tomato: '#ff6347';
|
|
328
|
+
readonly turquoise: '#40e0d0';
|
|
329
|
+
readonly violet: '#ee82ee';
|
|
330
|
+
readonly wheat: '#f5deb3';
|
|
331
|
+
readonly white: '#ffffff';
|
|
332
|
+
readonly whitesmoke: '#f5f5f5';
|
|
333
|
+
readonly yellow: '#ffff00';
|
|
334
|
+
readonly yellowgreen: '#9acd32';
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
export default colors;
|
|
338
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,IAAI,MAAM,EAAE,CAAC;AACpC,MAAM,MAAM,SAAS,GAAG,OAAO,MAAM,IAAI,MAAM,IAAI,MAAM,GAAG,CAAC;AAC7D,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;AAClE,MAAM,MAAM,SAAS,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC5D,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE7C,eAAO,MAAM,WAAW;;;;;;;;;;;CA+GiC,CAAC;AAE1D,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,WAAW,CAAC;AAEtD,eAAO,MAAM,YAAY;wBACZ,SAAS;2BACN,SAAS;mBACjB,SAAS;yBACH,SAAS;oBACd,SAAS;oBACT,SAAS;qBACR,SAAS;oBACV,SAAS;6BACA,SAAS;mBACnB,SAAS;yBACH,SAAS;oBACd,SAAS;wBACL,SAAS;wBACT,SAAS;yBACR,SAAS;wBACV,SAAS;oBACb,SAAS;6BACA,SAAS;uBACf,SAAS;sBACV,SAA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S;4BACR,SAAS;+BACN,SAAS;4BACZ,SAAS;6BACR,SAAS;4BACV,SAAS;uCACE,SAAS;4BACpB,SAAS;6BACR,SAAS;4BACV,SAAS;4BACT,SAAS;8BACP,SAAS;gCACP,SAAS;+BACV,SAAS;iCACP,SAAS;iCACT,SAAS;iCACT,SAAS;8BACZ,SAAS;uBAChB,SAAS;4BACJ,SAAS;wBACb,SAAS;0BACP,SAAS;yBACV,SAAS;mCACC,SAAS;6BACf,SAAS;+BACP,SAAS;+BACT,SAAS;iCACP,SAAS;kCACR,SAAS;oCACP,SAAS;kCACX,SAAS;kCACT,SAAS;+BACZ,SAAS;4BACZ,SAAS;4BACT,SAAS;2BACV,SAAS;8BACN,SAAS;uBAChB,SAAS;0BACN,SAAS;wBACX,SAAS;4BACL,SAAS;yBACZ,SAAS;4BACN,SAAS;yBACZ,SAAS;gCACF,SAAS;4BACb,SAAS;gCACL,SAAS;gCACT,SAAS;6BACZ,SAAS;4BACV,SAAS;uBACd,SAAS;uBACT,SAAS;uBACT,SAAS;6BACH,SAAS;yBACb,SAAS;gCACF,SAAS;sBACnB,SAAS;4BACH,SAAS;4BACT,SAAS;8BACP,SAAS;yBACd,SAAS;6BACL,SAAS;2BACX,SAAS;2BACT,SAAS;yBACX,SAAS;yBACT,SAAS;0BACR,SAAS;4BACP,SAAS;4BACT,SAAS;4BACT,SAAS;uBACd,SAAS;8BACF,SAAS;4BACX,SAAS;sBACf,SAAS;uBACR,SAAS;0BACN,SAAS;yBACV,SAAS;4BACN,SAAS;yBACZ,SAAS;wBACV,SAAS;wBACT,SAAS;6BACJ,SAAS;yBACb,SAAS;8BACJ,SAAS;;CAQd,CAAC;eAEI,MAAM"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
export const colorGroups = {
|
|
2
|
+
red: [
|
|
3
|
+
'rgb(102,0,0)',
|
|
4
|
+
'rgb(153,0,0)',
|
|
5
|
+
'rgb(204,0,0)',
|
|
6
|
+
'rgb(255,0,0)',
|
|
7
|
+
'rgb(255,51,51)',
|
|
8
|
+
'rgb(255,102,102)',
|
|
9
|
+
'rgb(255,153,153)',
|
|
10
|
+
],
|
|
11
|
+
orange: [
|
|
12
|
+
'rgb(102,51,0)',
|
|
13
|
+
'rgb(153,76,0)',
|
|
14
|
+
'rgb(204,102,0)',
|
|
15
|
+
'rgb(255,128,0)',
|
|
16
|
+
'rgb(255,153,51)',
|
|
17
|
+
'rgb(255,178,102)',
|
|
18
|
+
'rgb(255,204,153)',
|
|
19
|
+
],
|
|
20
|
+
yellow: [
|
|
21
|
+
'rgb(102,102,0)',
|
|
22
|
+
'rgb(153,153,0)',
|
|
23
|
+
'rgb(204,204,0)',
|
|
24
|
+
'rgb(255,255,0)',
|
|
25
|
+
'rgb(255,255,51)',
|
|
26
|
+
'rgb(255,255,102)',
|
|
27
|
+
'rgb(255,255,153)',
|
|
28
|
+
'rgb(255,255,204)',
|
|
29
|
+
],
|
|
30
|
+
green: [
|
|
31
|
+
'rgb(124,252,0)',
|
|
32
|
+
'rgb(127,255,0)',
|
|
33
|
+
'rgb(50,205,50)',
|
|
34
|
+
'rgb(0,255,0)',
|
|
35
|
+
'rgb(34,139,34)',
|
|
36
|
+
'rgb(0,128,0)',
|
|
37
|
+
'rgb(0,100,0)',
|
|
38
|
+
'rgb(173,255,47)',
|
|
39
|
+
'rgb(154,205,50)',
|
|
40
|
+
'rgb(0,255,127)',
|
|
41
|
+
'rgb(0,250,154)',
|
|
42
|
+
'rgb(144,238,144)',
|
|
43
|
+
'rgb(152,251,152)',
|
|
44
|
+
'rgb(143,188,143)',
|
|
45
|
+
'rgb(60,179,113)',
|
|
46
|
+
'rgb(46,139,87)',
|
|
47
|
+
'rgb(128,128,0)',
|
|
48
|
+
'rgb(85,107,47)',
|
|
49
|
+
'rgb(107,142,35)',
|
|
50
|
+
'rgb(2,166,165)',
|
|
51
|
+
'rgb(13,125,126)',
|
|
52
|
+
],
|
|
53
|
+
blue: [
|
|
54
|
+
'rgb(0,0,102)',
|
|
55
|
+
'rgb(0,0,153)',
|
|
56
|
+
'rgb(0,0,255)',
|
|
57
|
+
'rgb(51,51,255)',
|
|
58
|
+
'rgb(102,102,255)',
|
|
59
|
+
'rgb(0,51,102)',
|
|
60
|
+
'rgb(0,76,153)',
|
|
61
|
+
'rgb(0,102,204)',
|
|
62
|
+
'rgb(0,128,255)',
|
|
63
|
+
'rgb(51,153,255)',
|
|
64
|
+
'rgb(102,178,255)',
|
|
65
|
+
'rgb(0,204,204)',
|
|
66
|
+
'rgb(0,255,255)',
|
|
67
|
+
'rgb(51,255,255)',
|
|
68
|
+
'rgb(153,255,255)',
|
|
69
|
+
'rgb(204,229,255)',
|
|
70
|
+
'rgb(196,218,242)',
|
|
71
|
+
],
|
|
72
|
+
white: [
|
|
73
|
+
'rgb(255,255,255)',
|
|
74
|
+
'rgb(255,250,250)',
|
|
75
|
+
'rgb(240,255,240)',
|
|
76
|
+
'rgb(245,255,250)',
|
|
77
|
+
'rgb(255,255,240)',
|
|
78
|
+
'rgb(196,222,237)',
|
|
79
|
+
'rgb(254,249,191)',
|
|
80
|
+
'rgb(169,199,209)',
|
|
81
|
+
],
|
|
82
|
+
pink: [
|
|
83
|
+
'rgb(51,0,51)',
|
|
84
|
+
'rgb(102,0,102)',
|
|
85
|
+
'rgb(153,0,153)',
|
|
86
|
+
'rgb(204,0,204)',
|
|
87
|
+
'rgb(255,0,255)',
|
|
88
|
+
'rgb(255,51,255)',
|
|
89
|
+
'rgb(255,102,255)',
|
|
90
|
+
'rgb(255,153,255)',
|
|
91
|
+
'rgb(255,204,255)',
|
|
92
|
+
'rgb(251,140,173)',
|
|
93
|
+
'rgb(211,78,125)',
|
|
94
|
+
],
|
|
95
|
+
black: ['rgb(0,0,0)', 'rgb(32,32,32)'],
|
|
96
|
+
grey: [
|
|
97
|
+
'rgb(64,64,64)',
|
|
98
|
+
'rgb(96,96,96)',
|
|
99
|
+
'rgb(128,128,128)',
|
|
100
|
+
'rgb(160,160,160)',
|
|
101
|
+
'rgb(192,192,192)',
|
|
102
|
+
],
|
|
103
|
+
purple: [
|
|
104
|
+
'rgb(51,0,102)',
|
|
105
|
+
'rgb(76,0,153)',
|
|
106
|
+
'rgb(102,0,204)',
|
|
107
|
+
'rgb(127,0,255)',
|
|
108
|
+
'rgb(153,51,255)',
|
|
109
|
+
'rgb(178,102,255)',
|
|
110
|
+
'rgb(204,153,255)',
|
|
111
|
+
],
|
|
112
|
+
};
|
|
113
|
+
export const cssColorList = {
|
|
114
|
+
aliceblue: '#f0f8ff',
|
|
115
|
+
antiquewhite: '#faebd7',
|
|
116
|
+
aqua: '#00ffff',
|
|
117
|
+
aquamarine: '#7fffd4',
|
|
118
|
+
azure: '#f0ffff',
|
|
119
|
+
beige: '#f5f5dc',
|
|
120
|
+
bisque: '#ffe4c4',
|
|
121
|
+
black: '#000000',
|
|
122
|
+
blanchedalmond: '#ffebcd',
|
|
123
|
+
blue: '#0000ff',
|
|
124
|
+
blueviolet: '#8a2be2',
|
|
125
|
+
brown: '#a52a2a',
|
|
126
|
+
burlywood: '#deb887',
|
|
127
|
+
cadetblue: '#5f9ea0',
|
|
128
|
+
chartreuse: '#7fff00',
|
|
129
|
+
chocolate: '#d2691e',
|
|
130
|
+
coral: '#ff7f50',
|
|
131
|
+
cornflowerblue: '#6495ed',
|
|
132
|
+
cornsilk: '#fff8dc',
|
|
133
|
+
crimson: '#dc143c',
|
|
134
|
+
cyan: '#00ffff',
|
|
135
|
+
darkblue: '#00008b',
|
|
136
|
+
darkcyan: '#008b8b',
|
|
137
|
+
darkgoldenrod: '#b8860b',
|
|
138
|
+
darkgray: '#a9a9a9',
|
|
139
|
+
darkgreen: '#006400',
|
|
140
|
+
darkgrey: '#a9a9a9',
|
|
141
|
+
darkkhaki: '#bdb76b',
|
|
142
|
+
darkmagenta: '#8b008b',
|
|
143
|
+
darkolivegreen: '#556b2f',
|
|
144
|
+
darkorange: '#ff8c00',
|
|
145
|
+
darkorchid: '#9932cc',
|
|
146
|
+
darkred: '#8b0000',
|
|
147
|
+
darksalmon: '#e9967a',
|
|
148
|
+
darkseagreen: '#8fbc8f',
|
|
149
|
+
darkslateblue: '#483d8b',
|
|
150
|
+
darkslategray: '#2f4f4f',
|
|
151
|
+
darkslategrey: '#2f4f4f',
|
|
152
|
+
darkturquoise: '#00ced1',
|
|
153
|
+
darkviolet: '#9400d3',
|
|
154
|
+
deeppink: '#ff1493',
|
|
155
|
+
deepskyblue: '#00bfff',
|
|
156
|
+
dimgray: '#696969',
|
|
157
|
+
dimgrey: '#696969',
|
|
158
|
+
dodgerblue: '#1e90ff',
|
|
159
|
+
firebrick: '#b22222',
|
|
160
|
+
floralwhite: '#fffaf0',
|
|
161
|
+
forestgreen: '#228b22',
|
|
162
|
+
fuchsia: '#ff00ff',
|
|
163
|
+
gainsboro: '#dcdcdc',
|
|
164
|
+
ghostwhite: '#f8f8ff',
|
|
165
|
+
goldenrod: '#daa520',
|
|
166
|
+
gold: '#ffd700',
|
|
167
|
+
gray: '#808080',
|
|
168
|
+
green: '#008000',
|
|
169
|
+
greenyellow: '#adff2f',
|
|
170
|
+
grey: '#808080',
|
|
171
|
+
honeydew: '#f0fff0',
|
|
172
|
+
hotpink: '#ff69b4',
|
|
173
|
+
indianred: '#cd5c5c',
|
|
174
|
+
indigo: '#4b0082',
|
|
175
|
+
ivory: '#fffff0',
|
|
176
|
+
khaki: '#f0e68c',
|
|
177
|
+
lavenderblush: '#fff0f5',
|
|
178
|
+
lavender: '#e6e6fa',
|
|
179
|
+
lawngreen: '#7cfc00',
|
|
180
|
+
lemonchiffon: '#fffacd',
|
|
181
|
+
lightblue: '#add8e6',
|
|
182
|
+
lightcoral: '#f08080',
|
|
183
|
+
lightcyan: '#e0ffff',
|
|
184
|
+
lightgoldenrodyellow: '#fafad2',
|
|
185
|
+
lightgray: '#d3d3d3',
|
|
186
|
+
lightgreen: '#90ee90',
|
|
187
|
+
lightgrey: '#d3d3d3',
|
|
188
|
+
lightpink: '#ffb6c1',
|
|
189
|
+
lightsalmon: '#ffa07a',
|
|
190
|
+
lightseagreen: '#20b2aa',
|
|
191
|
+
lightskyblue: '#87cefa',
|
|
192
|
+
lightslategray: '#778899',
|
|
193
|
+
lightslategrey: '#778899',
|
|
194
|
+
lightsteelblue: '#b0c4de',
|
|
195
|
+
lightyellow: '#ffffe0',
|
|
196
|
+
lime: '#00ff00',
|
|
197
|
+
limegreen: '#32cd32',
|
|
198
|
+
linen: '#faf0e6',
|
|
199
|
+
magenta: '#ff00ff',
|
|
200
|
+
maroon: '#800000',
|
|
201
|
+
mediumaquamarine: '#66cdaa',
|
|
202
|
+
mediumblue: '#0000cd',
|
|
203
|
+
mediumorchid: '#ba55d3',
|
|
204
|
+
mediumpurple: '#9370db',
|
|
205
|
+
mediumseagreen: '#3cb371',
|
|
206
|
+
mediumslateblue: '#7b68ee',
|
|
207
|
+
mediumspringgreen: '#00fa9a',
|
|
208
|
+
mediumturquoise: '#48d1cc',
|
|
209
|
+
mediumvioletred: '#c71585',
|
|
210
|
+
midnightblue: '#191970',
|
|
211
|
+
mintcream: '#f5fffa',
|
|
212
|
+
mistyrose: '#ffe4e1',
|
|
213
|
+
moccasin: '#ffe4b5',
|
|
214
|
+
navajowhite: '#ffdead',
|
|
215
|
+
navy: '#000080',
|
|
216
|
+
oldlace: '#fdf5e6',
|
|
217
|
+
olive: '#808000',
|
|
218
|
+
olivedrab: '#6b8e23',
|
|
219
|
+
orange: '#ffa500',
|
|
220
|
+
orangered: '#ff4500',
|
|
221
|
+
orchid: '#da70d6',
|
|
222
|
+
palegoldenrod: '#eee8aa',
|
|
223
|
+
palegreen: '#98fb98',
|
|
224
|
+
paleturquoise: '#afeeee',
|
|
225
|
+
palevioletred: '#db7093',
|
|
226
|
+
papayawhip: '#ffefd5',
|
|
227
|
+
peachpuff: '#ffdab9',
|
|
228
|
+
peru: '#cd853f',
|
|
229
|
+
pink: '#ffc0cb',
|
|
230
|
+
plum: '#dda0dd',
|
|
231
|
+
powderblue: '#b0e0e6',
|
|
232
|
+
purple: '#800080',
|
|
233
|
+
rebeccapurple: '#663399',
|
|
234
|
+
red: '#ff0000',
|
|
235
|
+
rosybrown: '#bc8f8f',
|
|
236
|
+
royalblue: '#4169e1',
|
|
237
|
+
saddlebrown: '#8b4513',
|
|
238
|
+
salmon: '#fa8072',
|
|
239
|
+
sandybrown: '#f4a460',
|
|
240
|
+
seagreen: '#2e8b57',
|
|
241
|
+
seashell: '#fff5ee',
|
|
242
|
+
sienna: '#a0522d',
|
|
243
|
+
silver: '#c0c0c0',
|
|
244
|
+
skyblue: '#87ceeb',
|
|
245
|
+
slateblue: '#6a5acd',
|
|
246
|
+
slategray: '#708090',
|
|
247
|
+
slategrey: '#708090',
|
|
248
|
+
snow: '#fffafa',
|
|
249
|
+
springgreen: '#00ff7f',
|
|
250
|
+
steelblue: '#4682b4',
|
|
251
|
+
tan: '#d2b48c',
|
|
252
|
+
teal: '#008080',
|
|
253
|
+
thistle: '#d8bfd8',
|
|
254
|
+
tomato: '#ff6347',
|
|
255
|
+
turquoise: '#40e0d0',
|
|
256
|
+
violet: '#ee82ee',
|
|
257
|
+
wheat: '#f5deb3',
|
|
258
|
+
white: '#ffffff',
|
|
259
|
+
whitesmoke: '#f5f5f5',
|
|
260
|
+
yellow: '#ffff00',
|
|
261
|
+
yellowgreen: '#9acd32',
|
|
262
|
+
};
|
|
263
|
+
export const colors = {
|
|
264
|
+
...colorGroups,
|
|
265
|
+
cssColorList,
|
|
266
|
+
};
|
|
267
|
+
export default colors;
|
|
268
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,EAAE;QACH,cAAc;QACd,cAAc;QACd,cAAc;QACd,cAAc;QACd,gBAAgB;QAChB,kBAAkB;QAClB,kBAAkB;KACnB;IACD,MAAM,EAAE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,EAAE,SAAS;IACrB,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,SAAS;CACqB,CAAC;AAI9C,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,GAAG,WAAW;IACd,YAAY;CACJ,CAAC;AAEX,eAAe,MAAM,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "chromonym",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Color naming tool — resolve RGB or Hex color input to a human-readable name.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"color",
|
|
7
|
+
"naming",
|
|
8
|
+
"rgb",
|
|
9
|
+
"hex",
|
|
10
|
+
"palette",
|
|
11
|
+
"chromonym"
|
|
12
|
+
],
|
|
13
|
+
"author": "the-simian <harlinjesse@gmail.com>",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"homepage": "https://github.com/simiancraft/chromonym#readme",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/simiancraft/chromonym.git"
|
|
19
|
+
},
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/simiancraft/chromonym/issues"
|
|
22
|
+
},
|
|
23
|
+
"type": "module",
|
|
24
|
+
"main": "./dist/index.js",
|
|
25
|
+
"module": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"README.md",
|
|
36
|
+
"LICENSE"
|
|
37
|
+
],
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "tsgo",
|
|
40
|
+
"typecheck": "tsgo --noEmit",
|
|
41
|
+
"lint": "biome check",
|
|
42
|
+
"lint:fix": "biome check --write",
|
|
43
|
+
"format": "biome format --write .",
|
|
44
|
+
"test": "bun test",
|
|
45
|
+
"prepublishOnly": "bun run build"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@biomejs/biome": "^2.2.0",
|
|
49
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
50
|
+
"@semantic-release/git": "^10.0.1",
|
|
51
|
+
"@types/bun": "latest",
|
|
52
|
+
"@typescript/native-preview": "latest",
|
|
53
|
+
"semantic-release": "^24.2.0"
|
|
54
|
+
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public",
|
|
57
|
+
"provenance": true
|
|
58
|
+
},
|
|
59
|
+
"engines": {
|
|
60
|
+
"node": ">=20"
|
|
61
|
+
}
|
|
62
|
+
}
|