Skip to content
9 changes: 6 additions & 3 deletions src/components/LibraryStatusBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ export function LibraryStatusBadge({
badge: LibraryBadge
className?: string
}) {
// Status badges are intentionally neutral: the word (ALPHA / BETA / RC…)
// carries the meaning, color carries none. A single quiet chip never competes
// with a library's brand color and reads consistently across every surface.
const isRc = badge.toUpperCase() === 'RC'

// ALPHA / BETA stay quiet. RC is the current ship state, so it uses the
// library accent and a slow glow. Reduced-motion users still get the fill.
return (
<Badge
variant="default"
rounded="md"
className={twMerge(
'border border-border-subtle font-ds-mono text-ds-mono-caps-xs uppercase',
isRc &&
'library-status-badge-rc border-transparent px-2.5 py-1 font-ds-mono text-ds-mono-caps text-white',
className,
)}
>
Expand Down
Loading
Loading