reader_mode:
- hides sidebars/UI for distraction-free reading
Note
Plugin installation, removal, configuration: Configuration.
Configuration
defaults:
enabled: - true
disable:
- set
enabled: falseinquartz.config.yaml:
plugins:
- source: github:quartz-community/reader-mode
enabled: falseremove:
- run:
npx quartz plugin remove github:quartz-community/reader-modeinstall:
npx quartz plugin add github:quartz-community/reader-mode
source:
Usage
toggle:
- book icon: hides/shows sidebars
hover:
- content-area hover: temporarily reveals sidebars
persistence:
- SPA navigation: retained
- page reload: reset
Customization
selectors:
.readermode: - toggle button
.readerIcon: - book icon
[reader-mode="on"]: - active-state root attribute
.readermode {
// Customize the button
svg {
stroke: var(--custom-color);
}
}