chromonym 3.8.0 → 3.10.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 +42 -0
- package/README.md +6 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/palettes/copic.d.ts +754 -0
- package/dist/palettes/copic.d.ts.map +1 -0
- package/dist/palettes/copic.js +394 -0
- package/dist/palettes/copic.js.map +1 -0
- package/dist/palettes/tcca.d.ts +508 -0
- package/dist/palettes/tcca.d.ts.map +1 -0
- package/dist/palettes/tcca.js +270 -0
- package/dist/palettes/tcca.js.map +1 -0
- package/package.json +13 -2
package/NOTICE.md
CHANGED
|
@@ -68,6 +68,23 @@ color-library lookup that rounds it through sRGB loses information.
|
|
|
68
68
|
If you need Pantone-certified color values, consult Pantone directly:
|
|
69
69
|
<https://www.pantone.com/>.
|
|
70
70
|
|
|
71
|
+
## Copic®
|
|
72
|
+
|
|
73
|
+
**Copic®** is a registered trademark of **Too Corporation**. Chromonym
|
|
74
|
+
is **not affiliated with, endorsed by, licensed by, or certified by Too
|
|
75
|
+
Corporation**.
|
|
76
|
+
|
|
77
|
+
The `copic` palette ships community sRGB approximations of the complete
|
|
78
|
+
358-color Copic Sketch marker range. The codes, names, and RGB values are
|
|
79
|
+
derived from [`sile/copic_colors`](https://github.com/sile/copic_colors)
|
|
80
|
+
at commit `42651233ab925fe872acd1956a77d8d5139f5013`, which publishes the
|
|
81
|
+
dataset under the **MIT License** or the **Apache License 2.0**.
|
|
82
|
+
|
|
83
|
+
Marker codes such as `B01` and `YG03` are used as nominative references.
|
|
84
|
+
The values are intended for on-screen lookup and nearest-color comparison;
|
|
85
|
+
they are not official measurements, and they should not be used for
|
|
86
|
+
production color matching against physical marker ink.
|
|
87
|
+
|
|
71
88
|
## Crayola®
|
|
72
89
|
|
|
73
90
|
**Crayola®** is a registered trademark of **Crayola LLC**. Chromonym is
|
|
@@ -376,6 +393,31 @@ to copyright restrictions when faithfully reproduced.
|
|
|
376
393
|
- Chromonym is **not affiliated with** any US Government agency
|
|
377
394
|
or defense contractor; no endorsement is implied.
|
|
378
395
|
|
|
396
|
+
## TCCA textile color cards (NBS RP1700)
|
|
397
|
+
|
|
398
|
+
The `tcca` palette (238 entries) reproduces Table 5 of G. Reimann,
|
|
399
|
+
D. B. Judd, and H. J. Keegan, **"Spectrophotometric and colorimetric
|
|
400
|
+
determination of the colors of the TCCA standard color cards,"**
|
|
401
|
+
*Journal of Research of the National Bureau of Standards* 36, 209
|
|
402
|
+
(March 1946), Research Paper RP1700. The paper is a US Government
|
|
403
|
+
publication and is in the public domain. Table 5 records 216 colors
|
|
404
|
+
from the Textile Color Card Association's *Standard Color Card of
|
|
405
|
+
America*, ninth edition, and 22 colors from the U.S. Army Color Card.
|
|
406
|
+
|
|
407
|
+
The source measurements are CIE 1931 Y, x, and y under Illuminant C,
|
|
408
|
+
with Y relative to magnesium oxide. Chromonym converts them to XYZ,
|
|
409
|
+
uses Bradford chromatic adaptation from Illuminant C (x 0.31006,
|
|
410
|
+
y 0.31616) to D65, converts D65 XYZ to linear sRGB with the IEC
|
|
411
|
+
61966-2-1 matrix, applies the sRGB transfer function, clamps channels
|
|
412
|
+
outside the sRGB gamut, and rounds to 8-bit hex. The transcribed Table
|
|
413
|
+
5 measurements and the complete conversion are retained as tests.
|
|
414
|
+
|
|
415
|
+
These are 1946 measurements of silk samples from the ninth-edition
|
|
416
|
+
cards. Later editions may differ, and the 10th edition renumbered many
|
|
417
|
+
shades with 80xxx cable numbers. Present-day heraldic yarns may also
|
|
418
|
+
differ. Several measured shades are fluorescent, so their sRGB values
|
|
419
|
+
are approximations by construction; values outside sRGB are clamped.
|
|
420
|
+
|
|
379
421
|
## MIL-STD-2525D (Joint Military Symbology)
|
|
380
422
|
|
|
381
423
|
The `milStd2525d` palette (20 entries) reproduces the symbol colors in
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<code>identify</code> • <code>resolve</code> • <code>convert</code>
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
|
-
**The last color-naming library you'll ever need.** Give it any hex, RGB, HSL, or HSV value and get back the nearest named color; give it a color name and get back the value. One API (`identify`, `resolve`, and `convert`) works against any palette you throw at it. Ships twenty palettes out of the box (CSS, X11, Pantone, Crayola, NTC, XKCD, RAL, Tailwind, Material, USWDS, Resene, NCS, ISCC-NBS, NBS, FS 595 B, FS 595 C, MIL-STD-2525D, U.S. military identity colors, Werner, and Pokémon); bring your own (brand colors, paint chips, game factions, and chart themes) with full TypeScript inference and zero registration. Six distance metrics range from fast Euclidean to industry-standard CIEDE2000 and OKLAB. Tree-shakes to the bone; you only pay for palettes you import.
|
|
24
|
+
**The last color-naming library you'll ever need.** Give it any hex, RGB, HSL, or HSV value and get back the nearest named color; give it a color name and get back the value. One API (`identify`, `resolve`, and `convert`) works against any palette you throw at it. Ships twenty-two palettes out of the box (CSS, X11, Pantone, Copic, Crayola, NTC, XKCD, RAL, Tailwind, Material, USWDS, Resene, NCS, ISCC-NBS, NBS, FS 595 B, FS 595 C, TCCA, MIL-STD-2525D, U.S. military identity colors, Werner, and Pokémon); bring your own (brand colors, paint chips, game factions, and chart themes) with full TypeScript inference and zero registration. Six distance metrics range from fast Euclidean to industry-standard CIEDE2000 and OKLAB. Tree-shakes to the bone; you only pay for palettes you import.
|
|
25
25
|
|
|
26
26
|
<sub>*chromonym* (n.): a name for a color; *chroma* + *-onym*. Also the library.</sub>
|
|
27
27
|
|
|
@@ -349,18 +349,20 @@ Unparseable values are dropped with a `console.warn` naming the palette, the off
|
|
|
349
349
|
|
|
350
350
|
If you prefer zero runtime and already have hex-only values, the `as const satisfies Palette<'A' | 'B' | ...>` pattern still works — list the key union once in the generic and it narrows identically.
|
|
351
351
|
|
|
352
|
-
### The twenty we ship
|
|
352
|
+
### The twenty-two we ship
|
|
353
353
|
|
|
354
354
|
| Name | Entries | Source |
|
|
355
355
|
|---|---|---|
|
|
356
356
|
| `web` (default) | 148 | CSS Color Module Level 4 named colors |
|
|
357
357
|
| `x11` | 658 | X.Org `rgb.txt` (public domain) |
|
|
358
358
|
| `pantone` | 907 | Pantone Coated (C) — community approximations (not Pantone-licensed) |
|
|
359
|
+
| `copic` | 358 | Copic Sketch marker codes; community sRGB values from an MIT/Apache-2.0 dataset |
|
|
359
360
|
| `crayola` | 84 | Crayola crayon colors — community approximations (not Crayola-licensed) |
|
|
360
361
|
| `ntc` | 1566 | Chirag Mehta's "Name That Color" dataset (broad coverage of design / UI / hardware names) |
|
|
361
362
|
| `xkcd` | 923 | XKCD 2010 color-survey results (CC0; crowd-sourced common-speech names) |
|
|
362
363
|
| `fs595b` | 209 | Federal Standard 595B paint chips (1989 revision; modelers / historical equipment) |
|
|
363
364
|
| `fs595c` | 682 | Federal Standard 595C paint chips (US Government spec; military / aviation coatings) |
|
|
365
|
+
| `tcca` | 238 | TCCA Standard Color Card of America, 9th edition, and U.S. Army Color Card, measured by NBS in 1946 |
|
|
364
366
|
| `milStd2525d` | 20 | MIL-STD-2525D military symbology colors: hostile, friend, neutral, unknown, and civilian, in dark, medium, light, and unfilled |
|
|
365
367
|
| `usMilitary` | 31 | Identity colors from official U.S. Army, Air Force, and Department of War brand and trademark guidance |
|
|
366
368
|
| `isccNbs` | 260 | ISCC-NBS Method of Designating Colors (1955 US standard; Munsell-partitioned named blocks) |
|
|
@@ -521,7 +523,7 @@ const tryConvert = (input: ColorInput, opts = {}) => {
|
|
|
521
523
|
|
|
522
524
|
**Install size and bundle size are not the same number.** Install size is what lands in your `node_modules/` after `npm install`; bundle size is what ships to your users after tree-shaking, minification, and gzip. For chromonym the gap is roughly two orders of magnitude.
|
|
523
525
|
|
|
524
|
-
The published tarball is **~2.4 MB unpacked / ~530 kB gzipped** because it carries twenty palettes and
|
|
526
|
+
The published tarball is **~2.4 MB unpacked / ~530 kB gzipped** because it carries twenty-two palettes and about 10,700 named-color entries; that's the install-size figure `packagephobia` reports. Your **production bundle** pays only for what you actually import, measured with `esbuild --minify`:
|
|
525
527
|
|
|
526
528
|
| Import | min | gzip |
|
|
527
529
|
|---|---|---|
|
|
@@ -544,7 +546,7 @@ Re-exported from the root barrel — `import type { ... } from 'chromonym'`:
|
|
|
544
546
|
| Per-format shapes | `HexColor`, `Rgba`, `RgbInput`, `RgbaInput`, `HslInput`, `HsvInput` |
|
|
545
547
|
| Palette container | `Palette<Name>`, `NormalizeFn` |
|
|
546
548
|
| Distance selector | `DistanceMetric` |
|
|
547
|
-
| Color-name unions | `WebColorName`, `X11ColorName`, `PantoneColorName` |
|
|
549
|
+
| Color-name unions | `WebColorName`, `X11ColorName`, `PantoneColorName`, `CopicColorName` |
|
|
548
550
|
|
|
549
551
|
## Development
|
|
550
552
|
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { type ConvertNameOptions, type ConvertPaletteOptions, type ConvertStruct
|
|
|
8
8
|
export { type DefineColorPaletteInput, defineColorPalette, } from './defineColorPalette.js';
|
|
9
9
|
export { type DetectedFormat, detectFormat, isColor } from './detectFormat.js';
|
|
10
10
|
export { type IdentifyMatch, type IdentifyOptions, type IdentifyRankedOptions, identify, } from './identify.js';
|
|
11
|
+
export { type CopicColorName, copic } from './palettes/copic.js';
|
|
11
12
|
export { type CrayolaColorName, crayola } from './palettes/crayola.js';
|
|
12
13
|
export { type Fs595bColorName, fs595b } from './palettes/fs595b.js';
|
|
13
14
|
export { type Fs595cColorName, fs595c } from './palettes/fs595c.js';
|
|
@@ -22,6 +23,7 @@ export { type PokemonColorName, pokemon } from './palettes/pokemon.js';
|
|
|
22
23
|
export { type RalColorName, ral } from './palettes/ral.js';
|
|
23
24
|
export { type ReseneColorName, resene } from './palettes/resene.js';
|
|
24
25
|
export { type TailwindColorName, tailwind } from './palettes/tailwind.js';
|
|
26
|
+
export { type TccaColorName, tcca } from './palettes/tcca.js';
|
|
25
27
|
export { type UsMilitaryColorName, usMilitary } from './palettes/usMilitary.js';
|
|
26
28
|
export { type UswdsColorName, uswds } from './palettes/uswds.js';
|
|
27
29
|
export { type WebColorName, web } from './palettes/web.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO,EAAE,MAAoB,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,OAAO,EACP,QAAQ,EACR,MAAM,GACP,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,uBAAuB,EAC5B,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,KAAK,cAAc,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,QAAQ,GACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAA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EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,KAAK,YAAY,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,KAAK,aAAa,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,OAAO,GACR,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EACT,QAAQ,EACR,SAAS,EACT,SAAS,EACT,WAAW,EACX,OAAO,EACP,UAAU,EACV,IAAI,EACJ,SAAS,EACT,UAAU,EACV,SAAS,EACT,QAAQ,EACR,SAAS,EACT,SAAS,EACT,QAAQ,GACT,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export { convert, fromRgba, toRgba, } from './convert.js';
|
|
|
11
11
|
export { defineColorPalette, } from './defineColorPalette.js';
|
|
12
12
|
export { detectFormat, isColor } from './detectFormat.js';
|
|
13
13
|
export { identify, } from './identify.js';
|
|
14
|
+
export { copic } from './palettes/copic.js';
|
|
14
15
|
export { crayola } from './palettes/crayola.js';
|
|
15
16
|
export { fs595b } from './palettes/fs595b.js';
|
|
16
17
|
export { fs595c } from './palettes/fs595c.js';
|
|
@@ -25,6 +26,7 @@ export { pokemon } from './palettes/pokemon.js';
|
|
|
25
26
|
export { ral } from './palettes/ral.js';
|
|
26
27
|
export { resene } from './palettes/resene.js';
|
|
27
28
|
export { tailwind } from './palettes/tailwind.js';
|
|
29
|
+
export { tcca } from './palettes/tcca.js';
|
|
28
30
|
export { usMilitary } from './palettes/usMilitary.js';
|
|
29
31
|
export { uswds } from './palettes/uswds.js';
|
|
30
32
|
export { web } from './palettes/web.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,sDAAsD;AAEtD,OAAO,GAAG,MAAM,iBAAiB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAExD,MAAM,CAAC,MAAM,OAAO,GAAW,GAAG,CAAC,OAAO,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,MAAM,GACP,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAuB,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAIL,QAAQ,GACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAyB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAwB,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAwB,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAyB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAA0B,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAA6B,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAqB,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAqB,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAqB,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAyB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAyB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAqB,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAwB,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAA0B,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAA4B,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAuB,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAqB,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAwB,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAqB,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAsB,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAIL,OAAO,GACR,MAAM,cAAc,CAAC;AAyBtB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC","sourcesContent":["// Public API barrel; explicit named re-exports only (tree-shake friendly).\n// No default export; no side effects at module scope.\n\nimport pkg from '../package.json' with { type: 'json' };\n\nexport const VERSION: string = pkg.version;\n\nexport { hexToRgba, rgbaToHex } from './conversions/hex.js';\nexport { hslToRgba, rgbaToHsl } from './conversions/hsl.js';\nexport { hsvToRgba, rgbaToHsv } from './conversions/hsv.js';\nexport { pantoneToRgba, rgbaToPantone } from './conversions/pantone.js';\nexport { rgbaToRgb, rgbToRgba } from './conversions/rgb.js';\nexport {\n type ConvertNameOptions,\n type ConvertPaletteOptions,\n type ConvertStructuralOptions,\n convert,\n fromRgba,\n toRgba,\n} from './convert.js';\nexport {\n type DefineColorPaletteInput,\n defineColorPalette,\n} from './defineColorPalette.js';\nexport { type DetectedFormat, detectFormat, isColor } from './detectFormat.js';\nexport {\n type IdentifyMatch,\n type IdentifyOptions,\n type IdentifyRankedOptions,\n identify,\n} from './identify.js';\nexport { type CrayolaColorName, crayola } from './palettes/crayola.js';\nexport { type Fs595bColorName, fs595b } from './palettes/fs595b.js';\nexport { type Fs595cColorName, fs595c } from './palettes/fs595c.js';\nexport { type IsccNbsColorName, isccNbs } from './palettes/isccNbs.js';\nexport { type MaterialColorName, material } from './palettes/material.js';\nexport { type MilStd2525dColorName, milStd2525d } from './palettes/milStd2525d.js';\nexport { type NbsColorName, nbs } from './palettes/nbs.js';\nexport { type NcsColorName, ncs } from './palettes/ncs.js';\nexport { type NtcColorName, ntc } from './palettes/ntc.js';\nexport { type PantoneColorName, pantone } from './palettes/pantone.js';\nexport { type PokemonColorName, pokemon } from './palettes/pokemon.js';\nexport { type RalColorName, ral } from './palettes/ral.js';\nexport { type ReseneColorName, resene } from './palettes/resene.js';\nexport { type TailwindColorName, tailwind } from './palettes/tailwind.js';\nexport { type UsMilitaryColorName, usMilitary } from './palettes/usMilitary.js';\nexport { type UswdsColorName, uswds } from './palettes/uswds.js';\nexport { type WebColorName, web } from './palettes/web.js';\nexport { type WernerColorName, werner } from './palettes/werner.js';\nexport { type X11ColorName, x11 } from './palettes/x11.js';\nexport { type XkcdColorName, xkcd } from './palettes/xkcd.js';\nexport {\n type ResolveFuzzyOptions,\n type ResolveMatch,\n type ResolveOptions,\n resolve,\n} from './resolve.js';\nexport type {\n ColorFormat,\n ColorInput,\n ColorValue,\n DistanceMetric,\n HexColor,\n HslInput,\n HslObject,\n HslString,\n HsvInput,\n HsvObject,\n HsvString,\n NormalizeFn,\n Palette,\n PaletteKey,\n Rgba,\n RgbaInput,\n RgbaString,\n RgbaTuple,\n RgbInput,\n RgbObject,\n RgbString,\n RgbTuple,\n} from './types.js';\nexport { COLOR_FORMATS } from './types.js';\n"]}
|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AAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAqB,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAyB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAyB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAqB,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAwB,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAA0B,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAsB,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAA4B,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAuB,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAqB,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAwB,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAqB,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAsB,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAIL,OAAO,GACR,MAAM,cAAc,CAAC;AAyBtB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC","sourcesContent":["// Public API barrel; explicit named re-exports only (tree-shake friendly).\n// No default export; no side effects at module scope.\n\nimport pkg from '../package.json' with { type: 'json' };\n\nexport const VERSION: string = pkg.version;\n\nexport { hexToRgba, rgbaToHex } from './conversions/hex.js';\nexport { hslToRgba, rgbaToHsl } from './conversions/hsl.js';\nexport { hsvToRgba, rgbaToHsv } from './conversions/hsv.js';\nexport { pantoneToRgba, rgbaToPantone } from './conversions/pantone.js';\nexport { rgbaToRgb, rgbToRgba } from './conversions/rgb.js';\nexport {\n type ConvertNameOptions,\n type ConvertPaletteOptions,\n type ConvertStructuralOptions,\n convert,\n fromRgba,\n toRgba,\n} from './convert.js';\nexport {\n type DefineColorPaletteInput,\n defineColorPalette,\n} from './defineColorPalette.js';\nexport { type DetectedFormat, detectFormat, isColor } from './detectFormat.js';\nexport {\n type IdentifyMatch,\n type IdentifyOptions,\n type IdentifyRankedOptions,\n identify,\n} from './identify.js';\nexport { type CopicColorName, copic } from './palettes/copic.js';\nexport { type CrayolaColorName, crayola } from './palettes/crayola.js';\nexport { type Fs595bColorName, fs595b } from './palettes/fs595b.js';\nexport { type Fs595cColorName, fs595c } from './palettes/fs595c.js';\nexport { type IsccNbsColorName, isccNbs } from './palettes/isccNbs.js';\nexport { type MaterialColorName, material } from './palettes/material.js';\nexport { type MilStd2525dColorName, milStd2525d } from './palettes/milStd2525d.js';\nexport { type NbsColorName, nbs } from './palettes/nbs.js';\nexport { type NcsColorName, ncs } from './palettes/ncs.js';\nexport { type NtcColorName, ntc } from './palettes/ntc.js';\nexport { type PantoneColorName, pantone } from './palettes/pantone.js';\nexport { type PokemonColorName, pokemon } from './palettes/pokemon.js';\nexport { type RalColorName, ral } from './palettes/ral.js';\nexport { type ReseneColorName, resene } from './palettes/resene.js';\nexport { type TailwindColorName, tailwind } from './palettes/tailwind.js';\nexport { type TccaColorName, tcca } from './palettes/tcca.js';\nexport { type UsMilitaryColorName, usMilitary } from './palettes/usMilitary.js';\nexport { type UswdsColorName, uswds } from './palettes/uswds.js';\nexport { type WebColorName, web } from './palettes/web.js';\nexport { type WernerColorName, werner } from './palettes/werner.js';\nexport { type X11ColorName, x11 } from './palettes/x11.js';\nexport { type XkcdColorName, xkcd } from './palettes/xkcd.js';\nexport {\n type ResolveFuzzyOptions,\n type ResolveMatch,\n type ResolveOptions,\n resolve,\n} from './resolve.js';\nexport type {\n ColorFormat,\n ColorInput,\n ColorValue,\n DistanceMetric,\n HexColor,\n HslInput,\n HslObject,\n HslString,\n HsvInput,\n HsvObject,\n HsvString,\n NormalizeFn,\n Palette,\n PaletteKey,\n Rgba,\n RgbaInput,\n RgbaString,\n RgbaTuple,\n RgbInput,\n RgbObject,\n RgbString,\n RgbTuple,\n} from './types.js';\nexport { COLOR_FORMATS } from './types.js';\n"]}
|