Skip to content

docs: missing clear instructions/example on how to set design tokens application wide #2075

Closed Answered by luissalgadofreire
luissalgadofreire asked this question in Q&A
Discussion options

You must be logged in to vote

For the sake of completion.

I am using a Razor Class Library (RCL) to share UI components between platforms (Blazor WebAssembly for Web, Blazor Hybrid for Native). The objective is for this RCL to serve as an internal UI Kit, in a way that abstracts consuming cross-platform apps from knowing other libraries but the RCL.

I was unsure of how to set application-wide defaults for the Design Tokens that rule the overall style of the Fluent UI Blazor Components.

After multiple surprisingly fast clarifications from @vnbaaij, I did the following.

In the Razor Class Library

Step 1 (specific to my use-case): I created my own component Button.razor, wrapping FluentButton:

@namespace MyRcl.Components

<

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@luissalgadofreire
Comment options

@luissalgadofreire
Comment options

@vnbaaij
Comment options

@vnbaaij
Comment options

@luissalgadofreire
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by luissalgadofreire
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2074 on May 19, 2024 20:54.