@csstools/postcss-oklab-function 3.0.6 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -147
- package/README.md +2 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +1 -1
- package/package.json +14 -29
- package/dist/has-fallback-decl.d.ts +0 -2
- package/dist/has-supports-at-rule-ancestor.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,158 +1,26 @@
|
|
|
1
1
|
# Changes to PostCSS OKLab Function
|
|
2
2
|
|
|
3
|
-
### 3.0.
|
|
4
|
-
|
|
5
|
-
_October 2, 2023_
|
|
6
|
-
|
|
7
|
-
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`1.3.3`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#133) (patch)
|
|
8
|
-
|
|
9
|
-
### 3.0.5
|
|
10
|
-
|
|
11
|
-
_September 24, 2023_
|
|
12
|
-
|
|
13
|
-
- Small performance improvements
|
|
14
|
-
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.2.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#221) (patch)
|
|
15
|
-
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.3.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#232) (patch)
|
|
16
|
-
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`1.3.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#132) (patch)
|
|
17
|
-
|
|
18
|
-
### 3.0.4
|
|
19
|
-
|
|
20
|
-
_September 18, 2023_
|
|
21
|
-
|
|
22
|
-
- Updated [`@csstools/postcss-progressive-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties) to [`3.0.1`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md#301) (patch)
|
|
23
|
-
|
|
24
|
-
### 3.0.3
|
|
25
|
-
|
|
26
|
-
_September 2, 2023_
|
|
27
|
-
|
|
28
|
-
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`1.3.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#131) (patch)
|
|
29
|
-
|
|
30
|
-
### 3.0.2
|
|
31
|
-
|
|
32
|
-
_August 28, 2023_
|
|
33
|
-
|
|
34
|
-
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`1.3.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#130) (minor)
|
|
35
|
-
|
|
36
|
-
### 3.0.1
|
|
37
|
-
|
|
38
|
-
_July 24, 2023_
|
|
39
|
-
|
|
40
|
-
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.2.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#220) (minor)
|
|
41
|
-
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.3.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#231) (patch)
|
|
42
|
-
|
|
43
|
-
### 3.0.0
|
|
44
|
-
|
|
45
|
-
_July 3, 2023_
|
|
46
|
-
|
|
47
|
-
- Change license to `MIT-0` ([read more about this change in the blog post](https://preset-env.cssdb.org/blog/license-change/))
|
|
48
|
-
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.3.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#230) (minor)
|
|
49
|
-
- Updated [`@csstools/postcss-progressive-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties) to [`3.0.0`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md#300) (major)
|
|
50
|
-
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`1.2.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#122) (patch)
|
|
51
|
-
|
|
52
|
-
### 2.2.3
|
|
53
|
-
|
|
54
|
-
_June 1, 2023_
|
|
55
|
-
|
|
56
|
-
- Updated `@csstools/postcss-progressive-custom-properties` to `2.3.0` (minor)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### 2.2.2
|
|
60
|
-
|
|
61
|
-
_May 19, 2023_
|
|
62
|
-
|
|
63
|
-
- Ignore relative color syntax
|
|
64
|
-
- Updated `@csstools/postcss-progressive-custom-properties` to `2.2.0` (minor)
|
|
65
|
-
- Updated `@csstools/css-color-parser` to `1.2.0` (minor)
|
|
66
|
-
|
|
3
|
+
### 3.0.8
|
|
67
4
|
|
|
5
|
+
_December 15, 2023_
|
|
68
6
|
|
|
69
|
-
|
|
7
|
+
- Skip transforms when a color value contains experimental syntax
|
|
8
|
+
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.2.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#222) (patch)
|
|
9
|
+
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.4.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#240) (minor)
|
|
10
|
+
- Updated [`@csstools/postcss-progressive-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties) to [`3.0.3`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md#303) (patch)
|
|
11
|
+
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`1.5.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#150) (minor)
|
|
70
12
|
|
|
71
|
-
|
|
13
|
+
### 3.0.7
|
|
72
14
|
|
|
73
|
-
|
|
74
|
-
- Updated `@csstools/css-parser-algorithms` to `2.1.1` (patch)
|
|
75
|
-
- Updated `@csstools/css-color-parser` to `1.1.2` (patch)
|
|
15
|
+
_October 9, 2023_
|
|
76
16
|
|
|
77
|
-
|
|
17
|
+
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`1.4.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#140) (minor)
|
|
18
|
+
- Updated [`@csstools/postcss-progressive-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties) to [`3.0.2`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md#302) (patch)
|
|
78
19
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- Add `@csstools/css-color-parser` dependency for all color value transformations.
|
|
82
|
-
- Add support for `calc` expressions in color components.
|
|
83
|
-
- Skip `color(display-p3 0 0 0)` fallbacks when the color is already in the `srgb` gamut.
|
|
84
|
-
|
|
85
|
-
### 2.1.0
|
|
86
|
-
|
|
87
|
-
_February 6, 2023_
|
|
88
|
-
|
|
89
|
-
- Add: `@csstools/color-helpers` dependency for all color value transformations.
|
|
90
|
-
|
|
91
|
-
### 2.0.1
|
|
92
|
-
|
|
93
|
-
_January 28, 2023_
|
|
94
|
-
|
|
95
|
-
- Improve `types` declaration in `package.json`
|
|
96
|
-
|
|
97
|
-
### 2.0.0
|
|
98
|
-
|
|
99
|
-
_January 24, 2023_
|
|
100
|
-
|
|
101
|
-
- Updated: Support for Node v14+ (major).
|
|
102
|
-
|
|
103
|
-
### 1.1.1
|
|
104
|
-
|
|
105
|
-
_July 8, 2022_
|
|
106
|
-
|
|
107
|
-
- Fix case insensitive matching.
|
|
108
|
-
|
|
109
|
-
### 1.1.0
|
|
110
|
-
|
|
111
|
-
_April 4, 2022_
|
|
112
|
-
|
|
113
|
-
- Allow percentage and number units in more color components.
|
|
114
|
-
|
|
115
|
-
```css
|
|
116
|
-
.percentages {
|
|
117
|
-
color-1: oklab(40% 0.309% 0.975%);
|
|
118
|
-
color-2: oklch(40% 31.718385875% 34.568626);
|
|
119
|
-
|
|
120
|
-
/* becomes */
|
|
121
|
-
|
|
122
|
-
color-1: rgb(73, 71, 69);
|
|
123
|
-
color-1: color(display-p3 0.28515 0.27983 0.27246);
|
|
124
|
-
color-2: rgb(126, 37, 15);
|
|
125
|
-
color-2: color(display-p3 0.45368 0.16978 0.09411);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.numbers {
|
|
129
|
-
color-1: oklab(0.40 0.001236 0.0039);
|
|
130
|
-
color-2: oklch(0.40 0.1268735435 34.568626);
|
|
131
|
-
|
|
132
|
-
/* becomes */
|
|
133
|
-
|
|
134
|
-
color-1: rgb(73, 71, 69);
|
|
135
|
-
color-1: color(display-p3 0.28515 0.27983 0.27246);
|
|
136
|
-
color-2: rgb(126, 37, 15);
|
|
137
|
-
color-2: color(display-p3 0.45368 0.16978 0.09411);
|
|
138
|
-
}
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
### 1.0.2
|
|
142
|
-
|
|
143
|
-
_March 8, 2022_
|
|
144
|
-
|
|
145
|
-
- Fix gamut mapping giving overly unsaturated colors.
|
|
146
|
-
- Implement powerless color components in gamut mapping.
|
|
147
|
-
|
|
148
|
-
### 1.0.1
|
|
149
|
-
|
|
150
|
-
_February 12, 2022_
|
|
151
|
-
|
|
152
|
-
- Updated `@csstools/postcss-progressive-custom-properties` to `1.1.0`.
|
|
20
|
+
### 3.0.6
|
|
153
21
|
|
|
154
|
-
|
|
22
|
+
_October 2, 2023_
|
|
155
23
|
|
|
156
|
-
|
|
24
|
+
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`1.3.3`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#133) (patch)
|
|
157
25
|
|
|
158
|
-
-
|
|
26
|
+
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function/CHANGELOG.md)
|
package/README.md
CHANGED
|
@@ -95,7 +95,8 @@ postcssOKLabFunction({ preserve: true })
|
|
|
95
95
|
The `enableProgressiveCustomProperties` option determines whether the original notation
|
|
96
96
|
is wrapped with `@supports` when used in Custom Properties. By default, it is enabled.
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
> [!NOTE]
|
|
99
|
+
> We only recommend disabling this when you set `preserve` to `false` or if you bring your own fix for Custom Properties. See what the plugin does in its [README](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties#readme).
|
|
99
100
|
|
|
100
101
|
```js
|
|
101
102
|
postcssOKLabFunction({ enableProgressiveCustomProperties: false })
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@csstools/postcss-progressive-custom-properties"),s=require("@csstools/css-tokenizer"),r=require("@csstools/css-color-parser"),t=require("@csstools/css-parser-algorithms");function hasFallback(e){const s=e.parent;if(!s)return!1;const r=e.prop.toLowerCase(),t=s.index(e);for(let e=0;e<t;e++){const t=s.nodes[e];if("decl"===t.type&&t.prop.toLowerCase()===r)return!0}return!1}function hasSupportsAtRuleAncestor(e){let s=e.parent;for(;s;)if("atrule"===s.type){if("supports"===s.name.toLowerCase()){if(-1!==s.params.toLowerCase().indexOf("oklab("))return!0;if(-1!==s.params.toLowerCase().indexOf("oklch("))return!0}s=s.parent}else s=s.parent;return!1}const o=/(oklab|oklch)\(/i,a=/^(oklab|oklch)$/i,basePlugin=e=>({postcssPlugin:"postcss-oklab-function",Declaration:n=>{const
|
|
1
|
+
"use strict";var e=require("@csstools/postcss-progressive-custom-properties"),s=require("@csstools/css-tokenizer"),r=require("@csstools/css-color-parser"),t=require("@csstools/css-parser-algorithms");function hasFallback(e){const s=e.parent;if(!s)return!1;const r=e.prop.toLowerCase(),t=s.index(e);for(let e=0;e<t;e++){const t=s.nodes[e];if("decl"===t.type&&t.prop.toLowerCase()===r)return!0}return!1}function hasSupportsAtRuleAncestor(e){let s=e.parent;for(;s;)if("atrule"===s.type){if("supports"===s.name.toLowerCase()){if(-1!==s.params.toLowerCase().indexOf("oklab("))return!0;if(-1!==s.params.toLowerCase().indexOf("oklch("))return!0}s=s.parent}else s=s.parent;return!1}const o=/(oklab|oklch)\(/i,a=/^(oklab|oklch)$/i,basePlugin=e=>({postcssPlugin:"postcss-oklab-function",Declaration:n=>{const i=n.value;if(!o.test(i))return;if(hasFallback(n))return;if(hasSupportsAtRuleAncestor(n))return;const l=s.tokenize({css:i}),u=t.replaceComponentValues(t.parseCommaSeparatedListOfComponentValues(l),(e=>{if(t.isFunctionNode(e)&&a.test(e.getName())){const s=r.color(e);if(!s)return;if(s.syntaxFlags.has(r.SyntaxFlag.Experimental))return;if(s.syntaxFlags.has(r.SyntaxFlag.HasNoneKeywords))return;if(s.syntaxFlags.has(r.SyntaxFlag.RelativeColorSyntax))return;return r.serializeRGB(s)}})),p=t.stringify(u);if(p===i)return;let c=p;e?.subFeatures.displayP3&&(c=t.stringify(t.replaceComponentValues(t.parseCommaSeparatedListOfComponentValues(l),(e=>{if(t.isFunctionNode(e)&&a.test(e.getName())){const s=r.color(e);if(!s)return;if(s.syntaxFlags.has(r.SyntaxFlag.HasNoneKeywords))return;if(s.syntaxFlags.has(r.SyntaxFlag.RelativeColorSyntax))return;return r.colorDataFitsRGB_Gamut(s)?r.serializeRGB(s):r.serializeP3(s)}})))),n.cloneBefore({value:p}),e?.subFeatures.displayP3&&c!==p&&n.cloneBefore({value:c}),e?.preserve||n.remove()}});basePlugin.postcss=!0;const postcssPlugin=s=>{const r=Object.assign({enableProgressiveCustomProperties:!0,preserve:!1,subFeatures:{displayP3:!0}},s);return r.subFeatures=Object.assign({displayP3:!0},r.subFeatures),r.enableProgressiveCustomProperties&&(r.preserve||r.subFeatures.displayP3)?{postcssPlugin:"postcss-oklab-function",plugins:[e(),basePlugin(r)]}:basePlugin(r)};postcssPlugin.postcss=!0,module.exports=postcssPlugin;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PluginCreator } from 'postcss';
|
|
2
|
+
|
|
2
3
|
/** postcss-oklab-function plugin options */
|
|
3
|
-
export type pluginOptions = {
|
|
4
|
+
export declare type pluginOptions = {
|
|
4
5
|
/** Preserve the original notation. default: false */
|
|
5
6
|
preserve?: boolean;
|
|
6
7
|
/** Enable "@csstools/postcss-progressive-custom-properties". default: true */
|
|
@@ -11,5 +12,8 @@ export type pluginOptions = {
|
|
|
11
12
|
displayP3?: boolean;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
15
|
+
|
|
14
16
|
declare const postcssPlugin: PluginCreator<pluginOptions>;
|
|
15
17
|
export default postcssPlugin;
|
|
18
|
+
|
|
19
|
+
export { }
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import s from"@csstools/postcss-progressive-custom-properties";import{tokenize as e}from"@csstools/css-tokenizer";import{color as r,SyntaxFlag as t,serializeRGB as o,colorDataFitsRGB_Gamut as a,serializeP3 as n}from"@csstools/css-color-parser";import{replaceComponentValues as
|
|
1
|
+
import s from"@csstools/postcss-progressive-custom-properties";import{tokenize as e}from"@csstools/css-tokenizer";import{color as r,SyntaxFlag as t,serializeRGB as o,colorDataFitsRGB_Gamut as a,serializeP3 as n}from"@csstools/css-color-parser";import{replaceComponentValues as i,parseCommaSeparatedListOfComponentValues as l,isFunctionNode as u,stringify as p}from"@csstools/css-parser-algorithms";function hasFallback(s){const e=s.parent;if(!e)return!1;const r=s.prop.toLowerCase(),t=e.index(s);for(let s=0;s<t;s++){const t=e.nodes[s];if("decl"===t.type&&t.prop.toLowerCase()===r)return!0}return!1}function hasSupportsAtRuleAncestor(s){let e=s.parent;for(;e;)if("atrule"===e.type){if("supports"===e.name.toLowerCase()){if(-1!==e.params.toLowerCase().indexOf("oklab("))return!0;if(-1!==e.params.toLowerCase().indexOf("oklch("))return!0}e=e.parent}else e=e.parent;return!1}const c=/(oklab|oklch)\(/i,f=/^(oklab|oklch)$/i,basePlugin=s=>({postcssPlugin:"postcss-oklab-function",Declaration:m=>{const b=m.value;if(!c.test(b))return;if(hasFallback(m))return;if(hasSupportsAtRuleAncestor(m))return;const g=e({css:b}),y=i(l(g),(s=>{if(u(s)&&f.test(s.getName())){const e=r(s);if(!e)return;if(e.syntaxFlags.has(t.Experimental))return;if(e.syntaxFlags.has(t.HasNoneKeywords))return;if(e.syntaxFlags.has(t.RelativeColorSyntax))return;return o(e)}})),d=p(y);if(d===b)return;let h=d;s?.subFeatures.displayP3&&(h=p(i(l(g),(s=>{if(u(s)&&f.test(s.getName())){const e=r(s);if(!e)return;if(e.syntaxFlags.has(t.HasNoneKeywords))return;if(e.syntaxFlags.has(t.RelativeColorSyntax))return;return a(e)?o(e):n(e)}})))),m.cloneBefore({value:d}),s?.subFeatures.displayP3&&h!==d&&m.cloneBefore({value:h}),s?.preserve||m.remove()}});basePlugin.postcss=!0;const postcssPlugin=e=>{const r=Object.assign({enableProgressiveCustomProperties:!0,preserve:!1,subFeatures:{displayP3:!0}},e);return r.subFeatures=Object.assign({displayP3:!0},r.subFeatures),r.enableProgressiveCustomProperties&&(r.preserve||r.subFeatures.displayP3)?{postcssPlugin:"postcss-oklab-function",plugins:[s(),basePlugin(r)]}:basePlugin(r)};postcssPlugin.postcss=!0;export{postcssPlugin as default};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csstools/postcss-oklab-function",
|
|
3
3
|
"description": "Use oklab() and oklch() color functions in CSS",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.8",
|
|
5
5
|
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
|
|
6
6
|
"license": "MIT-0",
|
|
7
7
|
"funding": [
|
|
@@ -17,15 +17,18 @@
|
|
|
17
17
|
"engines": {
|
|
18
18
|
"node": "^14 || ^16 || >=18"
|
|
19
19
|
},
|
|
20
|
+
"type": "module",
|
|
20
21
|
"main": "dist/index.cjs",
|
|
21
22
|
"module": "dist/index.mjs",
|
|
22
|
-
"types": "./dist/index.d.ts",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"default": "./dist/index.mjs"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"default": "./dist/index.cjs"
|
|
31
|
+
}
|
|
29
32
|
}
|
|
30
33
|
},
|
|
31
34
|
"files": [
|
|
@@ -35,25 +38,14 @@
|
|
|
35
38
|
"dist"
|
|
36
39
|
],
|
|
37
40
|
"dependencies": {
|
|
38
|
-
"@csstools/css-color-parser": "^1.
|
|
39
|
-
"@csstools/css-parser-algorithms": "^2.
|
|
40
|
-
"@csstools/css-tokenizer": "^2.2.
|
|
41
|
-
"@csstools/postcss-progressive-custom-properties": "^3.0.
|
|
41
|
+
"@csstools/css-color-parser": "^1.5.0",
|
|
42
|
+
"@csstools/css-parser-algorithms": "^2.4.0",
|
|
43
|
+
"@csstools/css-tokenizer": "^2.2.2",
|
|
44
|
+
"@csstools/postcss-progressive-custom-properties": "^3.0.3"
|
|
42
45
|
},
|
|
43
46
|
"peerDependencies": {
|
|
44
47
|
"postcss": "^8.4"
|
|
45
48
|
},
|
|
46
|
-
"devDependencies": {
|
|
47
|
-
"@csstools/postcss-tape": "*"
|
|
48
|
-
},
|
|
49
|
-
"scripts": {
|
|
50
|
-
"build": "rollup -c ../../rollup/default.mjs",
|
|
51
|
-
"docs": "node ../../.github/bin/generate-docs/install.mjs",
|
|
52
|
-
"lint": "node ../../.github/bin/format-package-json.mjs",
|
|
53
|
-
"prepublishOnly": "npm run build && npm run test",
|
|
54
|
-
"test": "node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs",
|
|
55
|
-
"test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs"
|
|
56
|
-
},
|
|
57
49
|
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function#readme",
|
|
58
50
|
"repository": {
|
|
59
51
|
"type": "git",
|
|
@@ -71,12 +63,5 @@
|
|
|
71
63
|
"postcss",
|
|
72
64
|
"postcss-plugin",
|
|
73
65
|
"syntax"
|
|
74
|
-
]
|
|
75
|
-
"csstools": {
|
|
76
|
-
"exportName": "postcssOKLabFunction",
|
|
77
|
-
"humanReadableName": "PostCSS OKLab Function"
|
|
78
|
-
},
|
|
79
|
-
"volta": {
|
|
80
|
-
"extends": "../../package.json"
|
|
81
|
-
}
|
|
66
|
+
]
|
|
82
67
|
}
|