Skip to content

Improve code block and table readability in dark theme#205

Merged
jaypatrick merged 2 commits into
mainfrom
copilot/enhance-code-samples-appearance
Dec 30, 2025
Merged

Improve code block and table readability in dark theme#205
jaypatrick merged 2 commits into
mainfrom
copilot/enhance-code-samples-appearance

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 30, 2025

Code samples had insufficient contrast in dark mode, and table rows lacked visual distinction making content difficult to read.

Changes

Code Blocks

  • Added explicit --code-text variable for both themes
    • Light: #1a1a1a on #f5f5f5 background
    • Dark: #d4d4d4 on #1e1e1e background (darkened from #2d2d2d)
  • Added border, improved font stack (Monaco, Consolas), increased line-height to 1.5

Tables

  • Implemented alternating row colors via --table-row-even-bg and --table-row-odd-bg
    • Light: #fafafa / #fff
    • Dark: #252525 / #1e1e1e
  • Added hover state for row interactivity
  • Increased cell padding 0.5rem0.75rem
  • Dedicated --table-header-bg variable for consistent header styling

Screenshots

Dark Theme - Code Samples
Dark theme with improved code readability

Dark Theme - Tables
Dark theme with alternating table rows

Light Theme - Tables
Light theme with subtle row distinction

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • unpkg.com
    • Triggering command: /usr/local/bin/node node scripts/postinstall.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Add color to the code samples on the website. The font is hard to read. Also, tables don't look good in the dark theme, there are white rows and you can't read the font.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Dec 30, 2025
Co-authored-by: jaypatrick <1800595+jaypatrick@users.noreply.github.com>
Copilot AI changed the title [WIP] Add color to code samples and improve table visibility Improve code block and table readability in dark theme Dec 30, 2025
Copilot AI requested a review from jaypatrick December 30, 2025 03:13
@jaypatrick jaypatrick marked this pull request as ready for review December 30, 2025 03:14
@jaypatrick jaypatrick merged commit 3f30b6b into main Dec 30, 2025
9 checks passed
@jaypatrick jaypatrick deleted the copilot/enhance-code-samples-appearance branch December 30, 2025 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants