haus-colour-names 0.1.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  The dataset is [meodai/color-names](https://github.com/meodai/color-names). This package
6
6
  carries it and normalises the hexes; the perceptual matching lives in
7
7
  [`haus-colour-utils`](../colour-utils), so a project that wants CIEDE2000 or WCAG contrast
8
- does not install 748KB of names to get them.
8
+ does not install 764KB of names to get them.
9
9
 
10
10
  ```bash
11
11
  npm install haus-colour-names haus-colour-utils
@@ -18,7 +18,7 @@ import { createNamedColourMatcher } from 'haus-colour-utils'
18
18
  const nameColour = createNamedColourMatcher(colourNameEntries())
19
19
 
20
20
  nameColour('#4f84ba', 3)
21
- // [ { name: 'Blue Cola', hex: '#4a84c4', distance: 3.1 }, … ]
21
+ // [ { name: 'Blue Vault', hex: '#4e83bd', distance: 0.7 }, … ]
22
22
  ```
23
23
 
24
24
  `haus-colour-utils` bundles 289 basic colour terms and uses them by default, so reach for