Theming
HtmlForgeX supports dark mode, light mode, and automatic theme switching.
Theme Modes
- Light — Light background with dark text
- Dark — Dark background with light text (default)
- Auto — Follows the operating system preference
Theme Toggle
HtmlForgeX generates a theme toggle control that allows users to switch between modes:
doc.Body.Page(page => {
page.WithThemeToggle();
// content
});Next Steps
- Dark & Light Mode — How theme switching works
- Customization — Colors, spacing, typography