fix(desktop): stop painting standalone red text with destructive-foreground
Merged
SA
3mo ago+15+15+01234567890123456789-19-19-01234567890123456789
Summary
text-destructive-foregroundis the label colour for text sitting on abg-destructivesurface, so themes set it to their page background. Fifteen sites used it as a freestanding red and only looked right on the default dark theme, whose value happens to be pale pink. On Kintsugi the diff deletion counter rendered black on black; on the light theme it was near-white on white.- Switch every standalone use to
text-destructiveso each theme gets its own red: the three diff deletion counters (workspace row, both sidebar hover cards), check-failure icons and summaries, closed-PR and changes-requested badges, attachment warning triangles, and the file-pane save-error and orphaned banners. - The three real cases (ringtone delete button, delete-project button, window close hover) keep the
bg-destructive text-destructive-foregroundpair.
Testing
bun run typecheck(apps/desktop)bunx biome checkon the 15 changed files- No tests or snapshots reference the old class
Notes
- On the default dark theme the counter shifts from pale pink
#ffccccto the theme's#cc4444. +additionsstays hardcodedtext-emerald-500because the theme schema has no success token. Adding one is a separate change.
https://claude.ai/code/session_01WNYfXfvbc1km7yfoRKk9b5
Summary by cubic
Fixes standalone red text that used text-destructive-foreground, which themes set to their page background, so diff deletion counters, check-failure icons, closed-PR and changes-requested badges, attachment warnings, and file-pane error banners rendered black-on-black on Kintsugi and near-white-on-white on the light theme. Switches those fifteen sites to text-destructive so each theme provides its own red; the three real button and hover cases keep the bg-destructive/text-destructive-foreground pair.
- On the default dark theme, the counter color shifts from pale pink
#ffccccto the theme's#cc4444. - The
+additionscounter stays hardcodedtext-emerald-500because the theme schema has no success token.
Summary by CodeRabbit
- Style
- Updated destructive-state text and icon colors across workspace sidebar, pull request, review, check, file, and attachment views.
- Improved visual consistency for closed pull requests, failed checks, requested changes, deletion counts, and file or upload errors.