/** * Semantic status badge tints — map domain statuses onto these five tones * before introducing new colors. Sentence / title case labels; never uppercase. * * Palette (enterprise DS cadence: success · info · caution · danger · neutral): * locked lightness so every tone has equal weight — fill L ≈ 95%, text L ≈ 38.5%. * Only hue + chroma shift. Tokens live in `globals.css` as * `--status-badge-{tone}-fill` / `-fg`. Neutral (Draft) is true grey (chroma 0). * * Domain examples: Compliant → success, In review → info, Draft → neutral, * Due soon → warning, Non-compliant → danger. */ export type StatusBadgeTone = "success" | "warning" | "info" | "danger" | "neutral" /** Opaque fill + tone-coloured ink (icons and label inherit). */ export const STATUS_BADGE_TONE_CLASS: Record = { success: "bg-status-badge-success-fill text-status-badge-success-fg border-status-badge-success-fg/20", info: "bg-status-badge-info-fill text-status-badge-info-fg border-status-badge-info-fg/20", warning: "bg-status-badge-warning-fill text-status-badge-warning-fg border-status-badge-warning-fg/20", danger: "bg-status-badge-danger-fill text-status-badge-danger-fg border-status-badge-danger-fg/20", neutral: "bg-status-badge-neutral-fill text-status-badge-neutral-fg border-status-badge-neutral-fg/20", } /** @deprecated Use `STATUS_BADGE_TONE_CLASS.success` */ export const LIST_HUB_STATUS_TINT_SUCCESS = STATUS_BADGE_TONE_CLASS.success /** @deprecated Use `STATUS_BADGE_TONE_CLASS.warning` */ export const LIST_HUB_STATUS_TINT_WARNING = STATUS_BADGE_TONE_CLASS.warning /** @deprecated Use `STATUS_BADGE_TONE_CLASS.neutral` */ export const LIST_HUB_STATUS_TINT_NEUTRAL = STATUS_BADGE_TONE_CLASS.neutral /** @deprecated Use `STATUS_BADGE_TONE_CLASS.danger` */ export const LIST_HUB_STATUS_TINT_DANGER = STATUS_BADGE_TONE_CLASS.danger /** @deprecated Use `STATUS_BADGE_TONE_CLASS.info` */ export const LIST_HUB_STATUS_TINT_INFO = STATUS_BADGE_TONE_CLASS.info