Notes on this site's typography & style
This site is built to read like a quiet printed page — mostly plain text, a single 580px serif column, and almost no UI chrome. This note doubles as a living reference for the everyday prose styles defined across _tokens.scss, _prose.scss, and _print.scss.
lightPalette & theming
Instead of stark white and black, both themes sit on slightly warm neutrals: paper in light mode and charcoal in dark mode. By default the theme follows your OS preference (system), and pressing D anywhere toggles between light and dark without a flash.
Inline code pills automatically show a clickable swatch whenever they contain a CSS color — whether hex (, ), functional syntax (, ), or live design tokens like and .1
| Token | Role | Light | Dark |
|---|---|---|---|
| Page background | |||
| Primary ink | |||
| Secondary ink | |||
| Links & focus | |||
| Hairline rules | |||
| Code surface |
Prose, links & emphasis
Standard Markdown carries almost everything: strong emphasis, italics, struck-through thoughts, highlighted passages, and inline code() for identifiers. File names like src/app/page.tsx, styleguide.mdx, and package.json automatically pick up a quiet language-colored dot so paths stand apart from ordinary code.
Links inside .prose carry subtle typographic markers skipped by screen readers: section anchors, internal pages, and external sites. Hovering any section heading also reveals a clickable # permalink that copies the direct URL.
Lists & working checklists
Unordered and ordered lists keep muted markers so the text stays front and center:
- Keep each note in
src/content/notes/as a plain.mdxfile withtitle,date, anddescriptionfrontmatter. - Run
bun run buildto prerender every published note and updatesitemap.xml. - Keep drafts private with
draft: trueuntil they are ready to ship.
- Write in plain Markdown first.
- Reach for JSX only when an interactive piece genuinely helps.
- Let build-time prerendering serve static HTML by default.
And for tracking small tasks inside notes, GFM checklists work out of the box:
- Warm light & dark tokens with OS-default
systemtheme - Build-time syntax highlighting and dynamic
/api/ogcards - Print stylesheet tuned for clean paper & PDF output
- Publish more writing
Code & callouts
When a short expression benefits from syntax color inline, appending {:lang} highlights just that snippet — for instance const ready = true or text-wrap: balance — while regular code() stays uncolored.
Fenced blocks are highlighted at build time with Shiki's dual vitesse-light / vitesse-dark palettes, optional title="..." headers, {line} highlights, opt-in showLineNumbers, and a copy button:
import { api } from "@core/client/api";
const { data, error } = await api.api.music.get();
if (!error && data.status === "playing") {
console.log(`Now playing: ${data.track} — ${data.artist}`);
}Before/after edits can mark added or removed lines inline using // [!code ++] and // [!code --]:
export const siteConfig = {
name: "Julian Maggio",
defaultTheme: "light",
defaultTheme: "system",
} as const;Simplicity is prerequisite for reliability.
Edsger W. Dijkstra
Everything here is generated statically at build time with zero runtime Markdown or syntax-highlighting JavaScript shipped to the browser.2