Closed Sigiller closed 8 years ago
Duplicate of https://github.com/SlexAxton/css-colorguard/issues/30. 😄
The goal of this module is to warn you about similar colours in your stylesheet, not about insufficient contrast. Depending on your CSS, this is actually a legitimate use case, for example as a "spoiler warning" class;
.spoiler {
color: black;
background: black;
}
.spoiler:hover {
color: #fff;
}
This will black out text from the user until they hover over it.
Maybe this is a good rule to add for stylelint though?
@ben-eb Thanks you for explanation.
No collides with this colors:
But I have collide warning with this: