Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 635 Bytes

File metadata and controls

52 lines (36 loc) · 635 Bytes

font-size-is-readable

Disallow font sizes less than 15px (or 11.25pt).

Sources:

Options

true

The following pattern is considered a violation:

.foo {
  font-size: 10px;
}

The following patterns are not considered violations:

.foo {
  font-size: 15px;
}
.foo {
  font-size: 1em;
}

Optional secondary options

thresholdInPixels: number

Given:

16

The following pattern is considered a violation:

.foo {
  font-size: 15px;
}