Skip to content

fix: prose theme overrides for dark mode readability#74

Merged
rogerchappel merged 1 commit into
mainfrom
fix/prose-theme-overrides
Apr 9, 2026
Merged

fix: prose theme overrides for dark mode readability#74
rogerchappel merged 1 commit into
mainfrom
fix/prose-theme-overrides

Conversation

@rogerchappel
Copy link
Copy Markdown
Owner

Problem\n\nThe first contrast PR (#73) removed prose-invert to fix light mode chat text, which inadvertently broke dark mode — prose text is now too faint on dark backgrounds.\n\n## Fix\n\nAdded explicit --tw-prose-* CSS variable overrides for both \[data-theme="light"] and \[data-theme="dark"] that map prose tokens to our theme variables. This gives correct text colors in both modes without needing prose-invert.

The earlier PR removed prose-invert to fix light mode readability,
which also broke dark mode prose text. These explicit overrides map
tailwind prose tokens to our custom CSS variables per theme.
@rogerchappel rogerchappel merged commit e798070 into main Apr 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant