A plugin for stylelint that analyze color contrast
npm install stylelint-color-contrast:construction:
``bash`
$ npm install --save-dev stylelint-color-contrast
.stylelintrc
`json``
{
"plugins": [
"stylelint-color-contrast"
],
"rules": {
"color-contrast/color-contrast": [
"color",
"background"
]
}
}