Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/electrovir/stylelint-plugin-color
Stylelint plugin for managing colors. Includes Less support.
https://github.com/electrovir/stylelint-plugin-color
color colors css less plugin stylelint stylsheet
Last synced: 3 months ago
JSON representation
Stylelint plugin for managing colors. Includes Less support.
- Host: GitHub
- URL: https://github.com/electrovir/stylelint-plugin-color
- Owner: electrovir
- Created: 2020-05-21T20:37:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-09T23:39:53.000Z (about 2 years ago)
- Last Synced: 2024-10-05T04:24:44.119Z (4 months ago)
- Topics: color, colors, css, less, plugin, stylelint, stylsheet
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/stylelint-plugin-color
- Size: 614 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stylelint Plugin Color
Stylelint plugin for managing colors. Includes Less and Scss support.
# Rules
Go to each rule's page (click on the name below) to see specific details.
| Rule | auto-fix |
| ------------------------------------------------- | -------- |
| [plugin-color/color-types](src/rules/color-types) | none |# Rule Options
All rules respect the following primary option format and _no_ secondary options:
- boolean input
```javascript
{
"rule-name": true // use default rule behavior
}
``````javascript
{
"rule-name": false // disables rule
}
```- object input
```javascript
{
"mode": "require" // requires the rule's default
}
``````javascript
{
"mode": "block" // blocks the rule's default
}
``````javascript
{
"mode": "off" // disable rule
}
```- object input with exceptions
```javascript
{
"mode": "require",
// optional input
// these use glob matching with globstar turned ON
"fileExceptions": [
"**/*colors.less", // ignores any files ending in colors.less in any directory
"*colors.less" // ignore files ending in colors.less only in the current directory
]
// optional input
// these use glob matching with globstar turned OFF
"lineExceptions": [
"*colors*", // ignores all lines that include the word colors
"@import 'colors'" // ignores all lines that are exactly this string (don't include semicolons)
],
}
```