feat(genesis): add GnDocsBadge primitive#463
Draft
johnleider wants to merge 3 commits into
Draft
Conversation
|
commit: |
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.
Description
Adds
GnDocsBadgeto@paper/genesis— a static label/tag primitive for skill levels, skill modes, category tags, and similar docs-site chrome. Genesis Phase 2 roadmap item (pulled ahead of Callout/CodeGroup since it pays down proven duplication in apps/docs).API:
color(any CSS color; drives acolor-mixbackground+text tint),backgroundOpacity(0–100, default 15),shape(rounded|pill),title. Label via default slot; optional leading icon viaiconslot (no default) — the wrapper isaria-hiddenand slotted icons keep their own dimensions.Notes
data-shapeper the genesis data-attribute idiom.badge-baseshortcut (font-weight 600, line-height 1rem, gap/padding/radius identical)..genesis-docs-badge__icon:emptyguards passed-but-empty icon templates.SPEC.mdwith the shipped GnDocsExample surface (theme/showPlayground/showBinprops, playground/bin icon slots, per-example theme override marked shipped, token-table gaps).The apps/docs migration (SkillLevelBadge/SkillModeBadge/SkillCategoryTags → GnDocsBadge, then deleting the local DocsBadge) lands as a follow-up PR.