1.3.4 • Published 5 months ago
stylelint-gamut v1.3.4
stylelint-gamut is a Stylelint plugin that helps you to work with different color spaces.
Rules
color-no-out-gamut-range
: Throw warning if color goes out of sRGB color space and is not wrapped in@media (color-gamut: p3) {}
or@media (color-gamut: rec2020) {}
.
Requirements
- node version ≥ 12.0.0
- Stylelint version ≥ 14.0.0.
Installation
- If you haven't, install Stylelint:
npm install stylelint stylelint-config-standard --save-dev
- Install
stylelint-gamut
:
npm install stylelint-gamut --save-dev
Usage
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
.
{
"plugins": ["stylelint-gamut"],
"rules": {
"gamut/color-no-out-gamut-range": true
}
}
More
It is already used by the creator of PostCSS.
Read more about color spaces in css:
1.3.4
5 months ago
1.3.3
11 months ago
1.3.2
11 months ago
1.3.1
1 year ago
1.2.8
2 years ago
1.2.7
2 years ago
1.2.6
2 years ago
1.2.5
2 years ago
1.3.0
2 years ago
1.2.9
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago