Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

[RFC]: Colors - choosing text color for box components (where color props sets background color) #629

Closed
@bmdalex

Description

@bmdalex

[RFC]: Colors - choosing text color for box components (where color props sets background color)

Problem description

We need to automatically change text color for box components (components where color prop goes to background color)

What tool to use for deciding text color for different background shades?

Proposed solution

Use color package and Color(bgColor).isDark call to determine if the text is light or dark, but it looks like this is not a preferred package to import? see:
#597 (comment)

Metadata

Metadata

Assignees

Labels

RFCquestionFurther information is requested, concerns that require additional thought are raisedvstsPaired with ticket in vsts⚙️ enhancementNew feature or request💥 blocked

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions