Uh oh!
There was an error while loading. Please reload this page.
fix(ui): restore markdown heading hierarchy in Desktop/web chat - #33284
fix(ui): restore markdown heading hierarchy in Desktop/web chat#33284akinshaywai wants to merge 1 commit into
Conversation
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes#16046
Type of change
What does this PR do?
In
packages/ui/src/components/markdown.css, all heading levels (h1–h6) shared a single rule with the same font size (14px), same weight, and same colour. This meant headings were visually identical to each other and nearly indistinguishable from bold body text. Long structured responses — plans, summaries, step-by-step guides — were impossible to scan.The fix splits the shared rule into per-level rules using design tokens that were already defined in the theme but unused:
--font-size-x-large)--font-size-large)All levels now use
var(--markdown-heading, var(--text-strong))for colour. The--markdown-headingtoken (#9d7cd8) was already defined in the theme but never wired in. The fallback ensures custom themes without this token are unaffected.Spacing is differentiated by level to keep the chat layout compact while making sections scannable.
How did you verify your code works?
Reviewed the existing token values in the theme to confirm font size and colour tokens map correctly. The change is CSS-only with no logic — the heading selectors are independent and do not affect any other component styles.
Screenshots / recordings
Before: all headings render at 14px, same weight as body text — no visual hierarchy.
After: h1 = 20px, h2 = 16px, h3 = 14px bold — clear hierarchy matching standard markdown conventions.
(Local screenshot pending — the change is a direct application of the existing
--markdown-headingtoken and size tokens already in the design system.)Checklist