Skip to content

feat(badge): add info + subtle-info variants, expand outline demo#294

Merged
erickteowarang merged 3 commits into
mainfrom
add-subtle-info-badge
May 28, 2026
Merged

feat(badge): add info + subtle-info variants, expand outline demo#294
erickteowarang merged 3 commits into
mainfrom
add-subtle-info-badge

Conversation

@erickteowarang
Copy link
Copy Markdown
Contributor

@erickteowarang erickteowarang commented May 28, 2026

Summary

  • Adds info (solid blue) and subtle-info (low-emphasis blue) badge variants, completing the blue/info row in the variant matrix.
  • The solid info uses bg-blue-500 text-white hover:bg-blue-600, matching the outline-info status-dot color.
  • The subtle info uses bg-blue-500/10 text-blue-700 dark:text-blue-500 hover:bg-blue-500/20, mirroring the palette consumers like denim-tears have been hand-rolling as a local shim.
  • Expands the Next.js primitives demo to render all five outline variants — previously only outline-success was shown as a "Outline" placeholder, leaving outline-warning, outline-error, outline-info, outline-neutral invisible from the showcase.

What it looks like now:

Screenshot 2026-05-28 at 2 11 27 pm

Variant matrix after this PR

Solid Subtle Outline
success
warning
error
neutral
info (new) (new)

(subtle-neutral is the remaining gap but I mean...it's neutral? What's there to be subtle about?)

Files

  • packages/core/src/components/badge.tsx — two new cva variant entries
  • docs/components/badge.md — basic usage, type definition, visual reference
  • examples/nextjs-app/src/modules/pages/primitives-demo.tsx — all info + outline demo entries
  • .changeset/add-subtle-info-badge.md — patch changeset

BadgeVariant is derived from BadgeProps["variant"], so no separate union update is needed elsewhere.

Test plan

  • pnpm run type-check — clean
  • pnpm run lint — 0 warnings/0 errors
  • pnpm run test — 1103/1103 pass
  • Visual: open the Next.js primitives demo (/dashboard/primitives-demo) and confirm both info variants render with the expected blue palette, and all five outline variants render with their status dots

🤖 Generated with Claude Code

Erick Teowarang and others added 2 commits May 28, 2026 14:01
Adds a low-emphasis blue badge variant for informational or in-progress
status labels, completing the subtle-* family alongside success/warning/error.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds a solid blue `info` variant alongside the new `subtle-info`, filling
the gap in the solid family (success/warning/error/neutral/info). Also
expands the primitives demo to render all five outline variants instead
of only `outline-success` as a placeholder.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@erickteowarang erickteowarang changed the title feat(badge): add subtle-info variant feat(badge): add info + subtle-info variants, expand outline demo May 28, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 28, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@tailor-platform/app-shell@294
npm i https://pkg.pr.new/@tailor-platform/app-shell-sdk-plugin@294
npm i https://pkg.pr.new/@tailor-platform/app-shell-vite-plugin@294

commit: ee96298

The single-row layout was too crowded after the info + outline variants
were added. Mirrors the Button card's labeled-row pattern.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds info and subtle-info badge variants (blue palette) to complete the variant matrix, and expands the Next.js primitives demo to render all solid/subtle/outline variants grouped by category.

Changes:

  • Add info and subtle-info cva entries to badgeVariants.
  • Update badge docs and add a patch changeset.
  • Reorganize primitives demo Badge card into Solid/Subtle/Outline rows showing all variants.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/core/src/components/badge.tsx Adds solid info and subtle-info cva variants matching existing blue palette.
docs/components/badge.md Documents new variants in usage, type union, and reference table.
examples/nextjs-app/src/modules/pages/primitives-demo.tsx Groups badges into Solid/Subtle/Outline rows; renders all five outline variants.
.changeset/add-subtle-info-badge.md Patch changeset describing the new variants.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@IzumiSy IzumiSy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@erickteowarang erickteowarang merged commit 58b76ce into main May 28, 2026
4 checks passed
@erickteowarang erickteowarang deleted the add-subtle-info-badge branch May 28, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants