chromonym 3.4.0 → 3.5.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/NOTICE.md +75 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/palettes/pokemon.d.ts +81 -0
- package/dist/palettes/pokemon.d.ts.map +1 -0
- package/dist/palettes/pokemon.js +64 -0
- package/dist/palettes/pokemon.js.map +1 -0
- package/dist/palettes/ral.d.ts +480 -0
- package/dist/palettes/ral.d.ts.map +1 -0
- package/dist/palettes/ral.js +271 -0
- package/dist/palettes/ral.js.map +1 -0
- package/dist/palettes/tailwind.d.ts +539 -0
- package/dist/palettes/tailwind.d.ts.map +1 -0
- package/dist/palettes/tailwind.js +317 -0
- package/dist/palettes/tailwind.js.map +1 -0
- package/dist/palettes/werner.d.ts +270 -0
- package/dist/palettes/werner.d.ts.map +1 -0
- package/dist/palettes/werner.js +168 -0
- package/dist/palettes/werner.js.map +1 -0
- package/package.json +30 -6
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { standardNormalize } from './normalize.js';
|
|
2
|
+
/**
|
|
3
|
+
* Tailwind CSS default theme colors (v4.0 baseline).
|
|
4
|
+
*
|
|
5
|
+
* The 22 default color families × 11 shades = 242 entries:
|
|
6
|
+
*
|
|
7
|
+
* - Neutrals: slate, gray, zinc, neutral, stone
|
|
8
|
+
* - Hues: red, orange, amber, yellow, lime, green, emerald, teal, cyan,
|
|
9
|
+
* sky, blue, indigo, violet, purple, fuchsia, pink, rose
|
|
10
|
+
*
|
|
11
|
+
* Shades are the canonical 50, 100, 200, 300, 400, 500, 600, 700, 800,
|
|
12
|
+
* 900, 950 ramp. Keys are the Tailwind class suffix verbatim: `'slate-500'`,
|
|
13
|
+
* `'rose-950'`. `standardNormalize` strips the hyphen, so `resolve('slate500')`,
|
|
14
|
+
* `resolve('SLATE-500')`, and `resolve('slate-500')` all hit the same entry.
|
|
15
|
+
*
|
|
16
|
+
* sRGB values are computed from Tailwind v4.0's OKLCH theme spec (the v4
|
|
17
|
+
* default-theme file ships OKLCH, not hex). OKLAB→linear sRGB via Björn
|
|
18
|
+
* Ottosson's reference matrix; sRGB transfer function per IEC 61966-2-1.
|
|
19
|
+
* Out-of-gamut OKLCH values are clamped to [0, 1] before encoding —
|
|
20
|
+
* affects mostly the saturated 500-600 shades in the red/orange/pink/rose
|
|
21
|
+
* families, where v4 deliberately pushes past sRGB's gamut boundary
|
|
22
|
+
* (P3-aware browsers render brighter; sRGB consumers see the clamped hex).
|
|
23
|
+
*
|
|
24
|
+
* Excluded: black, white, transparent, currentcolor, inherit. The first
|
|
25
|
+
* two are trivially representable as `'#000000'` / `'#ffffff'` and aren't
|
|
26
|
+
* "named tokens" in the design-system sense; the rest aren't sRGB colors.
|
|
27
|
+
* Tailwind v4.2+ families (mauve, olive, mist, taupe) are deferred to a
|
|
28
|
+
* future bump; this palette pins to v4.0 per the issue.
|
|
29
|
+
*
|
|
30
|
+
* Default metric: `deltaEok`. Tailwind defines its shades on an OKLCH
|
|
31
|
+
* lightness ramp; OKLAB-based distance recovers the same perceptual
|
|
32
|
+
* structure better than CIELAB76.
|
|
33
|
+
*/
|
|
34
|
+
const tailwindColors = {
|
|
35
|
+
// --- slate ---
|
|
36
|
+
'slate-50': '#f8fafc',
|
|
37
|
+
'slate-100': '#f1f5f9',
|
|
38
|
+
'slate-200': '#e2e8f0',
|
|
39
|
+
'slate-300': '#cad5e2',
|
|
40
|
+
'slate-400': '#90a1b9',
|
|
41
|
+
'slate-500': '#62748e',
|
|
42
|
+
'slate-600': '#45556c',
|
|
43
|
+
'slate-700': '#314158',
|
|
44
|
+
'slate-800': '#1d293d',
|
|
45
|
+
'slate-900': '#0f172b',
|
|
46
|
+
'slate-950': '#020618',
|
|
47
|
+
// --- gray ---
|
|
48
|
+
'gray-50': '#f9fafb',
|
|
49
|
+
'gray-100': '#f3f4f6',
|
|
50
|
+
'gray-200': '#e5e7eb',
|
|
51
|
+
'gray-300': '#d1d5dc',
|
|
52
|
+
'gray-400': '#99a1af',
|
|
53
|
+
'gray-500': '#6a7282',
|
|
54
|
+
'gray-600': '#4a5565',
|
|
55
|
+
'gray-700': '#364153',
|
|
56
|
+
'gray-800': '#1e2939',
|
|
57
|
+
'gray-900': '#101828',
|
|
58
|
+
'gray-950': '#030712',
|
|
59
|
+
// --- zinc ---
|
|
60
|
+
'zinc-50': '#fafafa',
|
|
61
|
+
'zinc-100': '#f4f4f5',
|
|
62
|
+
'zinc-200': '#e4e4e7',
|
|
63
|
+
'zinc-300': '#d4d4d8',
|
|
64
|
+
'zinc-400': '#9f9fa9',
|
|
65
|
+
'zinc-500': '#71717b',
|
|
66
|
+
'zinc-600': '#52525c',
|
|
67
|
+
'zinc-700': '#3f3f46',
|
|
68
|
+
'zinc-800': '#27272a',
|
|
69
|
+
'zinc-900': '#18181b',
|
|
70
|
+
'zinc-950': '#09090b',
|
|
71
|
+
// --- neutral ---
|
|
72
|
+
'neutral-50': '#fafafa',
|
|
73
|
+
'neutral-100': '#f5f5f5',
|
|
74
|
+
'neutral-200': '#e5e5e5',
|
|
75
|
+
'neutral-300': '#d4d4d4',
|
|
76
|
+
'neutral-400': '#a1a1a1',
|
|
77
|
+
'neutral-500': '#737373',
|
|
78
|
+
'neutral-600': '#525252',
|
|
79
|
+
'neutral-700': '#404040',
|
|
80
|
+
'neutral-800': '#262626',
|
|
81
|
+
'neutral-900': '#171717',
|
|
82
|
+
'neutral-950': '#0a0a0a',
|
|
83
|
+
// --- stone ---
|
|
84
|
+
'stone-50': '#fafaf9',
|
|
85
|
+
'stone-100': '#f5f5f4',
|
|
86
|
+
'stone-200': '#e7e5e4',
|
|
87
|
+
'stone-300': '#d6d3d1',
|
|
88
|
+
'stone-400': '#a6a09b',
|
|
89
|
+
'stone-500': '#79716b',
|
|
90
|
+
'stone-600': '#57534d',
|
|
91
|
+
'stone-700': '#44403b',
|
|
92
|
+
'stone-800': '#292524',
|
|
93
|
+
'stone-900': '#1c1917',
|
|
94
|
+
'stone-950': '#0c0a09',
|
|
95
|
+
// --- red ---
|
|
96
|
+
'red-50': '#fef2f2',
|
|
97
|
+
'red-100': '#ffe2e2',
|
|
98
|
+
'red-200': '#ffc9c9',
|
|
99
|
+
'red-300': '#ffa2a2',
|
|
100
|
+
'red-400': '#ff6467',
|
|
101
|
+
'red-500': '#fb2c36',
|
|
102
|
+
'red-600': '#e7000b',
|
|
103
|
+
'red-700': '#c10007',
|
|
104
|
+
'red-800': '#9f0712',
|
|
105
|
+
'red-900': '#82181a',
|
|
106
|
+
'red-950': '#460809',
|
|
107
|
+
// --- orange ---
|
|
108
|
+
'orange-50': '#fff7ed',
|
|
109
|
+
'orange-100': '#ffedd4',
|
|
110
|
+
'orange-200': '#ffd6a7',
|
|
111
|
+
'orange-300': '#ffb86a',
|
|
112
|
+
'orange-400': '#ff8904',
|
|
113
|
+
'orange-500': '#ff6900',
|
|
114
|
+
'orange-600': '#f54900',
|
|
115
|
+
'orange-700': '#ca3500',
|
|
116
|
+
'orange-800': '#9f2d00',
|
|
117
|
+
'orange-900': '#7e2a0c',
|
|
118
|
+
'orange-950': '#441306',
|
|
119
|
+
// --- amber ---
|
|
120
|
+
'amber-50': '#fffbeb',
|
|
121
|
+
'amber-100': '#fef3c6',
|
|
122
|
+
'amber-200': '#fee685',
|
|
123
|
+
'amber-300': '#ffd230',
|
|
124
|
+
'amber-400': '#ffb900',
|
|
125
|
+
'amber-500': '#fe9a00',
|
|
126
|
+
'amber-600': '#e17100',
|
|
127
|
+
'amber-700': '#bb4d00',
|
|
128
|
+
'amber-800': '#973c00',
|
|
129
|
+
'amber-900': '#7b3306',
|
|
130
|
+
'amber-950': '#461901',
|
|
131
|
+
// --- yellow ---
|
|
132
|
+
'yellow-50': '#fefce8',
|
|
133
|
+
'yellow-100': '#fef9c2',
|
|
134
|
+
'yellow-200': '#fff085',
|
|
135
|
+
'yellow-300': '#ffdf20',
|
|
136
|
+
'yellow-400': '#fdc700',
|
|
137
|
+
'yellow-500': '#f0b100',
|
|
138
|
+
'yellow-600': '#d08700',
|
|
139
|
+
'yellow-700': '#a65f00',
|
|
140
|
+
'yellow-800': '#894b00',
|
|
141
|
+
'yellow-900': '#733e0a',
|
|
142
|
+
'yellow-950': '#432004',
|
|
143
|
+
// --- lime ---
|
|
144
|
+
'lime-50': '#f7fee7',
|
|
145
|
+
'lime-100': '#ecfcca',
|
|
146
|
+
'lime-200': '#d8f999',
|
|
147
|
+
'lime-300': '#bbf451',
|
|
148
|
+
'lime-400': '#9ae600',
|
|
149
|
+
'lime-500': '#7ccf00',
|
|
150
|
+
'lime-600': '#5ea500',
|
|
151
|
+
'lime-700': '#497d00',
|
|
152
|
+
'lime-800': '#3c6300',
|
|
153
|
+
'lime-900': '#35530e',
|
|
154
|
+
'lime-950': '#192e03',
|
|
155
|
+
// --- green ---
|
|
156
|
+
'green-50': '#f0fdf4',
|
|
157
|
+
'green-100': '#dcfce7',
|
|
158
|
+
'green-200': '#b9f8cf',
|
|
159
|
+
'green-300': '#7bf1a8',
|
|
160
|
+
'green-400': '#05df72',
|
|
161
|
+
'green-500': '#00c950',
|
|
162
|
+
'green-600': '#00a63e',
|
|
163
|
+
'green-700': '#008236',
|
|
164
|
+
'green-800': '#016630',
|
|
165
|
+
'green-900': '#0d542b',
|
|
166
|
+
'green-950': '#032e15',
|
|
167
|
+
// --- emerald ---
|
|
168
|
+
'emerald-50': '#ecfdf5',
|
|
169
|
+
'emerald-100': '#d0fae5',
|
|
170
|
+
'emerald-200': '#a4f4cf',
|
|
171
|
+
'emerald-300': '#5ee9b5',
|
|
172
|
+
'emerald-400': '#00d492',
|
|
173
|
+
'emerald-500': '#00bc7d',
|
|
174
|
+
'emerald-600': '#009966',
|
|
175
|
+
'emerald-700': '#007a55',
|
|
176
|
+
'emerald-800': '#006045',
|
|
177
|
+
'emerald-900': '#004f3b',
|
|
178
|
+
'emerald-950': '#002c22',
|
|
179
|
+
// --- teal ---
|
|
180
|
+
'teal-50': '#f0fdfa',
|
|
181
|
+
'teal-100': '#cbfbf1',
|
|
182
|
+
'teal-200': '#96f7e4',
|
|
183
|
+
'teal-300': '#46ecd5',
|
|
184
|
+
'teal-400': '#00d5be',
|
|
185
|
+
'teal-500': '#00bba7',
|
|
186
|
+
'teal-600': '#009689',
|
|
187
|
+
'teal-700': '#00786f',
|
|
188
|
+
'teal-800': '#005f5a',
|
|
189
|
+
'teal-900': '#0b4f4a',
|
|
190
|
+
'teal-950': '#022f2e',
|
|
191
|
+
// --- cyan ---
|
|
192
|
+
'cyan-50': '#ecfeff',
|
|
193
|
+
'cyan-100': '#cefafe',
|
|
194
|
+
'cyan-200': '#a2f4fd',
|
|
195
|
+
'cyan-300': '#53eafd',
|
|
196
|
+
'cyan-400': '#00d3f2',
|
|
197
|
+
'cyan-500': '#00b8db',
|
|
198
|
+
'cyan-600': '#0092b8',
|
|
199
|
+
'cyan-700': '#007595',
|
|
200
|
+
'cyan-800': '#005f78',
|
|
201
|
+
'cyan-900': '#104e64',
|
|
202
|
+
'cyan-950': '#053345',
|
|
203
|
+
// --- sky ---
|
|
204
|
+
'sky-50': '#f0f9ff',
|
|
205
|
+
'sky-100': '#dff2fe',
|
|
206
|
+
'sky-200': '#b8e6fe',
|
|
207
|
+
'sky-300': '#74d4ff',
|
|
208
|
+
'sky-400': '#00bcff',
|
|
209
|
+
'sky-500': '#00a6f4',
|
|
210
|
+
'sky-600': '#0084d1',
|
|
211
|
+
'sky-700': '#0069a8',
|
|
212
|
+
'sky-800': '#00598a',
|
|
213
|
+
'sky-900': '#024a70',
|
|
214
|
+
'sky-950': '#052f4a',
|
|
215
|
+
// --- blue ---
|
|
216
|
+
'blue-50': '#eff6ff',
|
|
217
|
+
'blue-100': '#dbeafe',
|
|
218
|
+
'blue-200': '#bedbff',
|
|
219
|
+
'blue-300': '#8ec5ff',
|
|
220
|
+
'blue-400': '#51a2ff',
|
|
221
|
+
'blue-500': '#2b7fff',
|
|
222
|
+
'blue-600': '#155dfc',
|
|
223
|
+
'blue-700': '#1447e6',
|
|
224
|
+
'blue-800': '#193cb8',
|
|
225
|
+
'blue-900': '#1c398e',
|
|
226
|
+
'blue-950': '#162456',
|
|
227
|
+
// --- indigo ---
|
|
228
|
+
'indigo-50': '#eef2ff',
|
|
229
|
+
'indigo-100': '#e0e7ff',
|
|
230
|
+
'indigo-200': '#c6d2ff',
|
|
231
|
+
'indigo-300': '#a3b3ff',
|
|
232
|
+
'indigo-400': '#7c86ff',
|
|
233
|
+
'indigo-500': '#615fff',
|
|
234
|
+
'indigo-600': '#4f39f6',
|
|
235
|
+
'indigo-700': '#432dd7',
|
|
236
|
+
'indigo-800': '#372aac',
|
|
237
|
+
'indigo-900': '#312c85',
|
|
238
|
+
'indigo-950': '#1e1a4d',
|
|
239
|
+
// --- violet ---
|
|
240
|
+
'violet-50': '#f5f3ff',
|
|
241
|
+
'violet-100': '#ede9fe',
|
|
242
|
+
'violet-200': '#ddd6ff',
|
|
243
|
+
'violet-300': '#c4b4ff',
|
|
244
|
+
'violet-400': '#a684ff',
|
|
245
|
+
'violet-500': '#8e51ff',
|
|
246
|
+
'violet-600': '#7f22fe',
|
|
247
|
+
'violet-700': '#7008e7',
|
|
248
|
+
'violet-800': '#5d0ec0',
|
|
249
|
+
'violet-900': '#4d179a',
|
|
250
|
+
'violet-950': '#2f0d68',
|
|
251
|
+
// --- purple ---
|
|
252
|
+
'purple-50': '#faf5ff',
|
|
253
|
+
'purple-100': '#f3e8ff',
|
|
254
|
+
'purple-200': '#e9d4ff',
|
|
255
|
+
'purple-300': '#dab2ff',
|
|
256
|
+
'purple-400': '#c27aff',
|
|
257
|
+
'purple-500': '#ad46ff',
|
|
258
|
+
'purple-600': '#9810fa',
|
|
259
|
+
'purple-700': '#8200db',
|
|
260
|
+
'purple-800': '#6e11b0',
|
|
261
|
+
'purple-900': '#59168b',
|
|
262
|
+
'purple-950': '#3c0366',
|
|
263
|
+
// --- fuchsia ---
|
|
264
|
+
'fuchsia-50': '#fdf4ff',
|
|
265
|
+
'fuchsia-100': '#fae8ff',
|
|
266
|
+
'fuchsia-200': '#f6cfff',
|
|
267
|
+
'fuchsia-300': '#f4a8ff',
|
|
268
|
+
'fuchsia-400': '#ed6aff',
|
|
269
|
+
'fuchsia-500': '#e12afb',
|
|
270
|
+
'fuchsia-600': '#c800de',
|
|
271
|
+
'fuchsia-700': '#a800b7',
|
|
272
|
+
'fuchsia-800': '#8a0194',
|
|
273
|
+
'fuchsia-900': '#721378',
|
|
274
|
+
'fuchsia-950': '#4b004f',
|
|
275
|
+
// --- pink ---
|
|
276
|
+
'pink-50': '#fdf2f8',
|
|
277
|
+
'pink-100': '#fce7f3',
|
|
278
|
+
'pink-200': '#fccee8',
|
|
279
|
+
'pink-300': '#fda5d5',
|
|
280
|
+
'pink-400': '#fb64b6',
|
|
281
|
+
'pink-500': '#f6339a',
|
|
282
|
+
'pink-600': '#e60076',
|
|
283
|
+
'pink-700': '#c6005c',
|
|
284
|
+
'pink-800': '#a3004c',
|
|
285
|
+
'pink-900': '#861043',
|
|
286
|
+
'pink-950': '#510424',
|
|
287
|
+
// --- rose ---
|
|
288
|
+
'rose-50': '#fff1f2',
|
|
289
|
+
'rose-100': '#ffe4e6',
|
|
290
|
+
'rose-200': '#ffccd3',
|
|
291
|
+
'rose-300': '#ffa1ad',
|
|
292
|
+
'rose-400': '#ff637e',
|
|
293
|
+
'rose-500': '#ff2056',
|
|
294
|
+
'rose-600': '#ec003f',
|
|
295
|
+
'rose-700': '#c70036',
|
|
296
|
+
'rose-800': '#a50036',
|
|
297
|
+
'rose-900': '#8b0836',
|
|
298
|
+
'rose-950': '#4d0218',
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* Tailwind CSS default theme as a `Palette<TailwindColorName>`. 22
|
|
302
|
+
* families × 11 shades = 242 entries from the v4.0 baseline. Keys
|
|
303
|
+
* are the Tailwind class suffix (`'sky-500'`); standard normalizer
|
|
304
|
+
* accepts the hyphen, lowercase, or punctuation-free forms.
|
|
305
|
+
*
|
|
306
|
+
* @example
|
|
307
|
+
* identify('#62748e', { palette: tailwind }); // 'slate-500'
|
|
308
|
+
* resolve('rose-500', { palette: tailwind }); // '#ff2056'
|
|
309
|
+
* tailwind.colors['blue-600']; // sRGB hex
|
|
310
|
+
*/
|
|
311
|
+
export const tailwind = {
|
|
312
|
+
name: 'tailwind',
|
|
313
|
+
colors: tailwindColors,
|
|
314
|
+
normalize: standardNormalize,
|
|
315
|
+
defaultMetric: 'deltaEok',
|
|
316
|
+
};
|
|
317
|
+
//# sourceMappingURL=tailwind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind.js","sourceRoot":"","sources":["../../src/palettes/tailwind.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,cAAc,GAAG;IACrB,gBAAgB;IAChB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,eAAe;IACf,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,eAAe;IACf,SAAS,EAAE,SAAS;IACpB,UAAU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AS;IACxB,aAAa,EAAE,SAAS;IACxB,eAAe;IACf,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,eAAe;IACf,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;CACb,CAAC;AAIX;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,cAAc;IACtB,SAAS,EAAE,iBAAiB;IAC5B,aAAa,EAAE,UAAU;CACoB,CAAC","sourcesContent":["import type { Palette } from '../types.js';\nimport { standardNormalize } from './normalize.js';\n\n/**\n * Tailwind CSS default theme colors (v4.0 baseline).\n *\n * The 22 default color families × 11 shades = 242 entries:\n *\n * - Neutrals: slate, gray, zinc, neutral, stone\n * - Hues: red, orange, amber, yellow, lime, green, emerald, teal, cyan,\n * sky, blue, indigo, violet, purple, fuchsia, pink, rose\n *\n * Shades are the canonical 50, 100, 200, 300, 400, 500, 600, 700, 800,\n * 900, 950 ramp. Keys are the Tailwind class suffix verbatim: `'slate-500'`,\n * `'rose-950'`. `standardNormalize` strips the hyphen, so `resolve('slate500')`,\n * `resolve('SLATE-500')`, and `resolve('slate-500')` all hit the same entry.\n *\n * sRGB values are computed from Tailwind v4.0's OKLCH theme spec (the v4\n * default-theme file ships OKLCH, not hex). OKLAB→linear sRGB via Björn\n * Ottosson's reference matrix; sRGB transfer function per IEC 61966-2-1.\n * Out-of-gamut OKLCH values are clamped to [0, 1] before encoding —\n * affects mostly the saturated 500-600 shades in the red/orange/pink/rose\n * families, where v4 deliberately pushes past sRGB's gamut boundary\n * (P3-aware browsers render brighter; sRGB consumers see the clamped hex).\n *\n * Excluded: black, white, transparent, currentcolor, inherit. The first\n * two are trivially representable as `'#000000'` / `'#ffffff'` and aren't\n * \"named tokens\" in the design-system sense; the rest aren't sRGB colors.\n * Tailwind v4.2+ families (mauve, olive, mist, taupe) are deferred to a\n * future bump; this palette pins to v4.0 per the issue.\n *\n * Default metric: `deltaEok`. Tailwind defines its shades on an OKLCH\n * lightness ramp; OKLAB-based distance recovers the same perceptual\n * structure better than CIELAB76.\n */\nconst tailwindColors = {\n // --- slate ---\n 'slate-50': '#f8fafc',\n 'slate-100': '#f1f5f9',\n 'slate-200': '#e2e8f0',\n 'slate-300': '#cad5e2',\n 'slate-400': '#90a1b9',\n 'slate-500': '#62748e',\n 'slate-600': '#45556c',\n 'slate-700': '#314158',\n 'slate-800': '#1d293d',\n 'slate-900': '#0f172b',\n 'slate-950': '#020618',\n // --- gray ---\n 'gray-50': '#f9fafb',\n 'gray-100': '#f3f4f6',\n 'gray-200': '#e5e7eb',\n 'gray-300': '#d1d5dc',\n 'gray-400': '#99a1af',\n 'gray-500': '#6a7282',\n 'gray-600': '#4a5565',\n 'gray-700': '#364153',\n 'gray-800': '#1e2939',\n 'gray-900': '#101828',\n 'gray-950': '#030712',\n // --- zinc ---\n 'zinc-50': '#fafafa',\n 'zinc-100': '#f4f4f5',\n 'zinc-200': '#e4e4e7',\n 'zinc-300': '#d4d4d8',\n 'zinc-400': '#9f9fa9',\n 'zinc-500': '#71717b',\n 'zinc-600': '#52525c',\n 'zinc-700': '#3f3f46',\n 'zinc-800': '#27272a',\n 'zinc-900': '#18181b',\n 'zinc-950': '#09090b',\n // --- neutral ---\n 'neutral-50': '#fafafa',\n 'neutral-100': '#f5f5f5',\n 'neutral-200': '#e5e5e5',\n 'neutral-300': '#d4d4d4',\n 'neutral-400': '#a1a1a1',\n 'neutral-500': '#737373',\n 'neutral-600': '#525252',\n 'neutral-700': '#404040',\n 'neutral-800': '#262626',\n 'neutral-900': '#171717',\n 'neutral-950': '#0a0a0a',\n // --- stone ---\n 'stone-50': '#fafaf9',\n 'stone-100': '#f5f5f4',\n 'stone-200': '#e7e5e4',\n 'stone-300': '#d6d3d1',\n 'stone-400': '#a6a09b',\n 'stone-500': '#79716b',\n 'stone-600': '#57534d',\n 'stone-700': '#44403b',\n 'stone-800': '#292524',\n 'stone-900': '#1c1917',\n 'stone-950': '#0c0a09',\n // --- red ---\n 'red-50': '#fef2f2',\n 'red-100': '#ffe2e2',\n 'red-200': '#ffc9c9',\n 'red-300': '#ffa2a2',\n 'red-400': '#ff6467',\n 'red-500': '#fb2c36',\n 'red-600': '#e7000b',\n 'red-700': '#c10007',\n 'red-800': '#9f0712',\n 'red-900': '#82181a',\n 'red-950': '#460809',\n // --- orange ---\n 'orange-50': '#fff7ed',\n 'orange-100': '#ffedd4',\n 'orange-200': '#ffd6a7',\n 'orange-300': '#ffb86a',\n 'orange-400': '#ff8904',\n 'orange-500': '#ff6900',\n 'orange-600': '#f54900',\n 'orange-700': '#ca3500',\n 'orange-800': '#9f2d00',\n 'orange-900': '#7e2a0c',\n 'orange-950': '#441306',\n // --- amber ---\n 'amber-50': '#fffbeb',\n 'amber-100': '#fef3c6',\n 'amber-200': '#fee685',\n 'amber-300': '#ffd230',\n 'amber-400': '#ffb900',\n 'amber-500': '#fe9a00',\n 'amber-600': '#e17100',\n 'amber-700': '#bb4d00',\n 'amber-800': '#973c00',\n 'amber-900': '#7b3306',\n 'amber-950': '#461901',\n // --- yellow ---\n 'yellow-50': '#fefce8',\n 'yellow-100': '#fef9c2',\n 'yellow-200': '#fff085',\n 'yellow-300': '#ffdf20',\n 'yellow-400': '#fdc700',\n 'yellow-500': '#f0b100',\n 'yellow-600': '#d08700',\n 'yellow-700': '#a65f00',\n 'yellow-800': '#894b00',\n 'yellow-900': '#733e0a',\n 'yellow-950': '#432004',\n // --- lime ---\n 'lime-50': '#f7fee7',\n 'lime-100': '#ecfcca',\n 'lime-200': '#d8f999',\n 'lime-300': '#bbf451',\n 'lime-400': '#9ae600',\n 'lime-500': '#7ccf00',\n 'lime-600': '#5ea500',\n 'lime-700': '#497d00',\n 'lime-800': '#3c6300',\n 'lime-900': '#35530e',\n 'lime-950': '#192e03',\n // --- green ---\n 'green-50': '#f0fdf4',\n 'green-100': '#dcfce7',\n 'green-200': '#b9f8cf',\n 'green-300': '#7bf1a8',\n 'green-400': '#05df72',\n 'green-500': '#00c950',\n 'green-600': '#00a63e',\n 'green-700': '#008236',\n 'green-800': '#016630',\n 'green-900': '#0d542b',\n 'green-950': '#032e15',\n // --- emerald ---\n 'emerald-50': '#ecfdf5',\n 'emerald-100': '#d0fae5',\n 'emerald-200': '#a4f4cf',\n 'emerald-300': '#5ee9b5',\n 'emerald-400': '#00d492',\n 'emerald-500': '#00bc7d',\n 'emerald-600': '#009966',\n 'emerald-700': '#007a55',\n 'emerald-800': '#006045',\n 'emerald-900': '#004f3b',\n 'emerald-950': '#002c22',\n // --- teal ---\n 'teal-50': '#f0fdfa',\n 'teal-100': '#cbfbf1',\n 'teal-200': '#96f7e4',\n 'teal-300': '#46ecd5',\n 'teal-400': '#00d5be',\n 'teal-500': '#00bba7',\n 'teal-600': '#009689',\n 'teal-700': '#00786f',\n 'teal-800': '#005f5a',\n 'teal-900': '#0b4f4a',\n 'teal-950': '#022f2e',\n // --- cyan ---\n 'cyan-50': '#ecfeff',\n 'cyan-100': '#cefafe',\n 'cyan-200': '#a2f4fd',\n 'cyan-300': '#53eafd',\n 'cyan-400': '#00d3f2',\n 'cyan-500': '#00b8db',\n 'cyan-600': '#0092b8',\n 'cyan-700': '#007595',\n 'cyan-800': '#005f78',\n 'cyan-900': '#104e64',\n 'cyan-950': '#053345',\n // --- sky ---\n 'sky-50': '#f0f9ff',\n 'sky-100': '#dff2fe',\n 'sky-200': '#b8e6fe',\n 'sky-300': '#74d4ff',\n 'sky-400': '#00bcff',\n 'sky-500': '#00a6f4',\n 'sky-600': '#0084d1',\n 'sky-700': '#0069a8',\n 'sky-800': '#00598a',\n 'sky-900': '#024a70',\n 'sky-950': '#052f4a',\n // --- blue ---\n 'blue-50': '#eff6ff',\n 'blue-100': '#dbeafe',\n 'blue-200': '#bedbff',\n 'blue-300': '#8ec5ff',\n 'blue-400': '#51a2ff',\n 'blue-500': '#2b7fff',\n 'blue-600': '#155dfc',\n 'blue-700': '#1447e6',\n 'blue-800': '#193cb8',\n 'blue-900': '#1c398e',\n 'blue-950': '#162456',\n // --- indigo ---\n 'indigo-50': '#eef2ff',\n 'indigo-100': '#e0e7ff',\n 'indigo-200': '#c6d2ff',\n 'indigo-300': '#a3b3ff',\n 'indigo-400': '#7c86ff',\n 'indigo-500': '#615fff',\n 'indigo-600': '#4f39f6',\n 'indigo-700': '#432dd7',\n 'indigo-800': '#372aac',\n 'indigo-900': '#312c85',\n 'indigo-950': '#1e1a4d',\n // --- violet ---\n 'violet-50': '#f5f3ff',\n 'violet-100': '#ede9fe',\n 'violet-200': '#ddd6ff',\n 'violet-300': '#c4b4ff',\n 'violet-400': '#a684ff',\n 'violet-500': '#8e51ff',\n 'violet-600': '#7f22fe',\n 'violet-700': '#7008e7',\n 'violet-800': '#5d0ec0',\n 'violet-900': '#4d179a',\n 'violet-950': '#2f0d68',\n // --- purple ---\n 'purple-50': '#faf5ff',\n 'purple-100': '#f3e8ff',\n 'purple-200': '#e9d4ff',\n 'purple-300': '#dab2ff',\n 'purple-400': '#c27aff',\n 'purple-500': '#ad46ff',\n 'purple-600': '#9810fa',\n 'purple-700': '#8200db',\n 'purple-800': '#6e11b0',\n 'purple-900': '#59168b',\n 'purple-950': '#3c0366',\n // --- fuchsia ---\n 'fuchsia-50': '#fdf4ff',\n 'fuchsia-100': '#fae8ff',\n 'fuchsia-200': '#f6cfff',\n 'fuchsia-300': '#f4a8ff',\n 'fuchsia-400': '#ed6aff',\n 'fuchsia-500': '#e12afb',\n 'fuchsia-600': '#c800de',\n 'fuchsia-700': '#a800b7',\n 'fuchsia-800': '#8a0194',\n 'fuchsia-900': '#721378',\n 'fuchsia-950': '#4b004f',\n // --- pink ---\n 'pink-50': '#fdf2f8',\n 'pink-100': '#fce7f3',\n 'pink-200': '#fccee8',\n 'pink-300': '#fda5d5',\n 'pink-400': '#fb64b6',\n 'pink-500': '#f6339a',\n 'pink-600': '#e60076',\n 'pink-700': '#c6005c',\n 'pink-800': '#a3004c',\n 'pink-900': '#861043',\n 'pink-950': '#510424',\n // --- rose ---\n 'rose-50': '#fff1f2',\n 'rose-100': '#ffe4e6',\n 'rose-200': '#ffccd3',\n 'rose-300': '#ffa1ad',\n 'rose-400': '#ff637e',\n 'rose-500': '#ff2056',\n 'rose-600': '#ec003f',\n 'rose-700': '#c70036',\n 'rose-800': '#a50036',\n 'rose-900': '#8b0836',\n 'rose-950': '#4d0218',\n} as const;\n\nexport type TailwindColorName = keyof typeof tailwindColors;\n\n/**\n * Tailwind CSS default theme as a `Palette<TailwindColorName>`. 22\n * families × 11 shades = 242 entries from the v4.0 baseline. Keys\n * are the Tailwind class suffix (`'sky-500'`); standard normalizer\n * accepts the hyphen, lowercase, or punctuation-free forms.\n *\n * @example\n * identify('#62748e', { palette: tailwind }); // 'slate-500'\n * resolve('rose-500', { palette: tailwind }); // '#ff2056'\n * tailwind.colors['blue-600']; // sRGB hex\n */\nexport const tailwind = {\n name: 'tailwind',\n colors: tailwindColors,\n normalize: standardNormalize,\n defaultMetric: 'deltaEok',\n} as const satisfies Palette<TailwindColorName>;\n"]}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Werner's Nomenclature of Colours (1821) — Patrick Syme's adaptation of
|
|
3
|
+
* Abraham Werner's mineralogical color system, famously the reference
|
|
4
|
+
* Charles Darwin carried aboard HMS Beagle.
|
|
5
|
+
*
|
|
6
|
+
* 110 named pigments organized into ten classes (Whites, Greys, Blacks,
|
|
7
|
+
* Blues, Purples, Greens, Yellows, Oranges, Reds, Browns). Each name is
|
|
8
|
+
* a piece of natural-history vocabulary: animal/vegetable/mineral
|
|
9
|
+
* exemplars rather than abstract color labels (`'Lake Red'` is named
|
|
10
|
+
* for the dark spot on a ladybird; `'Verdigris Green'` for the patina
|
|
11
|
+
* on weathered copper).
|
|
12
|
+
*
|
|
13
|
+
* Keys are Title Case ('Snow White', 'Berlin Blue', 'Tile Red') matching
|
|
14
|
+
* the 1821 typography. `standardNormalize` strips case and punctuation
|
|
15
|
+
* on input, so `resolve('snow-white')`, `resolve('SNOW WHITE')`, and
|
|
16
|
+
* `resolve('Snow White')` all hit the same entry.
|
|
17
|
+
*
|
|
18
|
+
* sRGB values are taken from Nicholas Rougeux's CC-BY digitization at
|
|
19
|
+
* <https://www.c82.net/werner/>, which photographed and sampled the
|
|
20
|
+
* original chip swatches. See NOTICE.md for attribution and license.
|
|
21
|
+
*
|
|
22
|
+
* Default metric: `deltaE2000`. The palette is mostly muted earth tones
|
|
23
|
+
* and pigment darks; subtle perceptual distinctions matter more than
|
|
24
|
+
* the cheap-fast ΔE76 can resolve.
|
|
25
|
+
*/
|
|
26
|
+
declare const wernerColors: {
|
|
27
|
+
readonly 'Snow White': '#f1e9cd';
|
|
28
|
+
readonly 'Reddish White': '#f2e7cf';
|
|
29
|
+
readonly 'Purplish White': '#ece6d0';
|
|
30
|
+
readonly 'Yellowish White': '#f2eacc';
|
|
31
|
+
readonly 'Orange coloured White': '#f3e9ca';
|
|
32
|
+
readonly 'Greenish White': '#f2ebcd';
|
|
33
|
+
readonly 'Skimmed milk White': '#e6e1c9';
|
|
34
|
+
readonly 'Greyish White': '#e2ddc6';
|
|
35
|
+
readonly 'Ash Grey': '#cbc8b7';
|
|
36
|
+
readonly 'Smoke Grey': '#bfbbb0';
|
|
37
|
+
readonly 'French Grey': '#bebeb3';
|
|
38
|
+
readonly 'Pearl Grey': '#b7b5ac';
|
|
39
|
+
readonly 'Yellowish Grey': '#bab191';
|
|
40
|
+
readonly 'Bluish Grey': '#9c9d9a';
|
|
41
|
+
readonly 'Greenish Grey': '#8a8d84';
|
|
42
|
+
readonly 'Blackish Grey': '#5b5c61';
|
|
43
|
+
readonly 'Greyish Black': '#555152';
|
|
44
|
+
readonly 'Bluish Black': '#413f44';
|
|
45
|
+
readonly 'Greenish Black': '#454445';
|
|
46
|
+
readonly 'Pitch or Brownish Black': '#423937';
|
|
47
|
+
readonly 'Reddish Black': '#433635';
|
|
48
|
+
readonly 'Ink Black': '#252024';
|
|
49
|
+
readonly 'Velvet Black': '#241f20';
|
|
50
|
+
readonly 'Scotch Blue': '#281f3f';
|
|
51
|
+
readonly 'Prussian Blue': '#1c1949';
|
|
52
|
+
readonly 'Indigo Blue': '#4f638d';
|
|
53
|
+
readonly 'China Blue': '#383867';
|
|
54
|
+
readonly 'Azure Blue': '#5c6b8f';
|
|
55
|
+
readonly 'Ultramarine Blue': '#657abb';
|
|
56
|
+
readonly 'Flax-Flower Blue': '#6f88af';
|
|
57
|
+
readonly 'Berlin Blue': '#7994b5';
|
|
58
|
+
readonly 'Verditter Blue': '#6fb5a8';
|
|
59
|
+
readonly 'Greenish Blue': '#719ba2';
|
|
60
|
+
readonly 'Greyish Blue': '#8aa1a6';
|
|
61
|
+
readonly 'Bluish Lilac Purple': '#d0d5d3';
|
|
62
|
+
readonly 'Bluish Purple': '#8590ae';
|
|
63
|
+
readonly 'Violet Purple': '#3a2f52';
|
|
64
|
+
readonly 'Pansy Purple': '#39334a';
|
|
65
|
+
readonly 'Campanula Purple': '#6c6d94';
|
|
66
|
+
readonly 'Imperial Purple': '#584c77';
|
|
67
|
+
readonly 'Auricula Purple': '#533552';
|
|
68
|
+
readonly 'Plum Purple': '#463759';
|
|
69
|
+
readonly 'Red Lilac Purple': '#bfbac0';
|
|
70
|
+
readonly 'Lavender Purple': '#77747f';
|
|
71
|
+
readonly 'Pale Blackish Purple': '#4a475c';
|
|
72
|
+
readonly 'Celadine Green': '#b8bfaf';
|
|
73
|
+
readonly 'Mountain Green': '#b2b599';
|
|
74
|
+
readonly 'Leek Green': '#979c84';
|
|
75
|
+
readonly 'Blackish Green': '#5d6161';
|
|
76
|
+
readonly 'Verdigris Green': '#61ac86';
|
|
77
|
+
readonly 'Bluish Green': '#a4b6a7';
|
|
78
|
+
readonly 'Apple Green': '#adba98';
|
|
79
|
+
readonly 'Emerald Green': '#93b778';
|
|
80
|
+
readonly 'Grass Green': '#7d8c55';
|
|
81
|
+
readonly 'Duck Green': '#33431e';
|
|
82
|
+
readonly 'Sap Green': '#7c8635';
|
|
83
|
+
readonly 'Pistachio Green': '#8e9849';
|
|
84
|
+
readonly 'Asparagus Green': '#c2c190';
|
|
85
|
+
readonly 'Olive Green': '#67765b';
|
|
86
|
+
readonly 'Oil Green': '#ab924b';
|
|
87
|
+
readonly 'Siskin Green': '#c8c76f';
|
|
88
|
+
readonly 'Sulphur Yellow': '#ccc050';
|
|
89
|
+
readonly 'Primrose Yellow': '#ebdd99';
|
|
90
|
+
readonly 'Wax Yellow': '#ab9649';
|
|
91
|
+
readonly 'Lemon Yellow': '#dbc364';
|
|
92
|
+
readonly 'Gamboge Yellow': '#e6d058';
|
|
93
|
+
readonly 'Kings Yellow': '#ead665';
|
|
94
|
+
readonly 'Saffron Yellow': '#d09b2c';
|
|
95
|
+
readonly 'Gallstone Yellow': '#a36629';
|
|
96
|
+
readonly 'Honey Yellow': '#a77d35';
|
|
97
|
+
readonly 'Straw Yellow': '#f0d696';
|
|
98
|
+
readonly 'Wine Yellow': '#d7c485';
|
|
99
|
+
readonly 'Sienna Yellow': '#f1d28c';
|
|
100
|
+
readonly 'Ochre Yellow': '#efcc83';
|
|
101
|
+
readonly 'Cream Yellow': '#f3daa7';
|
|
102
|
+
readonly 'Dutch Orange': '#dfa837';
|
|
103
|
+
readonly 'Buff Orange': '#ebbc71';
|
|
104
|
+
readonly 'Orpiment Orange': '#d17c3f';
|
|
105
|
+
readonly 'Brownish Orange': '#92462f';
|
|
106
|
+
readonly 'Reddish Orange': '#be7249';
|
|
107
|
+
readonly 'Deep Reddish Orange': '#bb603c';
|
|
108
|
+
readonly 'Tile Red': '#c76b4a';
|
|
109
|
+
readonly 'Hyacinth Red': '#a75536';
|
|
110
|
+
readonly 'Scarlet Red': '#b63e36';
|
|
111
|
+
readonly 'Vermilion Red': '#b5493a';
|
|
112
|
+
readonly 'Aurora Red': '#cd6d57';
|
|
113
|
+
readonly 'Arterial Blood Red': '#711518';
|
|
114
|
+
readonly 'Flesh Red': '#e9c49d';
|
|
115
|
+
readonly 'Rose Red': '#eedac3';
|
|
116
|
+
readonly 'Peach Blossom Red': '#eecfbf';
|
|
117
|
+
readonly 'Carmine Red': '#ce536b';
|
|
118
|
+
readonly 'Lake Red': '#b74a70';
|
|
119
|
+
readonly 'Crimson Red': '#b7757c';
|
|
120
|
+
readonly 'Purplish Red': '#612741';
|
|
121
|
+
readonly 'Cochineal Red': '#7a4848';
|
|
122
|
+
readonly 'Veinous Blood Red': '#3f3033';
|
|
123
|
+
readonly 'Brownish Purple Red': '#8d746f';
|
|
124
|
+
readonly 'Chocolate Red': '#4d3635';
|
|
125
|
+
readonly 'Brownish Red': '#6e3b31';
|
|
126
|
+
readonly 'Deep Orange-coloured Brown': '#864735';
|
|
127
|
+
readonly 'Deep Reddish Brown': '#553d3a';
|
|
128
|
+
readonly 'Umber Brown': '#613936';
|
|
129
|
+
readonly 'Chestnut Brown': '#7a4b3a';
|
|
130
|
+
readonly 'Yellowish Brown': '#946943';
|
|
131
|
+
readonly 'Wood Brown': '#c39e6d';
|
|
132
|
+
readonly 'Liver Brown': '#513e32';
|
|
133
|
+
readonly 'Hair Brown': '#8b7859';
|
|
134
|
+
readonly 'Broccoli Brown': '#9b856b';
|
|
135
|
+
readonly 'Clove Brown': '#766051';
|
|
136
|
+
readonly 'Blackish Brown': '#453b32';
|
|
137
|
+
};
|
|
138
|
+
export type WernerColorName = keyof typeof wernerColors;
|
|
139
|
+
/**
|
|
140
|
+
* Werner's Nomenclature of Colours (1821) as a `Palette<WernerColorName>`.
|
|
141
|
+
*
|
|
142
|
+
* 110 entries spanning ten Werner classes (Whites → Browns). Keys are
|
|
143
|
+
* the original 1821 names ('Berlin Blue', 'Lake Red'). Default metric
|
|
144
|
+
* is `'deltaE2000'`: the palette's muted earth-tone distribution rewards
|
|
145
|
+
* perceptually uniform comparisons over fast Euclidean distance.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* identify('#1c1949', { palette: werner }); // 'Prussian Blue'
|
|
149
|
+
* resolve('Berlin Blue', { palette: werner }); // '#7994b5'
|
|
150
|
+
* werner.colors['Lake Red']; // '#b74a70'
|
|
151
|
+
*/
|
|
152
|
+
export declare const werner: {
|
|
153
|
+
readonly name: 'werner';
|
|
154
|
+
readonly colors: {
|
|
155
|
+
readonly 'Snow White': '#f1e9cd';
|
|
156
|
+
readonly 'Reddish White': '#f2e7cf';
|
|
157
|
+
readonly 'Purplish White': '#ece6d0';
|
|
158
|
+
readonly 'Yellowish White': '#f2eacc';
|
|
159
|
+
readonly 'Orange coloured White': '#f3e9ca';
|
|
160
|
+
readonly 'Greenish White': '#f2ebcd';
|
|
161
|
+
readonly 'Skimmed milk White': '#e6e1c9';
|
|
162
|
+
readonly 'Greyish White': '#e2ddc6';
|
|
163
|
+
readonly 'Ash Grey': '#cbc8b7';
|
|
164
|
+
readonly 'Smoke Grey': '#bfbbb0';
|
|
165
|
+
readonly 'French Grey': '#bebeb3';
|
|
166
|
+
readonly 'Pearl Grey': '#b7b5ac';
|
|
167
|
+
readonly 'Yellowish Grey': '#bab191';
|
|
168
|
+
readonly 'Bluish Grey': '#9c9d9a';
|
|
169
|
+
readonly 'Greenish Grey': '#8a8d84';
|
|
170
|
+
readonly 'Blackish Grey': '#5b5c61';
|
|
171
|
+
readonly 'Greyish Black': '#555152';
|
|
172
|
+
readonly 'Bluish Black': '#413f44';
|
|
173
|
+
readonly 'Greenish Black': '#454445';
|
|
174
|
+
readonly 'Pitch or Brownish Black': '#423937';
|
|
175
|
+
readonly 'Reddish Black': '#433635';
|
|
176
|
+
readonly 'Ink Black': '#252024';
|
|
177
|
+
readonly 'Velvet Black': '#241f20';
|
|
178
|
+
readonly 'Scotch Blue': '#281f3f';
|
|
179
|
+
readonly 'Prussian Blue': '#1c1949';
|
|
180
|
+
readonly 'Indigo Blue': '#4f638d';
|
|
181
|
+
readonly 'China Blue': '#383867';
|
|
182
|
+
readonly 'Azure Blue': '#5c6b8f';
|
|
183
|
+
readonly 'Ultramarine Blue': '#657abb';
|
|
184
|
+
readonly 'Flax-Flower Blue': '#6f88af';
|
|
185
|
+
readonly 'Berlin Blue': '#7994b5';
|
|
186
|
+
readonly 'Verditter Blue': '#6fb5a8';
|
|
187
|
+
readonly 'Greenish Blue': '#719ba2';
|
|
188
|
+
readonly 'Greyish Blue': '#8aa1a6';
|
|
189
|
+
readonly 'Bluish Lilac Purple': '#d0d5d3';
|
|
190
|
+
readonly 'Bluish Purple': '#8590ae';
|
|
191
|
+
readonly 'Violet Purple': '#3a2f52';
|
|
192
|
+
readonly 'Pansy Purple': '#39334a';
|
|
193
|
+
readonly 'Campanula Purple': '#6c6d94';
|
|
194
|
+
readonly 'Imperial Purple': '#584c77';
|
|
195
|
+
readonly 'Auricula Purple': '#533552';
|
|
196
|
+
readonly 'Plum Purple': '#463759';
|
|
197
|
+
readonly 'Red Lilac Purple': '#bfbac0';
|
|
198
|
+
readonly 'Lavender Purple': '#77747f';
|
|
199
|
+
readonly 'Pale Blackish Purple': '#4a475c';
|
|
200
|
+
readonly 'Celadine Green': '#b8bfaf';
|
|
201
|
+
readonly 'Mountain Green': '#b2b599';
|
|
202
|
+
readonly 'Leek Green': '#979c84';
|
|
203
|
+
readonly 'Blackish Green': '#5d6161';
|
|
204
|
+
readonly 'Verdigris Green': '#61ac86';
|
|
205
|
+
readonly 'Bluish Green': '#a4b6a7';
|
|
206
|
+
readonly 'Apple Green': '#adba98';
|
|
207
|
+
readonly 'Emerald Green': '#93b778';
|
|
208
|
+
readonly 'Grass Green': '#7d8c55';
|
|
209
|
+
readonly 'Duck Green': '#33431e';
|
|
210
|
+
readonly 'Sap Green': '#7c8635';
|
|
211
|
+
readonly 'Pistachio Green': '#8e9849';
|
|
212
|
+
readonly 'Asparagus Green': '#c2c190';
|
|
213
|
+
readonly 'Olive Green': '#67765b';
|
|
214
|
+
readonly 'Oil Green': '#ab924b';
|
|
215
|
+
readonly 'Siskin Green': '#c8c76f';
|
|
216
|
+
readonly 'Sulphur Yellow': '#ccc050';
|
|
217
|
+
readonly 'Primrose Yellow': '#ebdd99';
|
|
218
|
+
readonly 'Wax Yellow': '#ab9649';
|
|
219
|
+
readonly 'Lemon Yellow': '#dbc364';
|
|
220
|
+
readonly 'Gamboge Yellow': '#e6d058';
|
|
221
|
+
readonly 'Kings Yellow': '#ead665';
|
|
222
|
+
readonly 'Saffron Yellow': '#d09b2c';
|
|
223
|
+
readonly 'Gallstone Yellow': '#a36629';
|
|
224
|
+
readonly 'Honey Yellow': '#a77d35';
|
|
225
|
+
readonly 'Straw Yellow': '#f0d696';
|
|
226
|
+
readonly 'Wine Yellow': '#d7c485';
|
|
227
|
+
readonly 'Sienna Yellow': '#f1d28c';
|
|
228
|
+
readonly 'Ochre Yellow': '#efcc83';
|
|
229
|
+
readonly 'Cream Yellow': '#f3daa7';
|
|
230
|
+
readonly 'Dutch Orange': '#dfa837';
|
|
231
|
+
readonly 'Buff Orange': '#ebbc71';
|
|
232
|
+
readonly 'Orpiment Orange': '#d17c3f';
|
|
233
|
+
readonly 'Brownish Orange': '#92462f';
|
|
234
|
+
readonly 'Reddish Orange': '#be7249';
|
|
235
|
+
readonly 'Deep Reddish Orange': '#bb603c';
|
|
236
|
+
readonly 'Tile Red': '#c76b4a';
|
|
237
|
+
readonly 'Hyacinth Red': '#a75536';
|
|
238
|
+
readonly 'Scarlet Red': '#b63e36';
|
|
239
|
+
readonly 'Vermilion Red': '#b5493a';
|
|
240
|
+
readonly 'Aurora Red': '#cd6d57';
|
|
241
|
+
readonly 'Arterial Blood Red': '#711518';
|
|
242
|
+
readonly 'Flesh Red': '#e9c49d';
|
|
243
|
+
readonly 'Rose Red': '#eedac3';
|
|
244
|
+
readonly 'Peach Blossom Red': '#eecfbf';
|
|
245
|
+
readonly 'Carmine Red': '#ce536b';
|
|
246
|
+
readonly 'Lake Red': '#b74a70';
|
|
247
|
+
readonly 'Crimson Red': '#b7757c';
|
|
248
|
+
readonly 'Purplish Red': '#612741';
|
|
249
|
+
readonly 'Cochineal Red': '#7a4848';
|
|
250
|
+
readonly 'Veinous Blood Red': '#3f3033';
|
|
251
|
+
readonly 'Brownish Purple Red': '#8d746f';
|
|
252
|
+
readonly 'Chocolate Red': '#4d3635';
|
|
253
|
+
readonly 'Brownish Red': '#6e3b31';
|
|
254
|
+
readonly 'Deep Orange-coloured Brown': '#864735';
|
|
255
|
+
readonly 'Deep Reddish Brown': '#553d3a';
|
|
256
|
+
readonly 'Umber Brown': '#613936';
|
|
257
|
+
readonly 'Chestnut Brown': '#7a4b3a';
|
|
258
|
+
readonly 'Yellowish Brown': '#946943';
|
|
259
|
+
readonly 'Wood Brown': '#c39e6d';
|
|
260
|
+
readonly 'Liver Brown': '#513e32';
|
|
261
|
+
readonly 'Hair Brown': '#8b7859';
|
|
262
|
+
readonly 'Broccoli Brown': '#9b856b';
|
|
263
|
+
readonly 'Clove Brown': '#766051';
|
|
264
|
+
readonly 'Blackish Brown': '#453b32';
|
|
265
|
+
};
|
|
266
|
+
readonly normalize: import("../types.js").NormalizeFn;
|
|
267
|
+
readonly defaultMetric: 'deltaE2000';
|
|
268
|
+
};
|
|
269
|
+
export {};
|
|
270
|
+
//# sourceMappingURL=werner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"werner.d.ts","sourceRoot":"","sources":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;gCACX,SAAS;+BACV,SAAS;8BACV,SAAS;oCACH,SAAS;oCACT,SAAS;gCACb,SAAS;8BACX,SAAS;iCACN,SAAS;mCAEP,SAAS;oCACR,SAAS;+BACd,SAAS;iCACP,SAAS;mCACP,SAAS;iCACX,SAAS;mCACP,SAAS;qCACP,SAAS;iCACb,SAAS;iCACT,SAAS;gCACV,SAAS;kCACP,SAAS;iCACV,SAAS;iCACT,SAAS;iCAET,SAAS;gCACV,SAAS;oCACL,SAAS;oCACT,SAAS;mCACV,SAAS;wCACJ,SAAS;6BAEpB,SAAS;iCACL,SAAS;gCACV,SAAS;kCACP,SAAS;+BACZ,SAAS;uCACD,SAAS;8BAClB,SAAS;6BACV,SAAS;sCACA,SAAS;gCACf,SAAS;6BACZ,SAAS;gCACN,SAAS;iCACR,SAAS;kCACR,SAAS;sCACL,SAAS;wCACP,SAAS;kCACf,SAAS;iCACV,SAAS;+CAEK,SAAS;uCACjB,SAAS;gCAChB,SAAS;mCACN,SAAS;oCACR,SAAS;+BACd,SAAS;gCACR,SAAS;+BACV,SAAS;mCACL,SAAS;gCACZ,SAAS;mCACN,SAAS;;;4BAsBZ,YAAY;CACgB,CAAC","sourcesContent":["import type { Palette } from '../types.js';\nimport { standardNormalize } from './normalize.js';\n\n/**\n * Werner's Nomenclature of Colours (1821) — Patrick Syme's adaptation of\n * Abraham Werner's mineralogical color system, famously the reference\n * Charles Darwin carried aboard HMS Beagle.\n *\n * 110 named pigments organized into ten classes (Whites, Greys, Blacks,\n * Blues, Purples, Greens, Yellows, Oranges, Reds, Browns). Each name is\n * a piece of natural-history vocabulary: animal/vegetable/mineral\n * exemplars rather than abstract color labels (`'Lake Red'` is named\n * for the dark spot on a ladybird; `'Verdigris Green'` for the patina\n * on weathered copper).\n *\n * Keys are Title Case ('Snow White', 'Berlin Blue', 'Tile Red') matching\n * the 1821 typography. `standardNormalize` strips case and punctuation\n * on input, so `resolve('snow-white')`, `resolve('SNOW WHITE')`, and\n * `resolve('Snow White')` all hit the same entry.\n *\n * sRGB values are taken from Nicholas Rougeux's CC-BY digitization at\n * <https://www.c82.net/werner/>, which photographed and sampled the\n * original chip swatches. See NOTICE.md for attribution and license.\n *\n * Default metric: `deltaE2000`. The palette is mostly muted earth tones\n * and pigment darks; subtle perceptual distinctions matter more than\n * the cheap-fast ΔE76 can resolve.\n */\nconst wernerColors = {\n // --- Whites (#1-8) ---\n 'Snow White': '#f1e9cd',\n 'Reddish White': '#f2e7cf',\n 'Purplish White': '#ece6d0',\n 'Yellowish White': '#f2eacc',\n 'Orange coloured White': '#f3e9ca',\n 'Greenish White': '#f2ebcd',\n 'Skimmed milk White': '#e6e1c9',\n 'Greyish White': '#e2ddc6',\n // --- Greys (#9-16) ---\n 'Ash Grey': '#cbc8b7',\n 'Smoke Grey': '#bfbbb0',\n 'French Grey': '#bebeb3',\n 'Pearl Grey': '#b7b5ac',\n 'Yellowish Grey': '#bab191',\n 'Bluish Grey': '#9c9d9a',\n 'Greenish Grey': '#8a8d84',\n 'Blackish Grey': '#5b5c61',\n // --- Blacks (#17-23) ---\n 'Greyish Black': '#555152',\n 'Bluish Black': '#413f44',\n 'Greenish Black': '#454445',\n 'Pitch or Brownish Black': '#423937',\n 'Reddish Black': '#433635',\n 'Ink Black': '#252024',\n 'Velvet Black': '#241f20',\n // --- Blues (#24-34) ---\n 'Scotch Blue': '#281f3f',\n 'Prussian Blue': '#1c1949',\n 'Indigo Blue': '#4f638d',\n 'China Blue': '#383867',\n 'Azure Blue': '#5c6b8f',\n 'Ultramarine Blue': '#657abb',\n 'Flax-Flower Blue': '#6f88af',\n 'Berlin Blue': '#7994b5',\n 'Verditter Blue': '#6fb5a8',\n 'Greenish Blue': '#719ba2',\n 'Greyish Blue': '#8aa1a6',\n // --- Purples (#35-45) ---\n 'Bluish Lilac Purple': '#d0d5d3',\n 'Bluish Purple': '#8590ae',\n 'Violet Purple': '#3a2f52',\n 'Pansy Purple': '#39334a',\n 'Campanula Purple': '#6c6d94',\n 'Imperial Purple': '#584c77',\n 'Auricula Purple': '#533552',\n 'Plum Purple': '#463759',\n 'Red Lilac Purple': '#bfbac0',\n 'Lavender Purple': '#77747f',\n 'Pale Blackish Purple': '#4a475c',\n // --- Greens (#46-61) ---\n 'Celadine Green': '#b8bfaf',\n 'Mountain Green': '#b2b599',\n 'Leek Green': '#979c84',\n 'Blackish Green': '#5d6161',\n 'Verdigris Green': '#61ac86',\n 'Bluish Green': '#a4b6a7',\n 'Apple Green': '#adba98',\n 'Emerald Green': '#93b778',\n 'Grass Green': '#7d8c55',\n 'Duck Green': '#33431e',\n 'Sap Green': '#7c8635',\n 'Pistachio Green': '#8e9849',\n 'Asparagus Green': '#c2c190',\n 'Olive Green': '#67765b',\n 'Oil Green': '#ab924b',\n 'Siskin Green': '#c8c76f',\n // --- Yellows (#62-75) ---\n 'Sulphur Yellow': '#ccc050',\n 'Primrose Yellow': '#ebdd99',\n 'Wax Yellow': '#ab9649',\n 'Lemon Yellow': '#dbc364',\n 'Gamboge Yellow': '#e6d058',\n 'Kings Yellow': '#ead665',\n 'Saffron Yellow': '#d09b2c',\n 'Gallstone Yellow': '#a36629',\n 'Honey Yellow': '#a77d35',\n 'Straw Yellow': '#f0d696',\n 'Wine Yellow': '#d7c485',\n 'Sienna Yellow': '#f1d28c',\n 'Ochre Yellow': '#efcc83',\n 'Cream Yellow': '#f3daa7',\n // --- Oranges (#76-81) ---\n 'Dutch Orange': '#dfa837',\n 'Buff Orange': '#ebbc71',\n 'Orpiment Orange': '#d17c3f',\n 'Brownish Orange': '#92462f',\n 'Reddish Orange': '#be7249',\n 'Deep Reddish Orange': '#bb603c',\n // --- Reds (#82-99) ---\n 'Tile Red': '#c76b4a',\n 'Hyacinth Red': '#a75536',\n 'Scarlet Red': '#b63e36',\n 'Vermilion Red': '#b5493a',\n 'Aurora Red': '#cd6d57',\n 'Arterial Blood Red': '#711518',\n 'Flesh Red': '#e9c49d',\n 'Rose Red': '#eedac3',\n 'Peach Blossom Red': '#eecfbf',\n 'Carmine Red': '#ce536b',\n 'Lake Red': '#b74a70',\n 'Crimson Red': '#b7757c',\n 'Purplish Red': '#612741',\n 'Cochineal Red': '#7a4848',\n 'Veinous Blood Red': '#3f3033',\n 'Brownish Purple Red': '#8d746f',\n 'Chocolate Red': '#4d3635',\n 'Brownish Red': '#6e3b31',\n // --- Browns (#100-110) ---\n 'Deep Orange-coloured Brown': '#864735',\n 'Deep Reddish Brown': '#553d3a',\n 'Umber Brown': '#613936',\n 'Chestnut Brown': '#7a4b3a',\n 'Yellowish Brown': '#946943',\n 'Wood Brown': '#c39e6d',\n 'Liver Brown': '#513e32',\n 'Hair Brown': '#8b7859',\n 'Broccoli Brown': '#9b856b',\n 'Clove Brown': '#766051',\n 'Blackish Brown': '#453b32',\n} as const;\n\nexport type WernerColorName = keyof typeof wernerColors;\n\n/**\n * Werner's Nomenclature of Colours (1821) as a `Palette<WernerColorName>`.\n *\n * 110 entries spanning ten Werner classes (Whites → Browns). Keys are\n * the original 1821 names ('Berlin Blue', 'Lake Red'). Default metric\n * is `'deltaE2000'`: the palette's muted earth-tone distribution rewards\n * perceptually uniform comparisons over fast Euclidean distance.\n *\n * @example\n * identify('#1c1949', { palette: werner }); // 'Prussian Blue'\n * resolve('Berlin Blue', { palette: werner }); // '#7994b5'\n * werner.colors['Lake Red']; // '#b74a70'\n */\nexport const werner = {\n name: 'werner',\n colors: wernerColors,\n normalize: standardNormalize,\n defaultMetric: 'deltaE2000',\n} as const satisfies Palette<WernerColorName>;\n"]}
|