{"id":19653045,"url":"https://github.com/csstools/stylelint-color-control","last_synced_at":"2025-04-28T17:31:20.968Z","repository":{"id":66028400,"uuid":"167437443","full_name":"csstools/stylelint-color-control","owner":"csstools","description":"Control color usage in CSS","archived":false,"fork":false,"pushed_at":"2019-05-13T17:59:24.000Z","size":7,"stargazers_count":4,"open_issues_count":3,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-14T02:27:35.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csstools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-01-24T21:03:48.000Z","updated_at":"2023-01-19T20:40:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e4b7308-1324-465b-9f34-3a6b66763238","html_url":"https://github.com/csstools/stylelint-color-control","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"17f1ea7f822491c57c6ce8f7d15cf3d6555b2fb5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fstylelint-color-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fstylelint-color-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fstylelint-color-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fstylelint-color-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csstools","download_url":"https://codeload.github.com/csstools/stylelint-color-control/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223238533,"owners_count":17111529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T15:13:00.750Z","updated_at":"2024-11-11T15:13:01.581Z","avatar_url":"https://github.com/csstools.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stylelint Color Control [\u003cimg src=\"https://jonathantneal.github.io/stylelint-logo.svg\" alt=\"stylelint\" width=\"90\" height=\"90\" align=\"right\"\u003e][stylelint]\n\n[![NPM Version][npm-img]][npm-url]\n[![Build Status][cli-img]][cli-url]\n[![Support Chat][git-img]][git-url]\n\n[Stylelint Color Control] is a [stylelint] rule to control color usage in CSS.\n\n## Usage\n\nAdd [stylelint] and [Stylelint Color Control] to your project.\n\n```bash\nnpm install stylelint stylelint-color-control --save-dev\n```\n\nAdd [Stylelint Color Control] to your [stylelint configuration].\n\n```js\n{\n  \"plugins\": [\n    \"stylelint-color-control\"\n  ],\n  \"rules\": {\n    \"csstools/stylelint-color-control\": \"always\" || \"never\" || \"ignore\"\n  }\n}\n```\n\n## Options\n\n### always\n\nIf the first option is `\"always\"` or `true`, then [Stylelint Color Control] requires all\nnodes to be linted, and the following patterns are _not_ considered violations:\n\n```pcss\n.example {}\n```\n\nWhile the following patterns are considered violations:\n\n```pcss\n.example {}\n```\n\n### never\n\nIf the first option is `\"never\"` or `false`, then [Stylelint Color Control] requires all \nnodes to be linted, and the following patterns are _not_ considered\nviolations:\n\n```pcss\n.example {}\n```\n\nWhile the following patterns are considered violations:\n\n```pcss\n.example {}\n```\n\n### ignore\n\nIf the first option is `\"ignore\"` or `null`, then [Stylelint Color Control] does nothing.\n\n[cli-img]: https://img.shields.io/travis/csstools/stylelint-color-control.svg\n[cli-url]: https://travis-ci.org/csstools/stylelint-color-control\n[git-img]: https://img.shields.io/badge/support-chat-blue.svg\n[git-url]: https://gitter.im/stylelint/stylelint\n[npm-img]: https://img.shields.io/npm/v/stylelint-color-control.svg\n[npm-url]: https://www.npmjs.com/package/stylelint-color-control\n\n[stylelint]: https://github.com/stylelint/stylelint\n[stylelint configuration]: https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md#readme\n[Stylelint Color Control]: https://github.com/csstools/stylelint-color-control\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fstylelint-color-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsstools%2Fstylelint-color-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fstylelint-color-control/lists"}