mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-16 13:55:12 +00:00
Build the design system: typography, color tokens, real Base layout
References: pixperk.tech (dark, warm off-white text, serif-italic + mono mixed typography, personal dashboard modules) and mcyoung.xyz (meta line with reading time, subtle accent underline on titles). - src/styles/tokens.css: dark-first color palette with a warm-paper light mode (data-theme override + prefers-color-scheme, toggle wins either direction), fluid clamp() type scale, spacing/radius scale. - Fonts: Fraunces (display/headings, italic), Newsreader (body, long-form readability), JetBrains Mono (nav/meta/code) — all self-hosted via @fontsource, continuing the mono choice already used in the legacy OG-image pipeline. - Base.astro rewritten: real header/nav with active-link state, a theme toggle (persisted to localStorage, no-flash inline script), footer with social links (ported from zola.toml), replacing the scaffold placeholder. - Reading time: toml-content-loader.ts computes wordCount/ readingMinutes from the raw body at load time, surfaced in the writings list and detail meta line. - Bug fix: the marked heading renderer was using raw token.text for both the visible heading and the TOC, so a heading like "**Registers**" rendered literal asterisks instead of bold — now renders inline tokens properly and strips markdown for the plain-text TOC label/slug. Verified in-browser (light + dark) across home, a migrated writing with TOC/headings, bookshelf, and 404.
This commit is contained in:
@@ -16,16 +16,21 @@
|
||||
"dependencies": {
|
||||
"@astrojs/rss": "^4.0.19",
|
||||
"@astrojs/sitemap": "^3.7.3",
|
||||
"@fontsource-variable/fraunces": "^5.3.0",
|
||||
"@fontsource-variable/newsreader": "^5.3.0",
|
||||
"@fontsource/jetbrains-mono": "^5.3.0",
|
||||
"astro": "^7.2.9",
|
||||
"marked": "^18.0.11",
|
||||
"pagefind": "^1.5.2",
|
||||
"smol-toml": "^1.8.0"
|
||||
"smol-toml": "^1.8.0",
|
||||
"three": "^0.185.1"
|
||||
},
|
||||
"allowScripts": {
|
||||
"esbuild": true
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "^0.9.10",
|
||||
"@types/three": "^0.185.4",
|
||||
"typescript": "^5.9.3"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user