Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 793 Bytes

File metadata and controls

50 lines (36 loc) · 793 Bytes

letter-spacings

Specify scales for letter spacing.

a {
  letter-spacing: 0.1rem;
}
/**               ↑
 *                This letter spacing */

This rule can automatically fix all of the problems reported.

This rule checks <length> values.

This rule can be paired with the declaration-property-unit-allowed-list rule in stylelint.

Options

array of objects as {scale: [], units: []}

Given:

{
  "scale": [0.1, 0.2],
  "units": ["rem"]
}

The following patterns are considered violations:

a {
  letter-spacing: 0.5rem;
}

The following patterns are not considered violations:

a {
  letter-spacing: 0.1rem;
}

a {
  letter-spacing: 0.2rem;
}