feat: add font family configuration system with monospace option

This commit is contained in:
Wayne Sutton
2025-12-25 12:17:27 -08:00
parent 66c7f161bd
commit 6b776733d5
19 changed files with 421 additions and 37 deletions

12
TASK.md
View File

@@ -8,10 +8,20 @@
## Current Status
v1.28.2 ready. Fixed text wrapping for plain text code blocks.
v1.29.0 ready. Added font family configuration system with monospace option.
## Completed
- [x] Font family configuration system with siteConfig integration
- [x] Added FontContext.tsx for global font state management
- [x] Monospace font option added to FONT SWITCHER (IBM Plex Mono)
- [x] CSS variable --font-family for dynamic font updates
- [x] Write page font switcher updated to support serif/sans/monospace
- [x] Fork configuration support for fontFamily option
- [x] Documentation updated (setup-guide.md, docs.md)
- [x] Font preference persistence with localStorage
- [x] SiteConfig default font detection and override logic
- [x] Plain text code blocks now wrap text properly instead of horizontal overflow
- [x] Updated inline vs block code detection logic in BlogPost.tsx
- [x] Added `pre-wrap` styling for text blocks via SyntaxHighlighter props