Badge.jsx: text-foreground is undefined — no foreground color in tailwind config #62

Closed
opened 2026-05-17 17:53:03 -05:00 by null · 0 comments
Owner

Bug Description

src/components/ui/Badge.jsx line 10 defines the outline variant as 'text-foreground'. There is no foreground color defined in the project's tailwind.config.js. The custom colors are: background, section-alt, card, border, text, muted, soft-text, navy-light, primary.navy, primary.blue, primary.cyan, accent.gold.

Since foreground doesn't exist, text-foreground compiles to nothing in the Tailwind output, meaning the outline badge variant has no text color applied — it inherits whatever color cascades from its parent.

Fix

Change 'text-foreground' to 'text-text' to match the project's design system.

Labels

  • bug, frontend, P2 Medium
## Bug Description `src/components/ui/Badge.jsx` line 10 defines the `outline` variant as `'text-foreground'`. There is no `foreground` color defined in the project's `tailwind.config.js`. The custom colors are: `background`, `section-alt`, `card`, `border`, `text`, `muted`, `soft-text`, `navy-light`, `primary.navy`, `primary.blue`, `primary.cyan`, `accent.gold`. Since `foreground` doesn't exist, `text-foreground` compiles to nothing in the Tailwind output, meaning the outline badge variant has no text color applied — it inherits whatever color cascades from its parent. ## Fix Change `'text-foreground'` to `'text-text'` to match the project's design system. ## Labels - bug, frontend, P2 Medium
null added the
P2 Medium
bug
frontend
labels 2026-05-17 17:53:03 -05:00
null closed this issue 2026-05-17 18:04:28 -05:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: null/Queue-North-Website#62
No description provided.