# Woojong Koh - Full Content Archive > Woojong Koh - Software Engineer, Researcher, and Founder This document contains the complete raw text of all published essays, research notes, and articles from https://wjkoh.com/. --- # Monograph: A Standards-First Hugo Theme for Technical Writing - **URL**: https://wjkoh.com/posts/monograph-hugo-theme/ - **Date**: 2026-11-28 - **Description**: I built Monograph from scratch in pure modern CSS with breakout grids, self-hosted assets, OpenTimestamps provenance, and Chrome E2E verification, then moved wjkoh.com onto it. Most technical blogs fail one of two jobs. When a stylesheet narrows the page to a comfortable reading column, seven-column financial tables cramp and shell pipelines wrap mid-flag. When a stylesheet widens the container to fit code and charts, body paragraphs stretch past ninety characters per line and tire the eye within three paragraphs. **Monograph solves both jobs with pure modern CSS, zero frontend build dependencies, and automated real-browser verification.** I built [Monograph](https://github.com/wjkoh/hugo-theme-monograph) from scratch as a standalone MIT-licensed Hugo theme, tested every rendered page in headless Chrome across desktop, mobile, dark mode, and US Letter printouts, and migrated this site onto it today. Every post, table, callout, and OpenTimestamps badge on wjkoh.com now runs Monograph live, and the [v0.1.3 release](https://github.com/wjkoh/hugo-theme-monograph/releases/tag/v0.1.3) is submitted to the [official Hugo Themes registry](https://github.com/gohugoio/hugoThemesSiteBuilder/pull/861). ## Pure Modern CSS Instead of Frontend Build Chains Static site generators stay fast when themes avoid heavy toolchains. Monograph ships zero Tailwind, zero Sass, zero npm packages, and zero `!important` rules in screen stylesheets. Hugo Pipes concatenates nine modular CSS files declared under a single explicit cascade line in `00-layers.css`: ```css @layer reset, tokens, base, layout, prose, components, syntax, print; ``` Layer order eliminates specificity wars across the entire theme. Base resets never fight prose rhythm, components never leak into syntax highlighting, and a site author can drop a small `custom.css` file into `assets/css/` without wrestling selectors. Color tokens rely on native CSS `light-dark()` so light mode, dark mode, and automatic system preference share one palette definition across body copy, surfaces, borders, GitHub-style alert callouts, and GitHub Light and Dark Chroma syntax tokens. Layout geometry runs on a symmetric five-track CSS Grid. Narrative paragraphs, headings, blockquotes, and footnotes stay locked to a 690-pixel reading column. Wide tables, code frames, long display equations, Mermaid diagrams, and figures tagged with `#wide` automatically span a 960-pixel breakout column on desktop monitors, then collapse smoothly to full viewport width with zero horizontal page overflow on 390-pixel phones. Running a real-world dry run of wjkoh.com caught a subtle CSS Grid trap that static review missed. Grid items never collapse adjacent vertical margins the way standard block flow does. A bulleted list with a bottom margin followed by a horizontal rule and an `h2` heading stacked three separate margins into a 147-pixel gap on `/about/`. Switching direct `.prose` children in `05-prose.css` and `06-components.css` to a single-direction `margin-top` flow cut that gap to a balanced 63 pixels and made spacing predictable on every page. ## Typography, Mobile Ergonomics, and US Letter Paper Early prototypes of Monograph used Newsreader for body copy inside a 720-pixel column. Measuring the actual wrapped first line in Chrome showed 86 to 92 characters per line, well above the 50 to 75 character band recommended by Baymard Institute and classical typographers. Newsreader carries narrow glyph widths and a small x-height, which stretches line counts even at 20 pixels. Switching the body serif to self-hosted variable Literata inside a 690-pixel column at 19.5 pixels on desktop and 18 pixels on mobile landed real rendered lines at 69 characters per line. Variable weight ranges in `00-fonts.css` let headings, table headers, and definition terms interpolate natively rather than relying on faux bold synthesis. Mobile viewports tighten line height from 1.64 to 1.56 so narrower lines hold together cleanly, dark mode applies subtle optical compensation at weight 380 and 0.008em letter spacing to reduce light-on-dark stroke bloom, and inline code sits at 0.82em so JetBrains Mono matches surrounding serif proportions. Print formatting receives the same engineering attention as screen rendering. Pressing print from either light or dark mode forces crisp black ink on white US Letter paper, hides navigation bars and interactive buttons, wraps long code lines so zero characters clip off the margin, repeats table headers across page breaks, and keeps headings glued to their opening paragraphs. Folded `
` disclosures and audio transcripts expand automatically before print and restore to their closed state afterward. ## Self-Hosted Assets, Audio Subtitles, and Provenance External CDNs break offline archives, leak reader IP addresses, and inject supply-chain risk into personal publications. Monograph vendors every third-party dependency inside the theme repository: KaTeX 0.16.21, Mermaid 11.12.2, and five Latin variable `.woff2` font files for Literata, Inter, and JetBrains Mono. Every vendored file is tracked in `VENDOR_CHECKSUMS.sha256`, every stylesheet and script tag carries a Hugo Pipes `sha384` Subresource Integrity digest, and end-to-end tests fail if Chrome initiates even a single third-party network request. Because browsers parse WebVTT tracks on `