SPFX Pretty

Home › How to fix › Branding

BRD001Auto-fix

No theme variant support

Why it matters

Without supportsThemeVariants the web part renders a white box on coloured section backgrounds.

How to fix

  1. Set "supportsThemeVariants": true, then handle theme changes (BRD002).
In VS Code: right-click the finding → Apply Fix…, or use ▶ Fix step by step in the report.