• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

amacgregor / amgr_phx / e979729195d86d9982efa83184482ec1e9790a98
44%

Build:
DEFAULT BRANCH: main
Ran 25 Nov 2026 12:12AM UTC
Jobs 1
Files 91
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Nov 2026 12:10AM UTC coverage: 41.624%. Remained the same
e979729195d86d9982efa83184482ec1e9790a98

push

github

amacgregor
Give light mode a background of its own

Light mode rendered on a black canvas with dark text for any reader
whose OS is set to dark. The toggle works; the page underneath it never
did.

`body` only ever carried `dark:bg-gray-900 dark:text-gray-100`. With the
`dark` class off, its computed background was rgba(0,0,0,0) — nothing was
painted at all, and the browser's own canvas showed through. Since the
head declares `<meta name="color-scheme" content="dark light">`, that
canvas follows the OS, so an OS set to dark painted it black. Measured on
production before the change:

  light mode, OS dark -> bodyBg rgba(0, 0, 0, 0), bodyColor rgb(255,255,255)
  dark  mode, OS dark -> bodyBg rgb(17, 24, 39),  bodyColor rgb(243,244,246)

Two parts to the fix. `body` gets explicit light-mode colours, so the
light canvas is painted rather than inherited. And `color-scheme` is now
bound to the `dark` class instead of the meta tag, so the UA-painted
chrome — canvas, scrollbars, form controls — follows the toggle rather
than the reader's OS.

Not a regression from the podcast release: that commit touched only
application.ex, and the production stylesheet and the committed one parse
to the same 1045 rules. Both the meta tag and the body class date to the
Phoenix 1.7/1.8 upgrade in 40b04d5, so light mode has been broken on a
dark OS since then — it only shows for readers who switch to light.

Verified across both themes and both OS preferences:

  OS dark,  light mode -> bg rgb(255,255,255), color-scheme light
  OS dark,  dark  mode -> bg rgb(17,24,39),    color-scheme dark
  OS light, dark  mode -> bg rgb(17,24,39),    color-scheme dark

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QbaByVNtYx3Df5ps61bpxF

815 of 1958 relevant lines covered (41.62%)

460.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 e979729195d86d9982efa83184482ec1e9790a98.1 25 Nov 2026 12:12AM UTC 91
41.62
GitHub Action Run
Source Files on build e979729195d86d9982efa83184482ec1e9790a98
  • Tree
  • List 91
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e9797291 on github
  • Prev Build on main (#8D22D923...)
  • Next Build on main (#618D1660...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc