3 min read

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.

resolved: light

Palette & 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

TokenRoleLightDark
Page background
Primary ink
Secondary ink
Links & focus
Hairline rules
Code surface

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:

  1. Write in plain Markdown first.
  2. Reach for JSX only when an interactive piece genuinely helps.
  3. Let build-time prerendering serve static HTML by default.

And for tracking small tasks inside notes, GFM checklists work out of the box:

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:

src/app/page.tsxts
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 --]:

site.config.tsts
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

Footnotes

  1. Translucent swatches render over a micro-checkerboard so alpha values stay visible in both themes. ↩

  2. Adding a new note is just dropping another .mdx file into src/content/notes/. ↩