canonical
Version:
Canonical code style linter and formatter for JavaScript, SCSS, CSS and JSON.
27 lines (17 loc) • 324 B
Markdown
# Color Keyword
Rule `no-color-keywords` will enforce the use of hexadecimal color values rather than literals.
## Examples
When enabled the following are allowed:
```scss
$new-red: #ff0000;
.foo {
color: #ff0000;
}
```
When enabled the following are disallowed:
```scss
$new-red: red;
.foo {
color: red;
}
```