@csstools/postcss-oklab-function
Advanced tools
Comparing version 1.0.2 to 1.1.0
# Changes to PostCSS OKLab Function | ||
### 1.1.0 (April 4, 2022) | ||
- Allow percentage and number units in more color components. | ||
```css | ||
.percentages { | ||
color-1: oklab(40% 0.309% 0.975%); | ||
color-2: oklch(40% 31.718385875% 34.568626); | ||
/* becomes */ | ||
color-1: rgb(73, 71, 69); | ||
color-1: color(display-p3 0.28515 0.27983 0.27246); | ||
color-2: rgb(126, 37, 15); | ||
color-2: color(display-p3 0.45368 0.16978 0.09411); | ||
} | ||
.numbers { | ||
color-1: oklab(0.40 0.001236 0.0039); | ||
color-2: oklch(0.40 0.1268735435 34.568626); | ||
/* becomes */ | ||
color-1: rgb(73, 71, 69); | ||
color-1: color(display-p3 0.28515 0.27983 0.27246); | ||
color-2: rgb(126, 37, 15); | ||
color-2: color(display-p3 0.45368 0.16978 0.09411); | ||
} | ||
``` | ||
### 1.0.2 (March 8, 2022) | ||
@@ -4,0 +34,0 @@ |
{ | ||
"name": "@csstools/postcss-oklab-function", | ||
"description": "Use oklab() and oklch() color functions in CSS", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"license": "CC0-1.0", | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/csstools" | ||
}, | ||
"engines": { | ||
@@ -8,0 +12,0 @@ "node": "^12 || ^14 || >=16" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
44265
267