Theme Mode and Contrast
Scholarly separates palette choice from readable foreground/background tokens. Use colorTheme for identity, colorMode for the normal slide surface, and sectionMode for section dividers.
Recommended defaults
yaml
themeConfig:
colorTheme: classic-blue
fontTheme: classic
colorMode: light
sectionMode: dark- Use
colorMode: lightfor citation-heavy, text-heavy, or figure-heavy slides. - Use
sectionMode: darkfor chapter breaks where large text dominates. - Use
high-contrastwhen the deck will be projected in bright rooms. - Use
monochromewhen screenshots, charts, or code should dominate the palette.
Quote and Highlight safety
The risky combination is dark semantic backgrounds with dark body text. The P0 token model maps quote, Highlight, Block, and component surfaces through mode-aware semantic tokens, but slide authors should still avoid long dark highlight regions on light slides.
Prefer:
- Short inline Highlight spans over full paragraph highlights.
- Block or EvidenceBlock when the content needs a title and body.
type="warning"only for actual warnings; usetype="info"ortype="primary"for neutral emphasis.high-contrastfor accessibility review before export.
Quick check
Run the doctor and a visual export before sharing:
bash
sch doctor
pnpm run theme:matrixFor a faster local check without Playwright export:
bash
node scripts/check-theme-matrix.mjs --dry-run