All Projects → ierhyna → stylelint-no-indistinguishable-colors

ierhyna / stylelint-no-indistinguishable-colors

Licence: other
Stylelint plugin to add rule no-indistinguishable-colors

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to stylelint-no-indistinguishable-colors

stylelint-selector-tag-no-without-class
Stylelint plugin to disallow certain tags without a class qualifier in selectors
Stars: ✭ 19 (+26.67%)
Mutual labels:  stylelint, stylelint-plugin
fe-standard-config-seed
前端通用代码规范自动化接入
Stars: ✭ 18 (+20%)
Mutual labels:  stylelint
stencil-boilerplate
A Stencil app boilerplate including routing, Redux etc.
Stars: ✭ 51 (+240%)
Mutual labels:  stylelint
static-webpack-boilerplate
🚀 Minimal & Modern Webpack Boilerplate for building static sites
Stars: ✭ 40 (+166.67%)
Mutual labels:  stylelint
eslint-config-stylelint
Stylelint org's shareable config for eslint
Stars: ✭ 45 (+200%)
Mutual labels:  stylelint
EditorConfig-Action
🔎A GitHub Action to check, enforce & fix EditorConfig style violations
Stars: ✭ 40 (+166.67%)
Mutual labels:  stylelint
ultimate-hot-boilerplate
🚀 node-react universal app boilerplate with everything on hot reload, SSR, GraphQL, Flow included
Stars: ✭ 35 (+133.33%)
Mutual labels:  stylelint
linter-sniffer-pretty-printer
Collection of packages and configs to lint and format code in your WordPress project.
Stars: ✭ 35 (+133.33%)
Mutual labels:  stylelint
stylelint-z-index-value-constraint
Stylelint rule for setting minimum and maximum constraint value for z-index.
Stars: ✭ 18 (+20%)
Mutual labels:  stylelint
lints
Lint all your JavaScript, CSS, HTML, Markdown and Dockerfiles with a single command
Stars: ✭ 14 (-6.67%)
Mutual labels:  stylelint
nerv-webpack-boilerplate
A webpack boilerplate with Nervjs
Stars: ✭ 52 (+246.67%)
Mutual labels:  stylelint
html-sass-jumpstart
Minimal Sass/HTML Template Site - dart sass powered, includes stylelint and prettier, and autoprefix upon build. develop script includes hot-reload via browsersync.
Stars: ✭ 82 (+446.67%)
Mutual labels:  stylelint
stylelint-config
App for generating stylelint config online
Stars: ✭ 100 (+566.67%)
Mutual labels:  stylelint
cra-template-quickstart-redux
Opinionated quickstart Create React App template with Redux, React Testing Library and custom eslint configuration
Stars: ✭ 66 (+340%)
Mutual labels:  stylelint
vue3-vite-ts
Vue 3 Scaffolding (Vite + TS + Linters + Jest + TailwindCSS)
Stars: ✭ 27 (+80%)
Mutual labels:  stylelint
promotion-web
基于React: v18.x.x/Webpack: v5.x.x/React Router v6.x.x/ Antd: v5..x.x/Fetch Api/ Typescript: v4.x.x 等最新版本进行构建...
Stars: ✭ 374 (+2393.33%)
Mutual labels:  stylelint
website-template
静的Webサイト制作を少しモダンにするためのテンプレート
Stars: ✭ 62 (+313.33%)
Mutual labels:  stylelint
stylelint-config
Sharable stylelint config used by GitHub's CSS
Stars: ✭ 194 (+1193.33%)
Mutual labels:  stylelint
bowman
A simple static site generator with an integrated toolchain for efficient development and delivery.
Stars: ✭ 17 (+13.33%)
Mutual labels:  stylelint
sonar-css-plugin
SonarQube CSS / SCSS / Less Analyzer
Stars: ✭ 46 (+206.67%)
Mutual labels:  stylelint

stylelint-no-indistinguishable-colors

Travis NPM Version

Stylelint plugin that disallows colors that are suspiciously close to being identical, using css-colorguard.

Installation

npm install --save-dev stylelint stylelint-no-indistinguishable-colors

Usage

Update your Stylelint config with following rules:

{
  "plugins": [
    "stylelint-no-indistinguishable-colors"
  ],
  "rules": {
    "plugin/stylelint-no-indistinguishable-colors": true
  }
}

Options

Boolean, or an array of options, where the first element is true, and the second is an options object.

Boolean option

true: Enables the plugin. Defaults to Colorguard's threshold of 3.

false: Disables the plugin.

Optional secondary options

Corresponds to Colorguard options object.

ignore: Array ['#colorA', '#colorB']

Hex color codes that you would like to ignore completely.

threshold: Number

Number can be between 0 and 100. The default value is 3.

The lower the threshold the more similar the colors have to be to trigger a violation. The higher the threshold, the more violations you will get.

whitelist: Array [['#colorA', '#colorB'], ['#colorC', '#colorD']]

An array of color pairs to ignore.

allowEquivalentNotation: Boolean

By default, colorguard will complain if identical colors are represented with different notations. For example, #000, #000000, rgba(0, 0, 0, 0), and black. If you want to permit these equivalent notations, set this option to true.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].