Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 673 Bytes

File metadata and controls

39 lines (29 loc) · 673 Bytes

meteor/prefer-font-token

This rules only allows using font tokens for typograhpy related properties i.e. font-weight, font-family, font-size, etc.

Examples

Incorrect

a {
  font-size: 16px;
}
a {
  font-family: Inter;
}

Correct

a {
  font-size: var(--font-size-s);
}
a {
  font-family: var(--font-family-body);
}

Resources