mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-16 14:42:29 -05:00
[PR #989] [MERGED] Fix dark mode stylings for callout examples #15170
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/989
Author: @eimlav
Created: 10/24/2025
Status: ✅ Merged
Merged: 10/24/2025
Merged by: @profvjreddi
Base:
dev← Head:fix-dark-mode-example-colors📝 Commits (1)
f8ae682Fix dark mode stylings for callout examples📊 Changes
1 file changed (+8 additions, -0 deletions)
View changed files
📝
quarto/_extensions/mlsysbook-ext/custom-numbered-blocks/style/foldbox.css(+8 -0)📄 Description
Overview
Issue: https://github.com/harvard-edge/cs249r_book/issues/990
The site seems to use a small subset of dark mode stylings in certain places. One place is in the callouts. When using dark mode, it is impossible to read the text as it is being inherited from an upstream CSS var.
I have updated it so that it is readable. I kept it as a very simple change as it seems dark mode isn't really properly supported in this project so it's really just a small workaround to make things readable for now.
Testing
Build the introduction page, open it then using dev tools find the
Renderingtab and toggle theme usingEmulate CSS media feature prefers-color-schem.Light mode
Dark mode
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.