mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 02:03:55 -05:00
[PR #1624] [MERGED] fix(kits): make code blocks readable in dark mode #9230
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1624
Author: @farhan523
Created: 5/2/2026
Status: ✅ Merged
Merged: 5/2/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/kits-dark-mode-code-blocks📝 Commits (1)
193f6e6fix(kits): make code blocks readable in dark mode📊 Changes
2 files changed (+57 additions, -7 deletions)
View changed files
📝
kits/assets/styles/dark-mode.scss(+54 -6)📝
kits/config/_quarto-html.yml(+3 -1)📄 Description
Summary
Code blocks (both fenced source blocks and inline
code) were unreadable in dark mode on the kits site — the text rendered in the light syntax-theme colors (e.g.#24292eoperators,#032f62strings) on an off-white#f6f8fabackground, on a body that was otherwise dark.Before:
After:
Root cause
When
format.html.themedefines both alight:and adark:SCSS bundle, Quarto emits three syntax-highlighting<link>tags into every page: