chromonym 3.7.1 → 3.8.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 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
@@ -119,6 +138,41 @@ token maps in `packages/uswds-core`).
119
138
  - Chromonym is **not affiliated with** GSA or any US Government
120
139
  agency; no endorsement is implied.
121
140
 
141
+ ## U.S. military identity colors
142
+
143
+ The `usMilitary` palette (31 entries) records identity colors published
144
+ in official U.S. Government brand and trademark guidance:
145
+
146
+ - **U.S. Army:** *U.S. Army Brand Guidelines*, version 1.0, March 2023,
147
+ color palette specifications on pages 24 and 26. The specification
148
+ values are used where appendix accessibility tables differ.
149
+ - **Department of the Air Force:** the [Air Force Symbol](https://www.trademark.af.mil/Branding/Air-Force-Symbol/)
150
+ and [Air Force Emblem](https://www.trademark.af.mil/Branding/The-Air-Force-Emblem/)
151
+ colors published by the Air Force trademark office, accessed November 7,
152
+ 2026. Published RGB byte values were converted directly to hex;
153
+ rendering-only emblem highlights are excluded.
154
+ - **Department of War:** the
155
+ [U.S. Department of War Brand Guide](https://www.war.gov/Brand-Guide/),
156
+ updated September 25, 2025. The palette calls the guide's "Primary
157
+ Blue" `DOW Blue` and its "Slate Black" `DOW Black`, consistent with
158
+ the identity labels used by the guide's predecessor.
159
+
160
+ These publications are U.S. Government works. The color values are
161
+ published facts and are not subject to copyright restrictions in the
162
+ United States. Service and department names are used as nominative
163
+ references. Chromonym is not affiliated with, endorsed by, licensed by,
164
+ or certified by the U.S. Army, the Department of the Air Force, the
165
+ Department of War, or any other U.S. Government agency.
166
+
167
+ White and black values common to every guide are omitted because they
168
+ add no service-specific identity. Other services are omitted where the
169
+ available official guidance does not provide a reliable named digital
170
+ palette: Navy Recruiting Command publishes colliding names; the Marine
171
+ Corps guide prints contradictory hex and RGB values; the Coast Guard
172
+ publishes Pantone numbers only; the Space Force publishes unnamed
173
+ colors; and the National Guard sources are internally inconsistent or
174
+ outdated.
175
+
122
176
  ## CSS / SVG named colors
123
177
 
124
178
  The `web` palette mirrors the CSS Color Module Level 4 named-color
@@ -270,18 +324,42 @@ centroids from the primary Munsell data.
270
324
 
271
325
  ## Federal Standard 595 (FS595B and FS595C)
272
326
 
273
- The `fs595b` (209 entries) and `fs595c` (589 entries) palettes
274
- are derived from the Raku modules **`Color::Names::FS595B`** and
275
- **`Color::Names::FS595C`** in the
327
+ The `fs595b` palette (209 entries) is derived from the Raku module
328
+ **`Color::Names::FS595B`** in the
276
329
  [`thundergnat/Color-Names`](https://github.com/thundergnat/Color-Names)
277
- repository, which digitize the US Federal Government's
278
- **Federal Standard 595** paint-color specification (used for
279
- military, aviation, and government-equipment coatings). FS595B
280
- is the 1989 revision, superseded by FS595C in 2008. Both are
330
+ repository, which digitizes the US Federal Government's
331
+ **Federal Standard 595B** paint-color specification.
332
+
333
+ The `fs595c` palette has 682 entries. Values for 650 chips come from
334
+ the General Services Administration's measured **FED-STD-595C and
335
+ Change Notice 1** digital data, published January 16, 2008, and
336
+ updated July 31, 2008. Chromonym uses the D65/10 degree CIELAB columns
337
+ from the workbook's "CIE only" sheet. The archived
338
+ [data workbook](https://web.archive.org/web/20170515085542/https://www.gsa.gov/portal/getMediaData?mediaId=213223)
339
+ and [measurement method](https://web.archive.org/web/20170515072756/https://www.gsa.gov/portal/getMediaData?mediaId=213231)
340
+ are US Government works and are public domain.
341
+
342
+ GSA measured the chips with the CIE 1964 10 degree observer, while
343
+ sRGB is defined for the CIE 1931 2 degree observer. The conversion
344
+ therefore has an observer mismatch. Chromonym converts GSA's D65/10
345
+ degree CIELAB values through the corresponding D65 white point to
346
+ sRGB, clamps out-of-gamut channels, and rounds them to 8-bit values.
347
+
348
+ The following 32 compatibility entries are absent from GSA's data and
349
+ retain their prior `Color::Names::FS595C` values: `FS 10129`,
350
+ `FS 14087`, `FS 14108`, `FS 15053`, `FS 16152`, `FS 16231`,
351
+ `FS 17200`, `FS 20129`, `FS 24087`, `FS 25466`, `FS 30076`,
352
+ `FS 30129`, `FS 30152`, `FS 30400`, `FS 33432`, `FS 33591`,
353
+ `FS 34056`, `FS 34062`, `FS 34077`, `FS 34087`, `FS 34115`,
354
+ `FS 34172`, `FS 35050`, `FS 35053`, `FS 35115`, `FS 35182`,
355
+ `FS 36187`, `FS 36329`, `FS 36400`, `FS 37043`, `FS 37178`, and
356
+ `FS 38913`.
357
+
358
+ FS595B is the 1989 revision, superseded by FS595C in 2008. Both are
281
359
  still in active use depending on which revision a given piece of
282
- documentation or equipment references. The Federal Standard
283
- itself is a US-government-published specification and is not
284
- subject to copyright restrictions when faithfully reproduced.
360
+ documentation or equipment references. The Federal Standards and
361
+ GSA measurements are US Government publications and are not subject
362
+ to copyright restrictions when faithfully reproduced.
285
363
 
286
364
  - Canonical keys in both palettes are the 5-digit FS codes
287
365
  prefixed with `FS ` (e.g. `FS 11136`). Common names attached
@@ -293,12 +371,8 @@ subject to copyright restrictions when faithfully reproduced.
293
371
  revision).
294
372
  - Same-coded chips can differ in hex between the B and C
295
373
  revisions; for example `FS 11136` ("Insignia Red") is
296
- `#9b2f25` in FS595B versus `#a32b25` in FS595C. Pick the
374
+ `#9b2f25` in FS595B versus `#8c4040` in FS595C. Pick the
297
375
  palette that matches your reference documentation.
298
- - sRGB hex values are taken verbatim from the upstream modules'
299
- RGB byte triplets; the published standard specifies color
300
- chips under controlled lighting, and all digital sRGB
301
- approximations including these are necessarily simplified.
302
376
  - Chromonym is **not affiliated with** any US Government agency
303
377
  or defense contractor; no endorsement is implied.
304
378
 
package/README.md CHANGED
@@ -21,7 +21,7 @@
21
21
  <code>identify</code> &nbsp;•&nbsp; <code>resolve</code> &nbsp;•&nbsp; <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 nineteen 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, 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 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.
25
25
 
26
26
  <sub>*chromonym* (n.): a name for a color; *chroma* + *-onym*. Also the library.</sub>
27
27
 
@@ -349,7 +349,7 @@ 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 nineteen we ship
352
+ ### The twenty we ship
353
353
 
354
354
  | Name | Entries | Source |
355
355
  |---|---|---|
@@ -360,8 +360,9 @@ If you prefer zero runtime and already have hex-only values, the `as const satis
360
360
  | `ntc` | 1566 | Chirag Mehta's "Name That Color" dataset (broad coverage of design / UI / hardware names) |
361
361
  | `xkcd` | 923 | XKCD 2010 color-survey results (CC0; crowd-sourced common-speech names) |
362
362
  | `fs595b` | 209 | Federal Standard 595B paint chips (1989 revision; modelers / historical equipment) |
363
- | `fs595c` | 589 | Federal Standard 595C paint chips (US Government spec; military / aviation coatings) |
363
+ | `fs595c` | 682 | Federal Standard 595C paint chips (US Government spec; military / aviation coatings) |
364
364
  | `milStd2525d` | 20 | MIL-STD-2525D military symbology colors: hostile, friend, neutral, unknown, and civilian, in dark, medium, light, and unfilled |
365
+ | `usMilitary` | 31 | Identity colors from official U.S. Army, Air Force, and Department of War brand and trademark guidance |
365
366
  | `isccNbs` | 260 | ISCC-NBS Method of Designating Colors (1955 US standard; Munsell-partitioned named blocks) |
366
367
  | `nbs` | 267 | Second digitization of the same 1955 standard; different sRGB (matches 1955 chip book; covers the 7 blocks `isccNbs` leaves as gaps) |
367
368
  | `resene` | 1378 | Resene Paints (NZ) catalog; te reo Māori and NZ place-names in the naming |
@@ -520,7 +521,7 @@ const tryConvert = (input: ColorInput, opts = {}) => {
520
521
 
521
522
  **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
523
 
523
- The published tarball is **~2.4 MB unpacked / ~530 kB gzipped** because it carries nineteen palettes and ~10,100 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
+ The published tarball is **~2.4 MB unpacked / ~530 kB gzipped** because it carries twenty palettes and over 10,100 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
525
 
525
526
  | Import | min | gzip |
526
527
  |---|---|---|
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export { type PokemonColorName, pokemon } from './palettes/pokemon.js';
22
22
  export { type RalColorName, ral } from './palettes/ral.js';
23
23
  export { type ReseneColorName, resene } from './palettes/resene.js';
24
24
  export { type TailwindColorName, tailwind } from './palettes/tailwind.js';
25
+ export { type UsMilitaryColorName, usMilitary } from './palettes/usMilitary.js';
25
26
  export { type UswdsColorName, uswds } from './palettes/uswds.js';
26
27
  export { type WebColorName, web } from './palettes/web.js';
27
28
  export { type WernerColorName, werner } from './palettes/werner.js';
@@ -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,MAA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AC;AACvE,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,KAAK,YAAY,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,KAAK,mBAAmB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,KAAK,YAAY,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
@@ -25,6 +25,7 @@ export { pokemon } from './palettes/pokemon.js';
25
25
  export { ral } from './palettes/ral.js';
26
26
  export { resene } from './palettes/resene.js';
27
27
  export { tailwind } from './palettes/tailwind.js';
28
+ export { usMilitary } from './palettes/usMilitary.js';
28
29
  export { uswds } from './palettes/uswds.js';
29
30
  export { web } from './palettes/web.js';
30
31
  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,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,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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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"]}