A twelve-column grid with zero client framework
Why every page uses visible structural rules, CSS subgrid, and light-dark() tokens instead of cards or client hydration.
- status
- accepted
- tokens
- design-system/tokens
- classes
- ag-*
- client js
- ~2 kb inline
context
Personal engineering sites often accumulate wrapper components, card borders, shadows, and client-side frameworks that obscure typography and slow down static pages.
We wanted a layout system where position, proportion, and hierarchy come strictly from one shared grid rather than decorative containers.
decision
- Visible twelve-column grid. All layout runs on CSS Grid (
--grid-cols) with zero gutter and an8pxtext inset (--inset). Content sections usesubgridso rules, tables, code fences, and timelines align to exact column lines. - Lines as the only ornament. Sections open with a
2pxink rule, items with a1pxrule, and rows close with a faint hairline. - One accent hue. Everything is ink on paper, reserving
--nowgreen strictly for active states: the current role, the current year, today’s commit cell, and resolved incident nodes. - No client framework. Only three small browser behaviors exist: pre-paint theme initialization, the
/docskind filter, and the code-block copy button.
consequences
- Styling lives centrally in
design-system/(tokens/andcomponents/components.css), while Astro components stay purely structural. - Browser-viewable reference cards in
design-system/guidelines/document every token and grid invariant directly againststyles.css. - Cross-document transitions rely on native
@view-transitionCSS rather than client-side routing scripts.