mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 18:18:42 -05:00
[PR #1607] [MERGED] fix(quarto/scss): scope light-text overrides to dark theme #9218
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/1607
Author: @farhan523
Created: 4/30/2026
Status: ✅ Merged
Merged: 4/30/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/scss-dark-theme-scope📝 Commits (1)
7693d4cfix(quarto/scss): scope light-text overrides to dark theme📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
tinytorch/quarto/assets/styles/style.scss(+4 -2)📄 Description
Summary
#quarto-content h3andpre codecolor overrides in[data-bs-theme="dark"]so they only apply in dark mode.Why
The unscoped rules forced near-white text (
#d0d0d0,#e6e6e6) on h3 headings andpre codeblocks regardless of theme, which left those elements unreadable in light mode. Gating on the dark-theme attribute restores Quarto's default light-mode contrast while preserving the dark-mode appearance.Test plan
quarto previewfromtinytorch/quarto/and confirm h3 /pre coderender correctly in light mode.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.