SPFX Pretty

Home › How to fix › Branding

BRD004Auto-fix

Hard-coded font-family

Why it matters

Brand Center fonts chosen in Change the look won't apply.

How to fix

  1. Apply the fix to use a Brand Center font slot.
EXAMPLE
font-family: var(--fontFamilyCustomFont800, var(--fontFamilyBase));
In VS Code: right-click the finding → Apply Fix…, or use ▶ Fix step by step in the report.