Skip to content

Microsoft.FluentUI.AspNetCore.Components.Color to Hex? #2762

Answered by vnbaaij
SpenceDahl asked this question in Q&A
Discussion options

You must be logged in to vote

The whole idea is that you do not have to deal with the hex value. The accent color is set to a value through the script and the AccentFillRest design token which then translates to setting the CSS var --accent-fill-rest.
You can get the associated CSS var name by using out ToAttibuteValue() enum extension method.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SpenceDahl
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