Home › How to fix › Branding
BRD006Needs youInline colour in TSX
Why it matters
Inline colours ignore the theme (especially dark section backgrounds).
How to fix
- Use semanticColors from the theme (e.g. theme.semanticColors.bodyText) or a CSS variable.
Microsoft articles
- Use theme colours in your SPFx customizationslearn.microsoft.com
- Supporting section backgrounds (theme variants)learn.microsoft.com
In VS Code: right-click the finding → Explain & How to Fix, or use ▶ Fix step by step in the report.