Skip to content

feat: improve text color in Dark mode #2822

@markoweb2

Description

@markoweb2

🙋 Feature Request

The Color.Success value does not change when switching to Dark mode. Text is rather unreadable.

🤔 Expected Behavior

Would expect it to change to a brighter color, to make it more readable in Dark mode.

😯 Current Behavior

<FluentLabel>This is good readable text</FluentLabel>
<FluentLabel Color="@Color.Success">This text is unreadable in dark mode.</FluentLabel>

In normal Light mode, everything is good:
Image

Switching to Dark mode, the Color.Success value does not change at all, I can barely read the green text:
Image

💁 Possible Solution

Update the --success variable to CSS color: forestgreen in Dark mode (one should not have to dwelve into DesignTokens and changing the entire color palette for this). This is definently a step up from the current behavior and matches the Color.Error tone and readability.
Image

Although both could be improved further by using color: limegreen and color: orangered for their Dark mode values:
Image

🔦 Context

PS! One cannot use Color="@Color.Custom" with FluentLabel, because the property CustomColor does not exist. Either add it or write in the FluentLabel documentation, to use the Style property with CSS color: somecolor if you want to apply custom color.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions