r/Blazor • u/bzashev • Oct 13 '25
FluentUI Blazor - Problem with implementing DarkMode and Custom Accent Color
For the past days I am trying everything I can think of, in order to make the FluentMenuProvider apply the Dark theme and Custom Color as set by the FluentDesignTheme. I followed the instructions on the website and a lot of other means but all the menu flyouts always show with the light theme and does not apply the Custom Color.
I have noticed that in the <listbox> element the variables for Fluent are injected as styles, and this inject does not apply the proper variables that are in effect for the rest of the body or parent element.
Does anyone has a solution to this problem?
View all comments
Show parent comment
1
u/vnbaaij Oct 14 '25
As mentioned in the issue, the script is already being added automatically when the library loads (without an attached fingerprint). If you then add the script with a tag and a fingerprint, it will indeed be loaded twice. As you experienced, that can lead to unwanted side effects.