···11+---
22+title: Reader Mode
33+tags:
44+ - component
55+---
66+77+Reader Mode is a feature that allows users to focus on the content by hiding the sidebars and other UI elements. When enabled, it provides a clean, distraction-free reading experience.
88+99+## Configuration
1010+1111+Reader Mode is enabled by default. To disable it, you can remove the component from your layout configuration in `quartz.layout.ts`:
1212+1313+```ts
1414+// Remove or comment out this line
1515+Component.ReaderMode(),
1616+```
1717+1818+## Usage
1919+2020+The Reader Mode toggle appears as a button with a book icon. When clicked:
2121+2222+- Sidebars are hidden
2323+- Hovering over the content area reveals the sidebars temporarily
2424+2525+Unlike Dark Mode, Reader Mode state is not persisted between page reloads but is maintained during SPA navigation within the site.
2626+2727+## Customization
2828+2929+You can customize the appearance of Reader Mode through CSS variables and styles. The component uses the following classes:
3030+3131+- `.readermode`: The toggle button
3232+- `.readerIcon`: The book icon
3333+- `[reader-mode="on"]`: Applied to the root element when Reader Mode is active
3434+3535+Example customization in your custom CSS:
3636+3737+```scss
3838+.readermode {
3939+ // Customize the button
4040+ svg {
4141+ stroke: var(--custom-color);
4242+ }
4343+}
4444+```