Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 324 Bytes

no-color-keywords.md

File metadata and controls

26 lines (17 loc) · 324 Bytes

Color Keyword

Rule no-color-keywords will enforce the use of hexadecimal color values rather than literals.

Examples

When enabled the following are allowed:

$new-red: #ff0000;

.foo {
  color: #ff0000;
}

When enabled the following are disallowed:

$new-red: red;

.foo {
  color: red;
}