Documentation

FUI2016: Raw typography should use a token

serious

A raw font-size value bypasses the project typography scale.

Details

diagnostic
{
  "code": "FUI2016",
  "ruleId": "styles/no-raw-typography",
  "category": "Tokens",
  "defaultSeverity": "serious",
  "lifecycle": "experimental",
  "fixAvailable": true,
  "evidenceRequired": true
}

Guidance

Replace the raw font-size with the suggested typography token or an allowed value from the project scale.

When the finding matches an existing token exactly, prefer the token-backed replacement.

If the value is intentionally new, define it in the authoritative typography token source before using it in application code. Run npx @usefragments/cli check --changed --ci and verify that the replacement preserves the intended font size and responsive behavior.

Intentional exception? Use a narrow, reasoned directive from the in-source suppression reference.