-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: AccentFillRest(and possibly others) in DesignTokens #942
Comments
It does not work like that. The AccentBaseColor design token will always use a so called recipe to define the fill/rest/active colors. That is just how it is. We can't change that |
Hello :) Which I can do with the React based framework :) |
No, I am saying you can't do it with the design tokens. If you need to do this, you need to define your own colors with css variables, etc. Bit of a pain, I know. |
Got it, well this almost makes me want to write something for this library, but design and all that know-how with FAST, uh is just not my cup of tea :) I tried mudblazor today and boy it's so much better in terms of the theming, i just don't like the material design, i like fluent ui better. |
Why not use the Isn't that enough for your design? Example: <FluentDesignSystemProvider AccentBaseColor="#dedbef">
<FluentLayout>
<FluentHeader>
Some Header Text
<FluentSpacer />
Aligned to the end
</FluentHeader>
<FluentBodyContent>
@Body
</FluentBodyContent>
</FluentLayout>
</FluentDesignSystemProvider> |
@SPWizard01 We've added this discussion topic #1049, about design... give us your feedback. |
🐛 Bug Report
When calling
SetValueFor
fromAccentFillRest
design token, a javascript error is thrown:💻 Repro or Code Sample
🤔 Expected Behavior
css variable
--accent-fill-rest
should change? or the method should be unavailable for this design token.😯 Current Behavior
💁 Possible Solution
set variable through css directly
🔦 Context
I do not want design system to calculate the color based on my primary color, i want to use the primary color directly and via code
🌍 Your Environment
The text was updated successfully, but these errors were encountered: