Skip to content

Releases: smikhalevski/paint-bucket

v2.2.0

25 Oct 15:29
Compare
Choose a tag to compare

Changelog: v2.1.2...v2.2.0

Simplified plugin imports:

import { clr } from 'paint-bucket/core';
import 'paint-bucket/core/hsl';

clr().hsl();

v2.1.2

17 Jul 17:50
Compare
Choose a tag to compare

Changelog: v2.1.1...v2.1.2

  • Fixed isolatedModules support.
  • Added missing exports to package.json.

v2.1.1

19 Sep 20:50
Compare
Choose a tag to compare

Changelog: v2.1.0...v2.1.1

Paths of imported and exported modules now have an explicit extension specified.

v2.1.0

04 Sep 16:19
Compare
Choose a tag to compare

Changelog: v2.0.1...v2.1.0

  • Added support for CMYK, HWB, and Hunter Lab color models.
  • Added plugins for HSV and LAB.

v2.0.1

24 Aug 21:20
Compare
Choose a tag to compare

Changelog: v2.0.0...v2.0.1

Exported types were made backward compatible with TypeScript 4.1.

v2.0.0

24 Aug 20:26
Compare
Choose a tag to compare

Changelog: v1.1.0...v2.0.0

  • Paint Bucket is now a single package that exposes multiple exports that affect what plugins are included.

Import all plugins and color models automatically, not tree-shakeable:

import { Color } from 'paint-bucket';

Import plugins manually, tree-shakeable:

import { Color } from 'paint-bucket/core';
import rgbPlugin from 'paint-bucket/plugin/rgb';

// Enable the plugin
rgbPlugin(Color);
  • color was renamed to clr:
clr('pink').css(); // ⮕ "#ffc0cb"
  • Stops can be added to gradient dynamically:
clr.gradient()
  .stop(0, 'red')
  .stop(50, 'pink')
  .stop(100, 'blue')
  .at(70)
  .css();
// ⮕ "#9973e0"
  • Stops can be added to gradient statically:
clr.gradient(['#fff', '#000']);