Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Meaning of number in Foreground1/2/3#33782

Discussion options

In color token naming Foreground, Background and Stroke have a number suffix. Can anyone help me in understanding what the pattern for the number is please? ie is 1 always lighter than 2, and 2 lighter than 3 and so on? I've hunted through but couldn't find any documentation on this.

You must be logged in to vote

These are color tokens of our design system.
Here's the colors:https://react.fluentui.dev/?path=/docs/theme-colors--docs
Also, you can find all the tokens in dev tools tabstyles for.fui-FluentProvider* class when using our components.
For background the 1st one is white, the lightest and the 5th one is darkest. And for the foreground the 1st one is the darkest.

Replies: 2 comments 3 replies

Comment options

These are color tokens of our design system.
Here's the colors:https://react.fluentui.dev/?path=/docs/theme-colors--docs
Also, you can find all the tokens in dev tools tabstyles for.fui-FluentProvider* class when using our components.
For background the 1st one is white, the lightest and the 5th one is darkest. And for the foreground the 1st one is the darkest.

You must be logged in to vote
3 replies
@JohnGoldsmith
Comment options

That's great. Thanks very much for the insight@ValentinaKozlova. Would you welcome a PR to update to that docs page to reflect the information?

@ValentinaKozlova
Comment options

Color information is already in the storybook. Andstyles in dev tools are visible for every engineer who works with components

@JohnGoldsmith
Comment options

Fair enough.

Answer selected byValentinaKozlova
Comment options

We've also found the token usage unclear.

Instead of picking tokens by their purpose, devs & designers have ended up picking tokens based on what color the token has in a particular theme.

Eg, they've pickedcolorNeutralForeground2 to use as a component's background color, because in light theme it is closer to the designer's specified background color than any of the background color tokens.

If there were a guide showing where to use which tokens, that would be amazing.

For now tho, we'll try poking thru Fluent source code to find similar-ish components, and see what tokens those have used.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@JohnGoldsmith@r-k-b@ValentinaKozlova

[8]ページ先頭

©2009-2025 Movatter.jp