Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

Colorette Changes

Andrey Sitnik edited this page Sep 25, 2021 · 12 revisions

This project was started as fork of colorette 2.0.2 because of API changes in 2.x branch.

Current API differences:

  1. Colors support detection for top-level color functions (colorette later do the same).
  2. Color functions was rewritten for better loading performance.
  3. Color support detections added --color and --no-color arguments support for chalk compatibility.
  4. Type safety fixes for disabled colors.
  5. *Bright colors was removed for smaller package size. They have inconsistent support and rarely used.
  6. Universal browser/Node.js project support.
  7. Build scripts was replaced to manually created ESM/CJS dual package for smaller package size.
  8. createColors API changes.

Clone this wiki locally