Skip to content

Fix invisible inline code background in dark theme#2734

Open
jorgemanrubia wants to merge 1 commit intomainfrom
jorge/fix-inline-code-background
Open

Fix invisible inline code background in dark theme#2734
jorgemanrubia wants to merge 1 commit intomainfrom
jorge/fix-inline-code-background

Conversation

@jorgemanrubia
Copy link
Member

Summary

  • Inline <code> elements in card descriptions and comments used var(--color-canvas) as their background color, which in the dark theme resolves to nearly the same color as the card/page background, making them invisible
  • Changed the background to var(--color-ink-lighter) and border to var(--color-ink-light) in both lexxy.css (.lexxy-content context) and cards.css (.card__title context) so inline code is visually distinguishable

Fixes card #5003

Ref: https://app.3.basecamp.com/2914079/buckets/46292715/card_tables/cards/9679552612#__recording_9679695384

The code element background used var(--color-canvas), which in dark mode
resolves to the same color as the page background, making inline code
elements invisible. Switch to var(--color-ink-lighter) for the background
and var(--color-ink-light) for the border so inline code is visually
distinguishable.

Fixes Fizzy card #5003
@jorgemanrubia jorgemanrubia self-assigned this Mar 19, 2026
Copilot AI review requested due to automatic review settings March 19, 2026 17:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves readability of inline <code> styling in dark theme by adjusting the background and border colors so inline code remains visually distinguishable in card descriptions/comments (Lexxy content) and card titles.

Changes:

  • Update .lexxy-content code to use --color-ink-lighter background and --color-ink-light border.
  • Update .card__title code to use the same background/border tokens for consistency.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
app/assets/stylesheets/lexxy.css Adjusts inline code background/border colors within Lexxy-rendered content to improve dark-theme contrast.
app/assets/stylesheets/cards.css Aligns inline code styling in card titles with the updated Lexxy inline code color tokens.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants