Customizing font color in hub navigation

lilyvalley-8419 160 Reputation points
2025-01-23T02:39:05.4966667+00:00

The Hub navigation is appearing very light grey, which is not ideal for accessibility. How to change font color for the hub navigation?

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,229 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 27,736 Reputation points Microsoft Vendor
    2025-01-23T08:02:43.5133333+00:00

    Hi @lilyvalley-8419 ,

    You're trying to improve the accessibility of your SharePoint hub navigation by changing the font color. You can change the color of the hub navigation bar through the UI. Unfortunately, there is currently no out-of-the-box way to customize the font color in hub navigation

    Here are some steps you can follow to customize the font color:

    1.If you have experience in developing autonomous code, You can try to add the modern script web part youeself, insert css code to change the font color of the hub navigation bar.

    2.As a workaround, you can change the hub navigation bar color. To increase the contrast between the font and background colors.This will improve the accessibility of hub navigation links.

    Go to site settings of hub site>Change the look>under the header section>Background> select a theme color to change the background color of your site header.

    User's image

    Hope this can help you.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.