Skip to content

feat: add dark mode support to config page#26

Open
yoyo-67 wants to merge 1 commit intocommenthol:masterfrom
yoyo-67:feat/dark-mode
Open

feat: add dark mode support to config page#26
yoyo-67 wants to merge 1 commit intocommenthol:masterfrom
yoyo-67:feat/dark-mode

Conversation

@yoyo-67
Copy link

@yoyo-67 yoyo-67 commented Jan 7, 2026

Summary

  • Add dark mode toggle to the /config page
  • Implement GitHub-style dark theme using CSS custom properties
  • Dark mode setting persists in app config and applies to all rendered markdown pages

Test plan

  • Run npm run build to compile assets
  • Start server with node bin/mdstart.js
  • Navigate to /config page
  • Toggle "Dark mode" checkbox and submit
  • Verify dark theme applies to config page and markdown files

🤖 Generated with Claude Code

Add a dark mode toggle to the /config page that applies a GitHub-style
dark theme across all rendered markdown pages.

- Add CSS custom properties for dark mode colors in github.css
- Update screen.css to use CSS variables for theming
- Add darkMode checkbox to config.md form
- Handle darkMode setting in renderConfig.js
- Pass darkMode to template in markd.js
- Update template.html to apply data-theme attribute

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant