Skip to content

Files

Latest commit

 

History

History
61 lines (40 loc) · 782 Bytes

color-hex-length.md

File metadata and controls

61 lines (40 loc) · 782 Bytes

Pattern: Inconsistent hex color notation

Issue: -

Description

Specify short or long notation for hex colors.

Examples

"short"

The following patterns are considered violations:

a { color: #ffffff; }
a { color: #ffffffaa; }

The following patterns are not considered violations:

a { color: #fff; }
a { color: #fffa; }
a { color: #a4a4a4; }

"long"

The following patterns are considered violations:

a { color: #fff; }
a { color: #fffa; }

The following patterns are not considered violations:

a { color: #ffffff; }
a { color: #ffffffaa; }

Further Reading