Default value for design token #427
-
Hi, I am using Fluent in the WASM Blazor app and I have a problem with the default design setting.
How can I still configure the default styles? Sorry if the question seemed silly. I'm new to frontend development. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Why doesn't WithDefault call the withDefault method on the underlying design token? The FAST withDefault method actually updates the value as used across the whole app. |
Beta Was this translation helpful? Give feedback.
-
@echo-4droid We've added this discussion topic #1049, about design... give us your feedback. |
Beta Was this translation helpful? Give feedback.
Hi,
WithDefault does just that, setting a default value for a token. To apply a token, you need to select a Dom element where you want to set the token for. See https://github.com/microsoft/fluentui-blazor/blob/main/examples/FluentUI.Demo.Shared/Shared/DemoMainLayout.razor.cs#L79-L80 for an example.