DEV Community

XiaoPangYing
XiaoPangYing

Posted on

A mutable color library for JavaScript: @xpyjs/color

color objects you can actually mutate.

c.red(255).green(0).blue(128) — it changes in place.
no copy. no immer. just state.

@xpyjs/color ships with 20+ official plugins: harmony, a11y, blend, cmyk, lab, gradient, palette, and more.
load what you need. dayjs-style plugin architecture.

zero bloat. ~4kb gzipped. type-safe.

npm i @xpyjs/color

Top comments (0)