refactor(components): Update Avatar design#2902
Closed
taylorvnoj wants to merge 9 commits intomasterfrom
Closed
Conversation
Deploying atlantis with
|
| Latest commit: |
1bb4a63
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8301a174.atlantis.pages.dev |
| Branch Preview URL: | https://job-142335-job-151124-avatar.atlantis.pages.dev |
Contributor
Author
taylorvnoj
commented
Feb 11, 2026
|
|
||
| export const Basic = BasicTemplate.bind({}); | ||
| Basic.args = { | ||
| color: "var(--color-indigo)", |
Contributor
Author
There was a problem hiding this comment.
We don't really surface indigo that much - just thought this looks more cohesive using green
Contributor
Author
|
closing in favour of #2909 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Motivations
Updates the
Avatarcomponent to use new semantic color tokens (also introduced in this PR), adds a hover state with shadow and transition, and updates initials.Changes
Added
Design tokens
New:
--color-interactive--subtle--reverseand--color-interactive--subtle--reverse--hoverChanged
--color-base-blue--600--color-interactive--subtle--reverse(new token)blue-300(lighter background)blue-800(darker background).avatar:hoverwith box shadow and--color-interactive--subtle--reverse--hoverbackground.shouldBeDarkand when we use white textshouldBeDark = color != undefined && isDark(color)isDarkis now applied only when:isDark→ text/icon use--color-text(theme-aware).isDark→ text/icon are white for contrast..initialsusescolor: var(--color-text)(theme-aware)..isDark .initialsoverrides tovar(--color-base-white)when the background is a custom dark color.--color-text). Set to "white" whencolor && shouldBeDark, so the icon matches initials on custom dark backgrounds.Introduced
--avatar-initials-size(base:typography--fontSize-smallwdd, with overrides for large/small sizes).Replaced calc-based font sizes with this token for consistency.
Testing
color-textnpm run generate:tokenCSSand confirmdist/foundation.cssanddist/dark.mode.cssinclude the new--color-interactive--subtle--reverseand `--color-interactive--subtle--reverse--hover variablesChanges can be
tested via Pre-release
In Atlantis we use Github's built in pull request reviews.