Plan for removing euiColorGhost and euiColorInk
#8137
-
|
With the transition to Emotion complete, do we have a plan for fully deprecating |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
|
Just dropping in here to +1 |
Beta Was this translation helpful? Give feedback.
-
|
Unless there's a very compelling reason to (e.g. the new theme, etc) I think my vote at this point would be to just leave those 2 tokens alone and not remove them. My two reasons for saying this:
The above are not super strongly held opinions and I'd be open being argued against this vote. |
Beta Was this translation helpful? Give feedback.
-
|
Hey folks! As we had a recent discussion around this, I wanted to revive this topic a bit. ProblemWe used to have (and currently still have) tokens To illustrate the difference between those 2 and potentially text-inverse or just text-paragraph better, here is a picture. UsageI looked into current use cases of those, and it seems that we use them mostly for text (see the image above). However, as it was mentioned — they are also used in high contrast mode even for borders and backgrounds. Potential solutionsCurrently I have 2 options in mind that we could use, given the purpose and usage of those 2 tokens and our new color system "philosophy": Option 1. Leave them to be rather generic.
The downside to that is — well, they are too generic. And in genral, we don't want to apply generic tokens directly to the interface, because we lose control over their exact usage. Option 2. Create respective 3rd level tokens. Option 3. Hybrid Additional consideration: modes switchFor components that might (even potentially) include multiple elements, like |
Beta Was this translation helpful? Give feedback.
-
|
Ooofff... Now I'm sorry but I'm tagging you @ryankeairns @JoseLuisGJ @mgadewoll to read this poem 😁 |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for driving this change @ek-so I'll start changing the assigned values in Figma pointing to the new tokens at the same time when this EUI task will start in order to be in sync what we have in Figma and code. |
Beta Was this translation helpful? Give feedback.




Thank you both! So, it looks like we decided:
text-ghostandtext-inkwhich will be used for text and icons; use those as often as possible and sensible (meaning in all cases that are not background or border; we don't envision a lot of usages of those as bg or border, so we're not willing to introduce 3rd level tokens for those)plainLightandplainDarkinstead in all other cases, when we need colors to be static.