/** * @factory/ui — Badge (status pill). Status colors come from the `--status-*` * tokens (derived from @factory/shared STATUS_COLORS in tokens.ts) — never * hard-coded hex. */ import * as React from "react"; import { clsx } from "clsx"; import { STATUS_COLORS } from "@factory/shared/constants"; export type BadgeStatus = (typeof STATUS_COLORS)[number]; export interface BadgeProps extends React.HTMLAttributes { /** One of the 9 shared status colors → `var(--status-)`. */ status?: BadgeStatus; /** Outline-style variant (translucent look via color-mix). */ variant?: "solid" | "outline"; } export function Badge({ status = "gray", variant = "outline", className, ...props }: BadgeProps) { return ( ); }