Style

Bare bones style guide — a running index of elements and the practices behind them. Deeper write-ups: fluid type & layout, color & theme, password-protect plugin.

Color

One hue on :root drives the palette. Light and dark swap which mix is ink (--text-color) and which is paper (--bg-color). Scrub the sidebar hue control to see these update live.

Symbiotic Colors

Primary
Complement 1
Complement 2
--darken
--lighten

Contextual Colors

--bg-color
--text-color
--color-kicker

Typography

IBM Plex Sans is the reading voice (body, UI, meta). Crimson Pro carries headings. Body size is fluid via --font-size (0.75rem + 1.2vw, clamped 16px–24px at a default root). Display titles use a steeper --fs-h1 clamp. Measure lives on .container at 74ch.

Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Kicker / meta label

Body Text

This is a paragraph of body text. The face is IBM Plex Sans. Size tracks the viewport through --font-size, then stays between a rem floor and ceiling so zoom still works.

This is italic text.

This is bold text.

This is bold and italic text.

Text Elements

  • Unordered list item

  • Another list item

    • Nested list item

    • Another nested item

  • Back to main list

  1. Ordered list item

  2. Another ordered item

  3. And another

This is a blockquote. It can contain multiple paragraphs and other elements.

This is inline code

This is a code block
with multiple lines
and formatting

Ctrl + C

This is highlighted text

This is small text

Subscript and Superscript

Deleted text and Inserted text


UI Elements

Internal Link | External Link | Direct Link

Buttons


Form Elements

Text Inputs

Textarea

Select

Checkboxes

Radio Buttons

Range Input

File Input

Submit Button


Style Practices & Principles

  1. Color

    • Extend :root / theme tokens — do not paste hex into components

    • Derive ink and paper with color-mix from the primary hue; light/dark only swap roles

    • Prefer OKLCH so lightness stays honest as the hue slider moves

  2. Typography

    • var(--ff-sans) for body and UI; var(--ff-serif) for headings

    • Fluid size via --font-size / --fs-h1 on :root; meta stays fixed (--fs-meta)

    • Cap measure on .container (74ch), not on a child that switched faces

  3. Layout & spacing

    • Multiply var(--gap) instead of inventing a second spacing dialect

    • .layout owns the shell; .container owns the reading width

    • Main breakpoint for the sidebar shell is 960px (not a separate mobile/desktop type scale)