Sha256: 8bcb9727c145c83cc05bc03e1d637dc3c41874b052b8c1ca259c781154893915
Contents?: true
Size: 807 Bytes
Versions: 24
Compression:
Stored size: 807 Bytes
Contents
# color-no-hex Disallow hex colors. <!-- prettier-ignore --> ```css a { color: #333 } /** ↑ * This hex color */ ``` ## Options ### `true` The following patterns are considered violations: <!-- prettier-ignore --> ```css a { color: #000; } ``` <!-- prettier-ignore --> ```css a { color: #fff1aa; } ``` <!-- prettier-ignore --> ```css a { color: #123456aa; } ``` Hex values that are not valid also cause violations: <!-- prettier-ignore --> ```css a { color: #foobar; } ``` <!-- prettier-ignore --> ```css a { color: #0000000000000000; } ``` The following patterns are _not_ considered violations: <!-- prettier-ignore --> ```css a { color: black; } ``` <!-- prettier-ignore --> ```css a { color: rgb(0, 0, 0); } ``` <!-- prettier-ignore --> ```css a { color: rgba(0, 0, 0, 1); } ```
Version data entries
24 entries across 24 versions & 1 rubygems