feat(badge): add an archived variant and a brand-orange token - #128
Closed
tmccoy14 wants to merge 1 commit into
Closed
feat(badge): add an archived variant and a brand-orange token#128tmccoy14 wants to merge 1 commit into
tmccoy14 wants to merge 1 commit into
Conversation
Archived is a lifecycle state consumers were painting by hand — Guardian Studio carried a `bg-orange-400/20! text-orange-400!` override on Badge because no variant covered it. `Badge/Background/Archived` and `Badge/Text/Archived` alias the Orange ramp with the same 200/700/800 recipe every other badge variant uses, so the pill inverts correctly between themes. `Brand/Orange` is a new colorItem at #FB923C, giving status dots and archive banners a token to resolve against rather than a raw Tailwind value. Archived shares its orange with ControlStatusBadge's In Progress. The two describe different things and are not expected to share a view, so the docs tell consumers to lean on the icon and label rather than colour alone. The variant defaults to the `Archive` glyph, matching how success, warning and danger supply their own. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Superseded by #129. After talking it through with Henry, archived isn't its own attention level — under "variants communicate how the user should pay attention to a thing" it's |
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.
Archived is a lifecycle state consumers were painting by hand — Guardian Studio carried a
bg-orange-400/20! text-orange-400!override on Badge because no variant covered it.Badge/Background/ArchivedandBadge/Text/Archivedalias the Orange ramp with the same 200/700/800 recipe every other badge variant uses, so the pill inverts correctly between themes.Brand/Orangeis a new colorItem at #FB923C, giving status dots and archive banners a token to resolve against rather than a raw Tailwind value.Archived shares its orange with ControlStatusBadge's In Progress. The two describe different things and are not expected to share a view, so the docs tell consumers to lean on the icon and label rather than colour alone. The variant defaults to the
Archiveglyph, matching how success, warning and danger supply their own.