Skip to content

Commit 86fd401

Browse files
committed
## [1.3.0] - 2024-07-12
## BIG UPDATE 🎉 ### Added - [X] Support for AdobeRGB, Oklab, Oklch, HSLuv, HPLuv, CIExyY, CIELuv, HWB, sRGB, and HSI color spaces - [X] Support for converting between D50 and D65 white points for XYZ and Lab color spaces - [X] New conversion functions: - `rgbToOklab()`, `oklabToRgb()` - `rgbToOklch()`, `oklchToRgb()` - `rgbToHSLuv()`, `hsluvToRgb()` - `rgbToHPLuv()`, `hpluvToRgb()` - `rgbToCIExyY()`, `ciexyYToRgb()` - `rgbToCIELuv()`, `cieLuvToRgb()` - `rgbToHwb()`, `hwbToRgb()` - `rgbToHsi()`, `hsiToRgb()` - `rgbToSrgb()`, `srgbToRgb()` - `adobeRGBToRGB()`, `rgbToAdobeRGB()` - `xyzD50ToD65()`, `xyzD65ToD50()` - `xyzD50ToRgb()`, `rgbToXyzD50()` - `labD50ToRgb()`, `rgbToLabD50()` - [X] New methods in Color class: `toOklab()`, `toOklch()`, `toHSLuv()`, `toHPLuv()`, `toCIExyY()`, `toCIELuv()`, `toHWB()`, `toHSI()`, `toSrgb()`, `toAdobeRGB()` - [X] Updated demo site to showcase new color spaces and conversions ### Changed - NAME CHANGE! 'next-color' is now 'color-core' - New Demo Site! Built with next-ui 🧑‍🎨 - Updated type definitions to include Oklab, Oklch, HSLuv, HPLuv, CIExyY, and CIELUV - Expanded test coverage for new color spaces, refactored tests to be less dumb. - New calculations for LCH color space to improve accuracy - New calculations for XYZ and LAB color spaces to account for white point differences [Documentation](https://color-core.com/docs)
1 parent 65d173e commit 86fd401

File tree

218 files changed

+6434
-2738
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+6434
-2738
lines changed

.vscode/settings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"editor.tokenColorCustomizations": {
3-
"comments": "",
4-
"textMateRules": []
5-
}
2+
"editor.tokenColorCustomizations": {
3+
"comments": "",
4+
"textMateRules": []
5+
}
66
}

CHANGELOG.md

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,41 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
## [Unreleased]
1010

11+
## [1.3.0] - 2024-07-12
12+
13+
## BIG UPDATE 🎉
14+
15+
### Added
16+
17+
- [X] Support for AdobeRGB, Oklab, Oklch, HSLuv, HPLuv, CIExyY, CIELuv, HWB, sRGB, and HSI color spaces
18+
- [X] Support for converting between D50 and D65 white points for XYZ and Lab color spaces
19+
- [X] New conversion functions:
20+
- `rgbToOklab()`, `oklabToRgb()`
21+
- `rgbToOklch()`, `oklchToRgb()`
22+
- `rgbToHSLuv()`, `hsluvToRgb()`
23+
- `rgbToHPLuv()`, `hpluvToRgb()`
24+
- `rgbToCIExyY()`, `ciexyYToRgb()`
25+
- `rgbToCIELuv()`, `cieLuvToRgb()`
26+
- `rgbToHwb()`, `hwbToRgb()`
27+
- `rgbToHsi()`, `hsiToRgb()`
28+
- `rgbToSrgb()`, `srgbToRgb()`
29+
- `adobeRGBToRGB()`, `rgbToAdobeRGB()`
30+
- `xyzD50ToD65()`, `xyzD65ToD50()`
31+
- `xyzD50ToRgb()`, `rgbToXyzD50()`
32+
- `labD50ToRgb()`, `rgbToLabD50()`
33+
- [X] New methods in Color class: `toOklab()`, `toOklch()`, `toHSLuv()`, `toHPLuv()`, `toCIExyY()`, `toCIELuv()`, `toHWB()`, `toHSI()`, `toSrgb()`, `toAdobeRGB()`
34+
- [X] Updated demo site to showcase new color spaces and conversions
35+
1136
### Changed
1237

1338
- NAME CHANGE! 'next-color' is now 'color-core'
1439
- New Demo Site! Built with next-ui :artist:
40+
- Updated type definitions to include Oklab, Oklch, HSLuv, HPLuv, CIExyY, and CIELUV
41+
- Expanded test coverage for new color spaces, refactored tests to be less dumb.
42+
- New calculations for LCH color space to improve accuracy
43+
- New calculations for XYZ and LAB color spaces to account for white point differences
1544

16-
### TODO
17-
18-
- Accessability features
19-
- More color manipulation methods
20-
- More color spaces
21-
- More color harmony functions
45+
[Documentation](https://color-core.com/docs)
2246

2347
## [1.2.0] - 2024-07-07
2448

0 commit comments

Comments
 (0)