Package Exports
- stylelint-gamut
- stylelint-gamut/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stylelint-gamut) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
stylelint-gamut
Stylelint plugin for working with different color spaces.
Installation
- If you haven't, install Stylelint:
npm install stylelint --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,
}
}
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) {}.