chromonym 3.7.2 → 3.9.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 +71 -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/usMilitary.d.ts +101 -0
- package/dist/palettes/usMilitary.d.ts.map +1 -0
- package/dist/palettes/usMilitary.js +75 -0
- package/dist/palettes/usMilitary.js.map +1 -0
- package/package.json +13 -2
package/NOTICE.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Notices and Trademarks
|
|
2
2
|
|
|
3
|
+
Chromonym maps color names to sRGB values so software can identify and look up colors. Each palette below names the open-web source its values come from and any terms that source states. Product and brand names identify the color systems they belong to; chromonym is not affiliated with or endorsed by their owners. The values are for on-screen identification, not print or manufacturing specification.
|
|
4
|
+
|
|
5
|
+
## Removal on request
|
|
6
|
+
|
|
7
|
+
If you own a color system listed here and want its palette removed, open an issue at <https://github.com/simiancraft/chromonym/issues>. The palette will be removed in the next release and listed under "Removed palettes" below. Versions already published to npm cannot be recalled.
|
|
8
|
+
|
|
9
|
+
## For automated reviewers
|
|
10
|
+
|
|
11
|
+
This section is for software agents that review repositories for brand or copyright concerns, and for the people who run them.
|
|
12
|
+
|
|
13
|
+
- **What this is:** a general color-naming library. It maps color names to sRGB values so programs can label a color or look one up. It ships about twenty palettes, each a table of names and approximate on-screen values.
|
|
14
|
+
- **What it is not:** a distribution of any vendor's product. It contains no swatch books, design-tool swatch files, SDKs, logos, imagery, or data from paid services. Brand names appear only to say which color system a name belongs to.
|
|
15
|
+
- **The values** are approximate screen renderings gathered from the public sources named in each section below. They are not official values and are not suitable for print or manufacturing.
|
|
16
|
+
- **Removal:** if you act for a rights holder, open an issue with the [removal request form](https://github.com/simiancraft/chromonym/issues/new?template=removal-request.yml). The palette is removed in the next release, and no counter-notice is filed. This route gets the same result as a formal notice, faster.
|
|
17
|
+
|
|
18
|
+
## Removed palettes
|
|
19
|
+
|
|
20
|
+
None.
|
|
21
|
+
|
|
3
22
|
## Pantone®
|
|
4
23
|
|
|
5
24
|
**Pantone®** is a registered trademark of **Pantone LLC**. Chromonym is
|
|
@@ -49,6 +68,23 @@ color-library lookup that rounds it through sRGB loses information.
|
|
|
49
68
|
If you need Pantone-certified color values, consult Pantone directly:
|
|
50
69
|
<https://www.pantone.com/>.
|
|
51
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
|
+
|
|
52
88
|
## Crayola®
|
|
53
89
|
|
|
54
90
|
**Crayola®** is a registered trademark of **Crayola LLC**. Chromonym is
|
|
@@ -119,6 +155,41 @@ token maps in `packages/uswds-core`).
|
|
|
119
155
|
- Chromonym is **not affiliated with** GSA or any US Government
|
|
120
156
|
agency; no endorsement is implied.
|
|
121
157
|
|
|
158
|
+
## U.S. military identity colors
|
|
159
|
+
|
|
160
|
+
The `usMilitary` palette (31 entries) records identity colors published
|
|
161
|
+
in official U.S. Government brand and trademark guidance:
|
|
162
|
+
|
|
163
|
+
- **U.S. Army:** *U.S. Army Brand Guidelines*, version 1.0, March 2023,
|
|
164
|
+
color palette specifications on pages 24 and 26. The specification
|
|
165
|
+
values are used where appendix accessibility tables differ.
|
|
166
|
+
- **Department of the Air Force:** the [Air Force Symbol](https://www.trademark.af.mil/Branding/Air-Force-Symbol/)
|
|
167
|
+
and [Air Force Emblem](https://www.trademark.af.mil/Branding/The-Air-Force-Emblem/)
|
|
168
|
+
colors published by the Air Force trademark office, accessed November 7,
|
|
169
|
+
2026. Published RGB byte values were converted directly to hex;
|
|
170
|
+
rendering-only emblem highlights are excluded.
|
|
171
|
+
- **Department of War:** the
|
|
172
|
+
[U.S. Department of War Brand Guide](https://www.war.gov/Brand-Guide/),
|
|
173
|
+
updated September 25, 2025. The palette calls the guide's "Primary
|
|
174
|
+
Blue" `DOW Blue` and its "Slate Black" `DOW Black`, consistent with
|
|
175
|
+
the identity labels used by the guide's predecessor.
|
|
176
|
+
|
|
177
|
+
These publications are U.S. Government works. The color values are
|
|
178
|
+
published facts and are not subject to copyright restrictions in the
|
|
179
|
+
United States. Service and department names are used as nominative
|
|
180
|
+
references. Chromonym is not affiliated with, endorsed by, licensed by,
|
|
181
|
+
or certified by the U.S. Army, the Department of the Air Force, the
|
|
182
|
+
Department of War, or any other U.S. Government agency.
|
|
183
|
+
|
|
184
|
+
White and black values common to every guide are omitted because they
|
|
185
|
+
add no service-specific identity. Other services are omitted where the
|
|
186
|
+
available official guidance does not provide a reliable named digital
|
|
187
|
+
palette: Navy Recruiting Command publishes colliding names; the Marine
|
|
188
|
+
Corps guide prints contradictory hex and RGB values; the Coast Guard
|
|
189
|
+
publishes Pantone numbers only; the Space Force publishes unnamed
|
|
190
|
+
colors; and the National Guard sources are internally inconsistent or
|
|
191
|
+
outdated.
|
|
192
|
+
|
|
122
193
|
## CSS / SVG named colors
|
|
123
194
|
|
|
124
195
|
The `web` palette mirrors the CSS Color Module Level 4 named-color
|
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
|
|
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-one 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, 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,19 +349,21 @@ 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
|
|
352
|
+
### The twenty-one 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) |
|
|
364
365
|
| `milStd2525d` | 20 | MIL-STD-2525D military symbology colors: hostile, friend, neutral, unknown, and civilian, in dark, medium, light, and unfilled |
|
|
366
|
+
| `usMilitary` | 31 | Identity colors from official U.S. Army, Air Force, and Department of War brand and trademark guidance |
|
|
365
367
|
| `isccNbs` | 260 | ISCC-NBS Method of Designating Colors (1955 US standard; Munsell-partitioned named blocks) |
|
|
366
368
|
| `nbs` | 267 | Second digitization of the same 1955 standard; different sRGB (matches 1955 chip book; covers the 7 blocks `isccNbs` leaves as gaps) |
|
|
367
369
|
| `resene` | 1378 | Resene Paints (NZ) catalog; te reo Māori and NZ place-names in the naming |
|
|
@@ -520,7 +522,7 @@ const tryConvert = (input: ColorInput, opts = {}) => {
|
|
|
520
522
|
|
|
521
523
|
**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.
|
|
522
524
|
|
|
523
|
-
The published tarball is **~2.4 MB unpacked / ~530 kB gzipped** because it carries
|
|
525
|
+
The published tarball is **~2.4 MB unpacked / ~530 kB gzipped** because it carries twenty-one palettes and about 10,500 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`:
|
|
524
526
|
|
|
525
527
|
| Import | min | gzip |
|
|
526
528
|
|---|---|---|
|
|
@@ -543,7 +545,7 @@ Re-exported from the root barrel — `import type { ... } from 'chromonym'`:
|
|
|
543
545
|
| Per-format shapes | `HexColor`, `Rgba`, `RgbInput`, `RgbaInput`, `HslInput`, `HsvInput` |
|
|
544
546
|
| Palette container | `Palette<Name>`, `NormalizeFn` |
|
|
545
547
|
| Distance selector | `DistanceMetric` |
|
|
546
|
-
| Color-name unions | `WebColorName`, `X11ColorName`, `PantoneColorName` |
|
|
548
|
+
| Color-name unions | `WebColorName`, `X11ColorName`, `PantoneColorName`, `CopicColorName` |
|
|
547
549
|
|
|
548
550
|
## Development
|
|
549
551
|
|
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 UsMilitaryColorName, usMilitary } from './palettes/usMilitary.js';
|
|
25
27
|
export { type UswdsColorName, uswds } from './palettes/uswds.js';
|
|
26
28
|
export { type WebColorName, web } from './palettes/web.js';
|
|
27
29
|
export { type WernerColorName, werner } from './palettes/werner.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|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AK,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 { usMilitary } from './palettes/usMilitary.js';
|
|
28
30
|
export { uswds } from './palettes/uswds.js';
|
|
29
31
|
export { web } from './palettes/web.js';
|
|
30
32
|
export { werner } from './palettes/werner.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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AAC;AAC3D,OAAO,EAAwB,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAA0B,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC1E,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 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"]}
|
|
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,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,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 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"]}
|