Color Value Tools
1.2.2
2026-09-24
- New subpath imports by function group:
color-value-tools/parse,/convert,/manipulate,/palette,/a11yand/cache. They work with bothimportandrequireand ship their own TypeScript types. Importing from the package root works exactly as before. - ESM consumers now get ESM type declarations; previously the ESM build used the CommonJS
.d.tsfiles. - The package is marked
sideEffects: false, so bundlers can drop unused code more reliably. - The
cvtCLI now uses the package's own build instead of shipping a second copy of the library. Commands and output are unchanged.
1.2.1
2026-09-12
isReadableOnBackground()'swcagLevelnow uses the same effective background color asminContrastRatio/readablefor'semi-transparent'/'gradient'backgrounds, instead of always'#ffffff'.