@csstools/postcss-contrast-color-function 1.0.6 → 2.0.1
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 +4 -20
- package/README.md +1 -14
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,26 +1,10 @@
|
|
|
1
1
|
# Changes to PostCSS Contrast Color Function
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### 2.0.1
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
_August 14, 2024_
|
|
6
6
|
|
|
7
|
-
- Updated [`@csstools/
|
|
8
|
-
|
|
9
|
-
### 1.0.5
|
|
10
|
-
|
|
11
|
-
_July 6, 2024_
|
|
12
|
-
|
|
13
|
-
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.4.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#241) (patch)
|
|
14
|
-
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.7.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#271) (patch)
|
|
15
|
-
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`2.0.4`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#204) (patch)
|
|
16
|
-
|
|
17
|
-
### 1.0.4
|
|
18
|
-
|
|
19
|
-
_June 29, 2024_
|
|
20
|
-
|
|
21
|
-
- Updated [`@csstools/color-helpers`](https://github.com/csstools/postcss-plugins/tree/main/packages/color-helpers) to [`4.2.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/color-helpers/CHANGELOG.md#421) (patch)
|
|
22
|
-
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.3.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#232) (patch)
|
|
23
|
-
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.7.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#270) (minor)
|
|
24
|
-
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`2.0.3`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#203) (patch)
|
|
7
|
+
- Updated [`@csstools/color-helpers`](https://github.com/csstools/postcss-plugins/tree/main/packages/color-helpers) to [`5.0.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/color-helpers/CHANGELOG.md#501) (patch)
|
|
8
|
+
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`3.0.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#301) (patch)
|
|
25
9
|
|
|
26
10
|
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-contrast-color-function/CHANGELOG.md)
|
package/README.md
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
# PostCSS Contrast Color Function [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS]
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
npm install @csstools/postcss-contrast-color-function --save-dev
|
|
7
|
-
```
|
|
3
|
+
`npm install @csstools/postcss-contrast-color-function --save-dev`
|
|
8
4
|
|
|
9
5
|
[PostCSS Contrast Color Function] lets you dynamically specify a text color with adequate contrast following the [CSS Color 5 Specification].
|
|
10
6
|
|
|
@@ -57,16 +53,7 @@ postcss([
|
|
|
57
53
|
]).process(YOUR_CSS /*, processOptions */);
|
|
58
54
|
```
|
|
59
55
|
|
|
60
|
-
[PostCSS Contrast Color Function] runs in all Node environments, with special
|
|
61
|
-
instructions for:
|
|
62
56
|
|
|
63
|
-
- [Node](INSTALL.md#node)
|
|
64
|
-
- [PostCSS CLI](INSTALL.md#postcss-cli)
|
|
65
|
-
- [PostCSS Load Config](INSTALL.md#postcss-load-config)
|
|
66
|
-
- [Webpack](INSTALL.md#webpack)
|
|
67
|
-
- [Next.js](INSTALL.md#nextjs)
|
|
68
|
-
- [Gulp](INSTALL.md#gulp)
|
|
69
|
-
- [Grunt](INSTALL.md#grunt)
|
|
70
57
|
|
|
71
58
|
## Options
|
|
72
59
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csstools/postcss-contrast-color-function",
|
|
3
3
|
"description": "Dynamically specify a text color with adequate contrast",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Antonio Laguna",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
],
|
|
27
27
|
"engines": {
|
|
28
|
-
"node": "
|
|
28
|
+
"node": ">=18"
|
|
29
29
|
},
|
|
30
30
|
"type": "module",
|
|
31
31
|
"main": "dist/index.cjs",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"dist"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@csstools/color-helpers": "^
|
|
52
|
-
"@csstools/css-color-parser": "^
|
|
53
|
-
"@csstools/css-parser-algorithms": "^
|
|
54
|
-
"@csstools/css-tokenizer": "^
|
|
55
|
-
"@csstools/postcss-progressive-custom-properties": "^
|
|
56
|
-
"@csstools/utilities": "^
|
|
51
|
+
"@csstools/color-helpers": "^5.0.1",
|
|
52
|
+
"@csstools/css-color-parser": "^3.0.1",
|
|
53
|
+
"@csstools/css-parser-algorithms": "^3.0.0",
|
|
54
|
+
"@csstools/css-tokenizer": "^3.0.0",
|
|
55
|
+
"@csstools/postcss-progressive-custom-properties": "^4.0.0",
|
|
56
|
+
"@csstools/utilities": "^2.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"postcss": "^8.4"
|