Skip to content

Color Value Tools ​

1.2.2 ​

2026-09-24

  • New subpath imports by function group: color-value-tools/parse, /convert, /manipulate, /palette, /a11y and /cache. They work with both import and require and 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.ts files.
  • The package is marked sideEffects: false, so bundlers can drop unused code more reliably.
  • The cvt CLI 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()'s wcagLevel now uses the same effective background color as minContrastRatio/readable for 'semi-transparent'/'gradient' backgrounds, instead of always '#ffffff'.