SharePoint / SharePoint/sp-dev-docs

Brand Center Fonts not applying to FUI Panel contents

Open
#10,822 5 comments 0 reactions 1 assignee View on GitHub

@Ashlesha-MSFT is already working on this.

Since May 11, 2026.

sharepoint-developer-support type:bug-confirmed
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

Description

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Linux

What browser(s) / client(s) have you tested
  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)
Additional environment details

SPFx 1.22.1
Using Fluent UI @microsoft/sp-office-ui-fabric-core or @fluentui/react@8.125.3

Describe the bug / error

Brand Center Custom Fonts are not being applied via style sheets on elements inside a Fluent UI Panel.

Following instructions as per this page: https://learn.microsoft.com/en-us/sharepoint/dev/design/use-brand-center-fonts-in-spfx-components

Steps to reproduce

Set up a site to use a custom font via the Brand Center, or one of the 1stP provided alternative fonts available in "Change the look".

Using a Fluent UI <Panel /> component, within the contents of the panel, use CSS class to apply a custom brand center font to the element, such as:

.channelH3 {
  font-family: var(--fontFamilyCustomFont100, var(--fontFamilyBase)) !important;
}

Apply that class name to an element within the Panel contents.

Observe the custom font is not applied.

Additional observation, from the below screenshot from DevTools, you can see the style rule is applied to the selected element (highlighted white), but the font-family var is not being resolved to either value (they are grey, one should be white).

Image
Expected behavior

Brand Center fonts should apply just like other elements on the page.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.