feature docs
This commit is contained in:
parent
259d0a6d9a
commit
79e828696a
20 changed files with 160 additions and 94 deletions
14
content/features/darkmode.md
Normal file
14
content/features/darkmode.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
title: "Darkmode"
|
||||
tags:
|
||||
- component
|
||||
---
|
||||
|
||||
Quartz supports darkmode out of the box that respects the user's theme preference. Any future manual toggles of the darkmode switch will be saved in the browser's local storage so it can be persisted across future page loads.
|
||||
|
||||
## Customization
|
||||
|
||||
- Removing darkmode: delete all usages of `Component.Darkmode()` from `quartz.layout.ts`.
|
||||
- Component: `quartz/components/Darkmode.tsx`
|
||||
- Style: `quartz/components/styles/darkmode.scss`
|
||||
- Script: `quartz/components/scripts/darkmode.inline.ts`
|
Loading…
Add table
Add a link
Reference in a new issue