Change a SharePoint Online Web Part Header Color
Question details
The user wants to change the color of an individual web part header in SharePoint Online.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Customize a web part header on a classic or modern SharePoint site.
- Observed behavior
- SharePoint Online does not generally provide a built-in setting for the color of an individual web part header.
Determine whether the page uses the classic or modern SharePoint experience, and check that you have permission to edit the page or manage site branding. Modern pages show an Edit button and use a different customization model from classic pages.
Use supported appearance options on a modern SharePoint page
Use site themes or section backgrounds for broader color changes, or build a custom web part when an individual header needs its own color.
Modern SharePoint does not generally offer a per-header color control. Site themes and section backgrounds affect more than one header, and their effects vary by web part.
For precise control, a developer can create a SharePoint Framework (SPFx) web part with a header styled in its own component. Avoid CSS that targets undocumented classes in built-in modern web parts, because SharePoint updates can change them.
On the site, select Settings > Change the look > Theme, choose an available theme, and apply it. Check whether its colors meet your needs.
Open the page and select Edit, then select Edit section for the section containing the web part. Choose an available background and preview the result before publishing.
While editing the page, select the web part and open its Edit web part pane. Review its available appearance settings; options vary and may not include header color.
If a distinct header color is required, ask a SharePoint developer to create and deploy an SPFx web part with its own styled header, then add it to the page through the web part picker.

Customize header CSS on a classic SharePoint site
Use a classic site branding or custom CSS approach when the site supports it and you have the required permissions.
Prepare SharePoint Page Content With WPS Office
WPS Office is a free, lightweight alternative for drafting and reviewing content before adding it to a SharePoint page. Its familiar interface and Microsoft Office format support make it easy to move existing files into your workflow. WPS does not change SharePoint web part styling.

Frequently Asked Questions
Can I change just one modern web part header color in SharePoint Online?
There is generally no built-in control for an individual header color. Check the web part's Edit web part pane for available options, or use a custom SPFx web part if you need precise control.
Will changing the site theme affect other parts of the site?
Yes. Settings > Change the look > Theme applies a site-wide theme rather than a color to one header. The visible effect depends on the page and web parts.
Can I use custom CSS on a modern SharePoint page?
Avoid targeting undocumented classes in built-in modern web parts, because updates can break those selectors. For controlled styling, a developer can use SPFx to build a custom web part with its own styles.
Why can't I find Alternate CSS URL on my classic site?
That option depends on the site's features and your permissions. Check Site settings > Master page if it is available, or ask your SharePoint administrator about the site's approved customization method.




