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
Labels
💥 blocked
⚙️ enhancement
New feature or request
question
Further information is requested, concerns that require additional thought are raised
RFC
vsts
Paired with ticket in vsts
[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 andColor(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)
The text was updated successfully, but these errors were encountered: