Releases: smikhalevski/paint-bucket
Releases · smikhalevski/paint-bucket
v2.2.0
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
Changelog: v2.1.1...v2.1.2
- Fixed
isolatedModules
support. - Added missing exports to package.json.
v2.1.1
Changelog: v2.1.0...v2.1.1
Paths of imported and exported modules now have an explicit extension specified.
v2.1.0
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
Changelog: v2.0.0...v2.0.1
Exported types were made backward compatible with TypeScript 4.1.
v2.0.0
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 toclr
:
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']);
-
Added palette plugin that introduces
complement
,triad
,tetrad
,splitComplement
,analogous
, andmonochromatic
palette functions.