stylelint-gamut 1.1.1 → 1.1.2
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/README.md +13 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# stylelint-gamut
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
**stylelint-gamut** is a [Stylelint] plugin that helps you to work with different color spaces.
|
|
4
|
+
|
|
5
|
+
Right now it's working with **node version ≥ 16.0.0**.
|
|
4
6
|
|
|
5
7
|
# Installation
|
|
6
8
|
|
|
@@ -18,21 +20,21 @@ npm install stylelint-gamut --save-dev
|
|
|
18
20
|
|
|
19
21
|
## Usage
|
|
20
22
|
|
|
21
|
-
Add `stylelint-gamut` to your Stylelint config `plugins` array, then add rules you need to the rules list. All rules from stylelint-gamut need to be namespaced with `gamut`.
|
|
23
|
+
Add `stylelint-gamut` to your Stylelint config `plugins` array, then add rules you need to the rules list. All rules from `stylelint-gamut` need to be namespaced with `gamut`.
|
|
22
24
|
|
|
23
25
|
```json
|
|
24
26
|
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
"plugins": [
|
|
28
|
+
"stylelint-gamut"
|
|
29
|
+
],
|
|
30
|
+
"rules": {
|
|
31
|
+
"gamut/color-no-out-gamut-range": true,
|
|
32
|
+
}
|
|
31
33
|
}
|
|
32
34
|
```
|
|
33
35
|
|
|
34
36
|
## Rules
|
|
35
37
|
|
|
36
|
-
* [`color-no-out-gamut-range`](./src/README.md): Throw warning if color goes out of sRGB color space and is not wrapped in
|
|
38
|
+
* [`color-no-out-gamut-range`](./src/README.md): Throw warning if color goes out of sRGB color space and is not wrapped in `@media (color-gamut: p3) {}`.
|
|
37
39
|
|
|
38
|
-
[Stylelint]: https://stylelint.io/
|
|
40
|
+
[Stylelint]: https://stylelint.io/
|