added proper dark mode support

This commit is contained in:
2025-10-30 10:55:03 -04:00
parent 02d99343f0
commit b3ab0d48f0
3 changed files with 7 additions and 5 deletions

8
package-lock.json generated
View File

@@ -40,7 +40,7 @@
"preact-render-to-string": "^6.6.1", "preact-render-to-string": "^6.6.1",
"pretty-bytes": "^7.0.1", "pretty-bytes": "^7.0.1",
"pretty-time": "^1.1.0", "pretty-time": "^1.1.0",
"quartz-line-age": "1.1.1", "quartz-line-age": "1.1.2",
"reading-time": "^1.5.0", "reading-time": "^1.5.0",
"rehype-autolink-headings": "^7.1.0", "rehype-autolink-headings": "^7.1.0",
"rehype-citation": "^2.3.1", "rehype-citation": "^2.3.1",
@@ -5940,9 +5940,9 @@
} }
}, },
"node_modules/quartz-line-age": { "node_modules/quartz-line-age": {
"version": "1.1.1", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/quartz-line-age/-/quartz-line-age-1.1.1.tgz", "resolved": "https://registry.npmjs.org/quartz-line-age/-/quartz-line-age-1.1.2.tgz",
"integrity": "sha512-o5M9vCgCE7YoMWDpWO3fNqgVS67iNf/Lpe43APudNmbKWt9Vbb0omHb8UjM6+t3t2NAidYsapILdwN5LT/wbrg==", "integrity": "sha512-4qu/smhHYEOtwv0/WCGUkFOgFpHD+NqHXo2gnblPQsBmNOEv2hFf+F0FEBTtIqXYxVOLqAKh/XNm0JwG0TPLbg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"rehype-raw": "^7.0.0", "rehype-raw": "^7.0.0",

View File

@@ -96,7 +96,7 @@
"workerpool": "^9.3.3", "workerpool": "^9.3.3",
"ws": "^8.18.3", "ws": "^8.18.3",
"yargs": "^18.0.0", "yargs": "^18.0.0",
"quartz-line-age": "1.1.1" "quartz-line-age": "1.1.2"
}, },
"devDependencies": { "devDependencies": {
"@types/d3": "^7.4.3", "@types/d3": "^7.4.3",

View File

@@ -77,6 +77,8 @@ const config: QuartzConfig = {
LineAgePost({ LineAgePost({
freshColor: { r: 32, g: 126, b: 143 }, freshColor: { r: 32, g: 126, b: 143 },
oldColor: { r: 215, g: 239, b: 247 }, oldColor: { r: 215, g: 239, b: 247 },
darkModeFreshColor: { r: 235, g: 235, b: 236 }, //#ebebec
darkModeOldColor: { r: 22, g: 22, b: 24 }, //#161618
}), }),
Plugin.GitHubFlavoredMarkdown(), Plugin.GitHubFlavoredMarkdown(),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),