mirror of
https://gitlab.com/MisterBiggs/brain-quartz.git
synced 2025-07-21 22:01:34 +00:00
.github
content
docs
advanced
features
Latex.md
Mermaid diagrams.md
Obsidian compatibility.md
OxHugo compatibility.md
RSS Feed.md
SPA Routing.md
backlinks.md
callouts.md
darkmode.md
explorer.md
folder and tag listings.md
full-text search.md
graph view.md
index.md
popover previews.md
private pages.md
recent notes.md
syntax highlighting.md
table of contents.md
upcoming features.md
wikilinks.md
images
tags
authoring content.md
build.md
configuration.md
hosting.md
index.md
layout.md
migrating from Quartz 3.md
philosophy.md
showcase.md
upgrading.md
quartz
.gitattributes
.gitignore
.npmrc
.prettierignore
.prettierrc
CODE_OF_CONDUCT.md
LICENSE.txt
README.md
globals.d.ts
index.d.ts
package-lock.json
package.json
quartz.config.ts
quartz.layout.ts
tsconfig.json
15 lines
535 B
Markdown
15 lines
535 B
Markdown
---
|
|
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`
|