lobee.ca · Documents
📄 HTML Library
The Lobee.ca design system: every token, layout rule and component in assets/css/lobee.css, rendered with the real CSS on this page. Plain hand-written HTML and CSS: no build step, no CDN, no frameworks, system fonts only. If a class is not documented here, it is not part of the system. Toggle the sun/moon button in the header to see every demo in both themes. The block-mosaic page transition (lobee-pagetr.css / .js) and the Sakuga button bursts (lobee-sakuga.css / .js) are unlinked for now; the files stay on the server so they can be restored by putting the tags back.
Start here: rules
Four linked files make up the front end (the server side, .htaccess, is documented under Conventions): /assets/css/lobee.css (tokens + components, including standalone --btn-3d-* surface tokens), /assets/js/lobee-press.js (deferred; mirrors :active as .is-pressed for iOS Safari), one small inline <script> per page for the theme toggle, and /assets/css/lobee-docs.css (the ds- helpers for this page only; no other page links it, so it costs every other page nothing). The block-mosaic page transition (/assets/css/lobee-pagetr.css and synchronous /assets/js/lobee-pagetr.js) is unlinked for now; the files stay on the server and can be restored by putting the tags back (CSS after lobee.css, JS at the end of <head>). The Sakuga button bursts (/assets/css/lobee-sakuga.css and /assets/js/lobee-sakuga.js) are unlinked for now too (see Motion); the files stay on the server. The retired /assets/css/lobee-nebula.css and /assets/js/lobee-ascii.js are not part of the front end and should not be re-uploaded.
Do
- Link
lobee.csswith a?v=tag on every page, and loadlobee-press.jswithdefer. The mosaic page transition (lobee-pagetr.css/lobee-pagetr.js) is unlinked for now; to restore it, add the CSS tag afterlobee.cssand the JS tag synchronously at the end of<head>on every page. Only this documentation page also linkslobee-docs.css; keep documentation-only rules (ds-) there, never inlobee.css. - Reuse an existing class before inventing one. New CSS goes into the readable source of
lobee.css(kept in the working copy assrc/lobee.css; the live file is a minified build of it) under a clear prefix (index-,page-404__) and uses tokens only:var(--flow-block),var(--pad-card),var(--color-text-muted),var(--radius-md). Follow the Spacing & sizing principle below. - Check every change in light AND dark (use the header toggle) and at 390 px wide: no horizontal scrolling, no clipped text.
- Use root-absolute paths (
/assets/images/x.webp) and extensionless links (/blogs/october-check-in, never.html). - Ship images as
.webpwith explicitwidth/height;fetchpriority="high"only on the one hero image. A replaced image gets a NEW file name (images are cached for a year); fixed-name shared images (the favicon set, the error sticker) instead get the next?v=on every reference. - Use a small image (an SVG for a flag) instead of a flag emoji: Windows has no flag emoji font and shows the two letters ("CA") instead. Give it a real
alt("Canada") and size it inline with a class, because the globalimgrule isdisplay: block. - Give every new page a
.mdcompanion and a sitemap entry (see Conventions). - One
<h1 class="page-title">per page;aria-current="page"on the active nav link;aria-hidden="true"on decorative arrows and icons; anaria-labelon icon-only buttons and on<progress>. When a button with visible text has anaria-label, start it with that visible text (contact chips:Email Web@Lobee.ca, click to copy) so voice control can find it.
Don't
- No external dependencies of any kind: no CDN CSS/JS, Google Fonts or other web fonts, icon fonts, analytics, trackers, or third-party images. The CSP allows same-origin files only, so anything from another host is blocked. Do not add hosts.
- No Tailwind, no framework, no build step, no
@import. - No per-page
<style>blocks and nostyle=""attributes. The CSP hasstyle-src 'self'with no'unsafe-inline', so the browser blocks them. Put a class inlobee.cssinstead. - No inline event handlers (
onclick=) and nojavascript:links. Scripts are hashed in the CSP, so a handler would be blocked. - Do not add or edit an inline
<script>without adding or replacing its sha256 hash in.htaccess(see CSP); an unlisted script is blocked. - Do not edit
lobee.css,lobee-pagetr.*,lobee-sakuga.*orlobee-press.jswithout bumping their?v=tag on every page that links them: these files are cached for one year asimmutable. - No raw hex colours and no literal px / rem / ch for spacing, sizing, radius, type size or width (the only colour literal is
#fffon accent surfaces; the allowed size exceptions are listed under Spacing & sizing principle), and no!important(the reduced-motion rule is the one exception). - Do not hide content from the
.mdcompanion: the markdown file mirrors the page.
Spacing & sizing principle
One rule: every margin, padding, gap, width cap, height, radius, font size and line length comes from a token in lobee.css. No one-off values, and no difference between two components unless the difference is written down here as intentional. If a value you need does not exist, add a token (with a comment saying what it is for) rather than typing a number.
The tokens
| Token | Value | Use it for |
|---|---|---|
--space-0_5 … --space-20 | 2 · 4 · 8 · 12 · 16 · 20 · 24 · 32 · 40 · 48 · 64 · 80 px | The raw 4 px scale. Gaps inside a component (icon to text, item to item, grid gaps). --space-0_5 only between two stacked lines of one text group (feed-card title/desc, contact-chip title/value) |
--flow-text | --space-4 (16) | Below a paragraph, ul or ol; between two body blocks inside a callout |
--flow-item | --space-2 (8) | Between list items |
--flow-block | --space-6 (24) | Above and below every block in running text: image, figure, code block, do / avoid pair, callout, embed, table, blockquote, Library demo |
--flow-heading | --space-3 (12) | Below any heading; between a title and the line right under it (404 lead) |
--flow-h2 / --flow-h3 / --flow-h4 | 40 / 32 / 24 px | Above a heading (posts and this Library alike); removed when the heading is the first child |
--flow-rule | --space-10 (40) | Above and below an hr |
--pad-control | 8 px 16 px | Buttons, .btn-back, code-block header bar |
--pad-card | 16 px 20 px | Feed cards, callouts, the standalone clock |
--pad-panel | --space-5 (20) | .card-block, .index-panel |
--pad-inset | --space-4 (16) | Code <pre>, Library demo frames and panels |
--text-xs … --text-2xl | see Typography | UI text: labels, nav, cards, titles |
--text-body, --text-h3, --text-h2, --leading-prose | 16–18 / 17–20 / 19–22 px, 1.8 | Reading text: .prose p / ul / ol / blockquote and its headings (posts, the guide and this Library alike), callout body text, the home hero body |
--media-max | 500px | Post photo frame; About contact chips line up with it |
--control-h | 2.25rem (36) | Square icon button, code-block header height, one-line main row of a home card |
--border-thick | 2px | Chrome rim: keys, chips, tags, feed / page cards (same in both themes) |
--sticker-card-width | 1px | Rim on dark-toned or tinted reading surfaces: widgets, callouts, code, tables (same in both themes, so outer size does not jump) |
--depth-1 / --depth-2 / --depth-3 / --depth-hover | 2 / 4 / 6 / 2 px | Extruded-side scale: chips and tags / cards, callouts, code, tables, buttons / hero home widgets / extra side when a face lifts. --sticker-lift aliases --depth-2; --sticker-lift-sm aliases --depth-1 |
--sticker-* | see lobee.css | Sticker component colours: edge (chrome outline), shadow (default side wall), ink, pastel badges blue / amber / mint / pink / violet, box tints tint-blue / tint-amber / tint-mint / tint-violet, and hue pairs card-edge-mint|amber|violet / shadow-mint|amber|violet (a darker shade of the face hue). Light and dark values (dark tints are deep, never white) |
--widget-* | see lobee.css | Home widget colours: ink, edge, shadow, mac-bg, clock-bg, mac-body, screen, face, clock-face, lcd-bg / lcd-fg / lcd-glow, amber / amber-2, block-red, badge-bg; light and dark values |
--icon-sm / --icon-md | 16 / 18 px | Feed-card emoji / SVG icons (theme toggle, contact chips) |
--radius-sm / -md / -lg / -full | 4 / 6 / 8 / 9999 px | Inline code and focus ring / controls, cards, code blocks / large framed media (photos, Library theme panels) / pills and the progress bar. --radius-xl (12) is reserved |
--content-default / --content-wide | 960 / 1200 px | Page column (.page-wrap): the line under the page title and everything below it, running text included, span it / header |
Which token for what
- Space between two things in running text: a
--flow-*token, never a raw--space-*. Text to text is--flow-text, anything boxed is--flow-block, headings use--flow-h2/h3/h4above and--flow-headingbelow. - Space inside a box: a
--pad-*token. Pick the one whose description matches (a control, a card, a panel, a code/demo inset). - Space between children of one component (icon and label, grid cells): the raw
--space-*scale. - Text size: UI text uses
--text-xs…--text-2xl; reading text uses--text-bodyand the--text-h*headings. A list in prose is the same size and width as the paragraph next to it. - Width of running text, callouts, code blocks, tables and cards: the full
.page-wrapcolumn (--content-defaultless its side padding), the same edges as the line under the page title. Nothing in a post sets its own max-width. Width of a framed photo or anything lined up with it:--media-max. - First and last child of
.prose,.page-wrapand.postlose their outer margin, so a component never adds a gap at the top or bottom of the column; the page bottom padding (--space-16) is the only end gap.
Allowed exceptions (intentional, documented)
- Hairlines and offsets: 1 px borders, 3 px accent edges, 2 px outlines and outline offsets, the 3D depth (
--btn-3d-depth). - Line-heights are unitless ratios set per text style (1.6 body, 1.65 code and the callout title, 1.8 prose and callout body).
- Asset sizes: the header logo (260 px), the home banner (100 % / 520 px), the 404 sticker (
clamp(240px, 42vh, 328px)), the 10 px progress-bar track. - Intentional compositions: the centred home intro (28ch / 42ch) and the centred 404 lead (36ch).
- Em-relative inline values that must scale with their text: inline-code padding and size, clock digit spacing, the 1 px verdict badge padding.
- Smaller-by-design text: tables (
--text-sm). Library demo helpers (swatches, spacing bars, radius tiles, width bars) use fixed sizes to show the tokens.
Checklist for a new component
- Every margin / padding / gap is a
--flow-*,--pad-*or--space-*token; every font size, radius, icon, control height and width cap is a token. - Its outer vertical margin is
--flow-block(or--flow-textif it is a line of text), so it sits in posts exactly like the existing blocks. - If it looks like an existing component (card, button, panel, code), it uses the same padding token as that component.
- Any value that is not a token is in the exceptions list above, with a comment in the CSS saying why.
- Checked in light and dark, at 1280 px and 390 px: no horizontal scroll, no console errors (CSP), and the gaps measure the same as the neighbouring blocks.
Design tokens
All tokens are CSS custom properties declared on :root in lobee.css. Dark mode re-declares them under [data-theme="dark"] (and @media (prefers-color-scheme: dark) for :root:not([data-theme])). Since lobee-nebula.css was unlinked on 2026-11-25, the standalone --btn-3d-* faces, borders, sides, highlights and raised shadows live directly in lobee.css. The unlinked lobee-pagetr.css (left on the server) defines --pagetr-bg from those tokens, for when the transition is restored.
Colour: light and dark
The swatches below are rendered with the real variables: each panel is a <div data-theme="light"> or <div data-theme="dark">, which re-declares the whole token set on that subtree, so both themes show side by side whatever theme the page is in. Translucent tokens (accent backgrounds, 3D faces) are drawn over the panel canvas.
Light theme
- --color-bg#ffffff
- --color-canvas#f6f8fa
- --color-surface#ffffff
- --color-surface-2#f6f8fa
- --color-border#d0d7de
- --color-divider#d8dee4
- --color-text#1f2328
- --color-text-muted#5c646d
- --color-text-faint#59626c
- --color-accent#1F5FA8
- --color-accent-hover#16467C
- --color-accent-bgrgba(31, 95, 168, 0.08)
- --color-accent-borderrgba(31, 95, 168, 0.22)
- --color-header-bg#eceff3
- --btn-3d-face-top#ffffff
- --btn-3d-face-bottom#f6f8fa
- --btn-3d-sidergba(31, 35, 40, 0.14)
- --btn-3d-border#d0d7de
- --btn-3d-accent-top#2F76D5
- --btn-3d-accent-bottom#1F5FA8
Dark theme
- --color-bg#000000
- --color-canvas#000000
- --color-surface#0A0A0A
- --color-surface-2#121212
- --color-border#2A2A2A
- --color-divider#3A3A3A
- --color-text#E6E6E6
- --color-text-muted#B3B3B3
- --color-text-faint#A3A3A3
- --color-accent#9ABAFF
- --color-accent-hover#C5D4FF
- --color-accent-bgrgba(154, 186, 255, 0.12)
- --color-accent-borderrgba(154, 186, 255, 0.30)
- --color-header-bg#0A0A0A
- --btn-3d-face-top#1C1C1C
- --btn-3d-face-bottom#121212
- --btn-3d-side#2C2C2C
- --btn-3d-border#3A3A3A
- --btn-3d-accent-top#2F76D5
- --btn-3d-accent-bottom#1F5FA8
<!-- Re-theme any subtree (tokens re-declared on the element) -->
<div data-theme="dark">…uses the dark tokens…</div>
<div data-theme="light">…uses the light tokens…</div>/* Use tokens, never literals */
.my-thing { color: var(--color-text-muted); background: var(--color-surface); border: 1px solid var(--color-border); }| Token | Role |
|---|---|
--color-canvas | Page background (solid --color-canvas) |
--color-bg, --color-surface | Opaque white / navy surfaces (panels, code blocks). --color-bg is defined but not referenced by any component |
--color-surface-2 | Secondary surface: image frames, inline code, code blocks |
--color-border, --color-divider | Outlines vs. heading underlines and table rules |
--color-text, --color-text-muted, --color-text-faint | Primary text and titles; body copy and descriptions; labels, eyebrows, captions, chips and italic notes. Every text token is at least 4.5:1 on canvas and surface in both themes (light faint is #59626c: 5.8:1 on canvas; it was #9198a1, 2.7:1). Light muted is #5c646d: 5.6:1 on canvas and 5.06:1 on the darkest light nebula wash (it was #636c76, 4.5:1 there). Faint is set apart from muted by its small size, caps or italics, not by being lighter. Check any new text colour against --color-canvas and the nebula blobs (strongest at the top left) before using it |
--color-accent, --color-accent-hover | Links, progress bar, clock digits, focus ring; link hover |
--color-accent-bg, --color-accent-border | Tinted wash: progress track, 404 background, accent borders |
--color-selection, --color-on-accent-muted | Text-selection wash (accent at 25% light, 35% dark); secondary text on accent surfaces such as the featured pill description (white at 90%, at least 4.5:1) |
--color-header-bg | Solid header background (#eceff3 light / #0B1624 dark) used directly on .site-header |
--btn-3d-* | The 3D surface family; see "Shadows and 3D surface" below |
How theme switching works
- The inline script at the end of
<body>sets<html data-theme="light|dark">fromlocalStorage["lobee-theme"], falling back toprefers-color-scheme. The toggle writes the choice back. - Without JavaScript there is no
data-theme, so@media (prefers-color-scheme: dark) { :root:not([data-theme]) { … } }applies the same dark tokens from the system setting. color-schemeis set per theme and the page carries<meta name="color-scheme" content="light dark">, so browsers do not force their own dark mode.- Known trade-off: the script runs at the end of
<body>, so a stored choice that differs from the system preference can flash for one frame on first paint. - Re-theming a subtree is reliable for colour tokens. The dark raised-control frame rules key off an
html[data-theme="dark"]ancestor, so a light subtree on a dark page still gets dark frames.
Typography
System fonts only: --font-body: 'Lobee Emoji', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, 'Helvetica Neue', Arial, sans-serif, one mono stack, --font-mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace, for code blocks, inline code and the swatch labels on this page (ui-monospace gives SF Mono on Apple devices), and --font-emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji' on card and panel icons. 'Lobee Emoji' is a @font-face in lobee.css that points at the same system colour-emoji fonts with local() (nothing is downloaded; still no web fonts) and a unicode-range of emoji code points only, so in-text emoji (page titles, captions, lists, the clock line) render in colour in Firefox on macOS even when the text has a color. Letters, digits, #, *, punctuation and the text symbols → ✓ ✕ are outside the range, so “2026” in a title still uses the UI font. Keep it first in --font-body; never put --font-emoji itself first on titles or prose (those fonts have digit glyphs), and do not add font-variant-emoji to body text. If you use an emoji outside the range, add its code point there. Sizes are fluid clamp() values driven by vmin, so phones do not jump size when rotated. Body line-height is 1.6; headings 1.3 with text-wrap: balance; paragraphs and list items use text-wrap: pretty.
text-xs: The quick brown fox jumps over the lazy dog
text-sm: The quick brown fox jumps over the lazy dog
text-base: The quick brown fox jumps over the lazy dog
text-lg: The quick brown fox jumps over the lazy dog
text-xl: The quick brown fox jumps over the lazy dog
text-2xl: The quick brown fox jumps over the lazy dog
| Token | Value | Range | Used for |
|---|---|---|---|
--text-xs | clamp(0.75rem, 0.7rem + 0.25vmin, 0.8125rem) | 12 – 13 px | Eyebrows, labels, card CTAs, captions |
--text-sm | clamp(0.8125rem, 0.78rem + 0.2vmin, 0.875rem) | 13 – 14 px | Nav links, feed-card title/desc, buttons, meta lines |
--text-base | clamp(0.875rem, 0.85rem + 0.15vmin, 0.9375rem) | 14 – 15 px | Body default (<body>) |
--text-lg | clamp(1rem, 0.95rem + 0.3vmin, 1.125rem) | 16 – 18 px | Error-page lead, .prose h4 |
--text-xl | clamp(1.25rem, 1.1rem + 0.8vmin, 1.5rem) | 20 – 24 px | Home hero lead, clock digits, card emoji |
--text-2xl | clamp(1.5rem, 1.2rem + 1.5vmin, 2rem) | 24 – 32 px | .page-title (h1) |
| Element | Size | Weight / notes |
|---|---|---|
.prose h2 | --text-h2: clamp(1.1875rem, 1.04rem + 0.65vmin, 1.375rem) (19 – 22 px) | 600, divider underline, margin-top --flow-h2, below --flow-heading |
.prose h3, .prose h2.prose-h3 | --text-h3: clamp(1.0625rem, 0.98rem + 0.45vmin, 1.25rem) (17 – 20 px) | 600, divider underline, margin-top --flow-h3, below --flow-heading |
.prose h4 | --text-lg | 600, no underline, margin-top --flow-h4 |
.prose p, ul, ol, blockquote | --text-body: clamp(1rem, 0.96rem + 0.22vmin, 1.125rem) (16 – 18 px) | Muted colour, --leading-prose (1.8), full column width, margin-bottom --flow-text; list items --flow-item apart |
.callout p, .callout li | --text-body (same as .prose p) | --color-text, --leading-prose (1.8); body blocks --flow-text apart, --space-2 below the title |
.callout__title | --text-xs | 700, uppercase, letter-spacing 0.06em, line-height 1.65, status colour |
.page-title | --text-2xl | 600, letter-spacing -0.02em; one line, ends in “…” when it does not fit |
.page-eyebrow, .feed-label | --text-xs | 600, uppercase, letter-spacing 0.06em, one line with “…”. Drawn as tilted sticker tags (see Sticker components): eyebrow amber with ink text, label accent with white text; the section link in a post eyebrow (.page-eyebrow a) keeps the tag text colour |
Spacing
4 px base. Use the scale (or the --flow-* / --pad-* aliases from the Spacing & sizing principle) for every margin, padding and gap.
| Token | Value | Px | Preview |
|---|---|---|---|
--space-0_5 | 0.125rem | 2 | |
--space-1 | 0.25rem | 4 | |
--space-2 | 0.5rem | 8 | |
--space-3 | 0.75rem | 12 | |
--space-4 | 1rem | 16 | |
--space-5 | 1.25rem | 20 | |
--space-6 | 1.5rem | 24 | |
--space-8 | 2rem | 32 | |
--space-10 | 2.5rem | 40 | |
--space-12 | 3rem | 48 | |
--space-16 | 4rem | 64 | |
--space-20 | 5rem | 80 |
Common uses: --space-0_5 between two stacked lines of one text group; --space-3 list gaps; --space-6 padding under the page title, above its divider; --space-16 page bottom padding. Vertical rhythm and padding go through the aliases: --flow-text 16, --flow-item 8, --flow-block 24, --flow-heading 12, --flow-h2 40, --flow-h3 32, --flow-h4 24, --flow-rule 40; --pad-control 8/16, --pad-card 16/20, --pad-panel 20, --pad-inset 16. --space-12 and --space-20 are defined for layout use but unreferenced by components.
Radii
--radius-sm
--radius-md
--radius-lg
--radius-xl
--radius-full
| Token | Value | Used for |
|---|---|---|
--radius-sm | 4px | Focus ring, inline code, sticker tags |
--radius-md | 6px | Default control, fresh 3D buttons, nav, feed / page cards, home widgets, callouts, card blocks, code, tables |
--radius-lg | 8px | Library theme panels, framed photos |
--radius-xl | 12px | Reserved, unused |
--radius-full | 9999px | Pills: progress bar only |
Shadows and 3D surface
Three systems. Flat elevation tokens --shadow-sm/md/lg (shown in the swatch panels above) are defined for both themes but not used by components today. Boxed sticker surfaces and the fresh 3D keys share the depth scale below. The quiet static panels (.surface-3d, .index-panel) keep the older 3D surface: a vertical gradient face, a 1 px translucent border and a hard-edged "side" shadow --btn-3d-depth (3 px) below it.
Depth system (2026-11-27): every boxed sticker surface uses one extruded side, drawn as a ::after wall (--depth-stack, --depth-rim, z-index: -2) the same size and radius as the face, flush with the top-left of the border box. The wall is a stack of 0.5 px rounded box-shadow copies of that shape, starting at 0.5px 0.5px (down and right, so nothing pokes out at the top-left) and ending at the depth, with an optional --depth-aa blur on the last copy (set to 0: a 0.75 px blur made Firefox's wall soft, and 0.5 px steps keep the diagonal smooth where 1 px steps show stair-steps). Hover and press motion uses --depth-motion (180ms ease-out) on transform and box-shadow; under prefers-reduced-motion the duration collapses. A ::before face plate (z-index: -1) paints an opaque --depth-face over the full border box, with the rim-token border and a single bevel. The code-block header bar uses the same inner top radii as the face, so the top-left rim is a single rounded corner with no square fill or double line. The side colour is --depth-side, which defaults to --sticker-shadow and is overridden to a darker shade of the face hue on tip, warning and the clock widget (the shadow recipes are re-specified on every element so that override actually takes effect). A light inner bevel (--depth-bevel: 1 px highlight on the top and left, a faint shade on the bottom and right) and a very light face sheen (--depth-sheen) make the face read as a raised plane. Callouts use a slightly stronger sheen (--depth-sheen-notice); dark-mode sheen is 8 percent on ordinary surfaces and 14 percent on callouts, never a white flash. Outer size is the same in both themes. Wide tables sit in .table-scroll with an inner .table-scroll__pane so they can scroll sideways without clipping the wall.
| Token | Value | Used for |
|---|---|---|
--depth-1 | 2 px | Chips, tags, badges, labels. Alias: --sticker-lift-sm. Wall: --depth-wall: var(--depth-1) |
--depth-2 | 4 px | Feed / page cards, card blocks, callouts, code, tables, buttons. Alias: --sticker-lift. Wall: --depth-wall: var(--depth-2) |
--depth-3 | 6 px | Hero home widgets (Mac, clock). Wall: --depth-wall: var(--depth-3) |
--depth-hover | 2 px | Extra side when an interactive face lifts, so the wall stays grounded. Hover grows --depth-wall by this amount so the wall stays grounded |
--depth-wall / --depth-stack / --depth-aa / --depth-rim / --depth-radius | per component | Visible side length, the stacked 0.5 px wall copies (the last copy takes an optional blur, currently 0), the inset that lines the wall up with the outer edge of the 1 px rim, and the face radius the copies inherit |
--depth-side | --sticker-shadow, or a hue pair | The extruded wall. Override on a component to use --sticker-shadow-mint, -amber or -violet |
--depth-bevel / --depth-sheen | inset 1 px hi/lo, light face gradient | Raised-plane cues. Buttons keep their own top gloss instead of the bevel. |
Fresh 3D buttons (2026-11-26, depth scale 2026-11-27): .btn-3d, .btn-3d-surface, .btn-back (and with it .contact-chip), .site-header__link and .site-header__toggle share one look in lobee.css ("FRESH 3D BUTTONS"). A light gradient face (--btn-fresh-top to --btn-fresh-bottom), a --border-thick dark ink outline (--btn-fresh-edge), a --depth-2 extruded side (--depth-wall, --btn-fresh-side), a top gloss line (--btn-fresh-gloss) and, on hover with a mouse or trackpad, a lift of --depth-hover (2 px) plus a diagonal shine (--btn-fresh-shine) that sweeps across. The shadow grows to --depth-shadow-2-hover so the wall stays on the ground. Pressing (:active / .is-pressed, mirrored for iOS Safari by lobee-press.js) pushes the key all the way into its shadow with a slightly darker inset line (--btn-fresh-press). Dark mode is a port of that same light-mode key, not an inverted one: a soft off-white blue face (not pure white, so it does not glare), dark ink text (--btn-fresh-ink; nav / .btn-back use --color-header-btn-text which points at it), a dark ink outline, and a deep-blue extruded side (#3A5A80) that still reads on the #0B1624 canvas. Accent keys keep the blue face and white text. All of them use --radius-md (6 px), the same rounded rectangle as the previous 3D buttons (not a pill). Accent variants: .btn-3d--accent, .btn-3d-surface--accent, .site-header__link[aria-current="page"], .site-header__link--about. No bursts, no JS, no images. .surface-3d and .index-panel are the static panels; .feed-card, .card-block and .callout use the sticker surface (see Sticker components).
raised, static
pressed look
<div class="surface-3d">Raised, static panel</div>
<div class="surface-3d-inset">Pressed-in well</div>
<button type="button" class="btn-3d">Raised button</button>
<button type="button" class="btn-3d btn-3d--accent">Accent button</button>.btn-3d and .btn-3d-surface are bare fresh keys: no padding or font size of their own, but they carry ink text (--btn-fresh-ink; accent variants carry white). Add padding and font (these demos use the docs-only helper .ds-btn from lobee-docs.css: padding --space-2 --space-4, --text-sm, weight 600; the accent text is #fff). On live pages prefer .btn-back, which already carries that typography.
| Token | Light | Dark | Role |
|---|---|---|---|
--btn-3d-depth | 3px | 3px | Side height of the static panels (.surface-3d, .index-panel) |
--btn-3d-press-ms | 90ms | 90ms | Legacy press token (still defined) |
--depth-motion-ms / --depth-motion | 180ms ease-out | 180ms ease-out | 3D hover and press on transform and box-shadow |
--btn-3d-face-top | #ffffff | #1C1C1C | Gradient top |
--btn-3d-face-bottom | #f6f8fa | #121212 | Gradient bottom |
--btn-3d-side | rgba(31, 35, 40, 0.14) | #2C2C2C | Hard side shadow |
--btn-3d-border | #d0d7de | #3A3A3A | Border |
--btn-3d-highlight | rgba(255, 255, 255, 0.90) | rgba(255, 255, 255, 0.22) | Top inner highlight on raised controls |
--btn-3d-border-frame | — | #3A3A3A | Dark only: near-black frame border |
--btn-3d-accent-top | #2F76D5 | #2F76D5 | Accent gradient top |
--btn-3d-accent-bottom | #1F5FA8 | #1F5FA8 | Accent gradient bottom |
--btn-3d-accent-border | #16467C | #143A66 | Accent border |
| Shadow token | Composition |
|---|---|
--btn-3d-shadow-raised | Inner top highlight, inner bottom shade, 1/2 px soft drop, then the hard side shadow 0 var(--btn-3d-depth) 0 var(--btn-3d-side) (dark adds a second 4 px black line) |
--btn-3d-shadow-raised-framed | Raised + a 1 px inset ring (rgba(31,35,40,0.04) light, rgba(0,0,0,0.35) dark). Only dark mode applies it to controls |
--btn-3d-shadow-pressed | inset 0 2px 8px (light) / inset 0 2px 10px (dark) darkening, no drop shadow |
--btn-3d-shadow-accent-raised | Accent version with a rgba(22,70,124,0.78 / 0.84) side |
Fresh button tokens (lobee.css, light / dark / no-JS dark): --btn-fresh-top and --btn-fresh-bottom (face: white to blue tint in light, soft off-white #E6EEF8 to #C9D6E8 in dark), --btn-fresh-gloss and --btn-fresh-shine (top gloss and hover sweep; slightly softer in dark so the light face does not glare), --btn-fresh-press (pressed inset), --btn-fresh-edge and --btn-fresh-side (alias --sticker-edge / --sticker-shadow in both themes: ink outline #1B2433, extruded side ink in light and deep blue #3A5A80 in dark), --btn-fresh-ink and --btn-fresh-ink-muted (text on the default face: --color-text in light, #1B2433 / #4A5A70 in dark), --btn-fresh-accent (accent text sitting on a light face: --color-accent in light, #16467C in dark, so it holds 4.5:1 on the off-white fill). Travel is --sticker-lift (--depth-2). The accent face reuses --btn-3d-accent-top / -bottom / -highlight.
Rule: any component given a light face in dark mode (keys, chips, tags, and similar chrome) uses the ink tokens (--btn-fresh-ink, --btn-fresh-ink-muted, --btn-fresh-accent) for all of its text — label, value, hint, copied state, and focus. Do not use --color-text, --color-text-faint or --color-text-muted on those faces; those tokens flip to light colours in dark mode and vanish on the off-white fill.
Motion
| Token / rule | Value | Where |
|---|---|---|
--transition | 120ms cubic-bezier(0.16, 1, 0.3, 1) | Background, border and colour changes |
--btn-3d-press-ms | 90ms (same easing) | Legacy press token (still defined) |
--depth-motion | 180ms cubic-bezier(0.16, 1, 0.3, 1) | 3D hover and press: transform + box-shadow. Collapses under prefers-reduced-motion. |
| Button shine | 420ms background-position sweep, mouse / trackpad hover only (@media (hover: hover)); never runs on touch or under reduced motion (states snap) | Fresh 3D buttons, nav pills, theme toggle |
| Theme change | 200ms ease on body background and colour | Light/dark switch |
| Sticker hover / press | Hover lifts --depth-hover (2 px) and the extruded side grows by the same amount so it stays grounded; :active / .is-pressed pushes the face into its side (translate(var(--sticker-lift)), --depth-wall: 0). Hover rules match :is(:hover, .is-hover): lobee-press.js adds .is-hover (mouse and pen only) and keeps it until the pointer leaves the key's resting footprint, because the lift vacates a 2 px strip under a resting pointer and plain :hover flickers there. Without the script, plain :hover still works | Feed cards, card blocks, .btn-back, contact chips |
sticker-wiggle | 520ms badge wiggle around its own --tilt on hover | Feed-card icons (not .feed-card--calm), contact-chip icons |
sticker-pop | 360ms scale-in, staggered 40 ms per item (first 8) | .feed-list > * on load |
| Clock | Split-flap flip 300ms (--flap-ms) on a changed tile only; instant swap under reduced motion. The progress bar and sleep line are unchanged; the day-period pill is not shown. | Home clock board (.clock-flap); lobee-clock.js on the home page only |
prefers-reduced-motion: reduce | All animations and transitions clamp to 0.01 ms; smooth scrolling off (scroll-behavior: auto) | Global rule in lobee.css |
Page transitions (lobee-pagetr) | Randomized block mosaic, **unlinked for now**. Files stay on the server (last tag ?v=20261125b). To restore: add the CSS tag after lobee.css and the JS tag at the end of <head> on every page (bump ?v= if you edit the files). | Unlinked for now; files remain on the server |
Sakuga VFX (lobee-sakuga) | Dramatic button bursts: Canvas 2D overlay (z-index: 200) + CSS squash/spring; switchable via data-sakuga-btn="impact" vs "spring". **Unlinked for now (2026-11-26).** Files stay on the server (last tags ?v=20261125i). To restore: add the CSS tag after lobee.css and the deferred JS tag after lobee-press.js on every page (and <body data-sakuga-btn="impact"> on the home page), then bump lobee.css | Unlinked for now; buttons use the normal 3D press from lobee.css (translateY(var(--btn-3d-depth)) on :active / .is-pressed, mirrored for iOS by lobee-press.js) |
| Scrolling | scroll-behavior: smooth (auto under reduced motion); scroll-padding-top: header height + --space-4 | Anchor links clear the fixed header |
| ASCII reveal | Retired 2026-11-25. The old pointer-trail canvas is gone; lobee-ascii.js and lobee-nebula.css are deleted and should not be re-uploaded. | Retired |
Page transition & Sakuga effects (both unlinked for now)
Two zero-dependency motion layers (both **unlinked for now**; the notes below describe what the files do when they are linked again) sit on top of lobee.css tokens, pass the strict style-src 'self' CSP without inline <style> tags, and turn themselves off completely when prefers-reduced-motion: reduce is active (or switched on while the page is open).
- Block-mosaic page transition (
lobee-pagetr.css+lobee-pagetr.js, **unlinked for now**; restore by putting the tags back): when linked, intercepts plain same-origin link clicks (skipping modified clicks,target="_blank",download, same-page#hashlinks, external URLs, andpageshowbfcache restores). Squares pop on in random order over ~480 ms to cover everything below.site-header, hold 70 ms, write a timestamp tosessionStorage, and navigate. On arrival, the synchronous<head>script addshtml.pagetr-cover(paintinghtml,body, and::afterwith--pagetr-bg) before first paint so no uncovered frame flashes, then pops the blocks off randomly over ~900 ms. A 1.4 s / 1.6 s safety timer guarantees the cover never gets stuck. - Dark-mode mosaic colour (
--pagetr-bg, inlobee-pagetr.css, currently unlinked): light mode uses--color-text(#1f2328); dark mode usescolor-mix(in srgb, var(--color-bg) 68%, black)(rgb(7, 15, 24), deeper than#0B1624) so a restored transition never white-washes or flashes lighter than the dark canvas. - Sakuga VFX (
lobee-sakuga.css+lobee-sakuga.js, **unlinked for now since 2026-11-26**): adapted fromsakuga-vfx(MIT License) with no runtime dependencies. Page titles (.page-header-block .page-title) are static: the 340 mssk-title-landsquash-and-settle and the on-load sparkle were removed. Still enhances[data-theme-toggle](rotational spring + ring/ticks/sparkle in the new theme tokens),.feed-card(hover/focus speed lines off the left edge + corner sparkle), and prose/eyebrow/meta links (underline snap + press ticks). - Impact button vs. spring (
data-sakuga-btn, only when the Sakuga files are linked):.btn-back,.btn-3d,.btn-3d-surface,.contact-chip,.feed-card:not(.feed-card--muted),.card-block, and.site-header__linkall default toimpact(data-sakuga-btn="spring"on the element,<body>, or<html>selects spring instead). Impact mode adds a crisp.sk-invinvert flash plus a size-scaled burst centered on the tapped element (radius 46–72 px, shards, puffs, ticks, a small donut, andドン!stroke glyph clustered around the control — not stretched to the viewport — so wide feed cards match nav pills; header pills flip below the bar so nothing clips) finishing in ~0.4 s, and setswindow.__sakugaHoldUntil(~300 ms). When linked, with the page transition unlinked,lobee-sakuga.jsitself holds same-origin (and external) http(s) navigation until that time (cap 350 ms; skips modifier/middle clicks,target="_blank", downloads, same-page hash links, and reduced motion; clears onpageshowbfcache restore). - Reduced motion (
prefers-reduced-motion: reduce):@media (prefers-reduced-motion: no-preference)gates alllobee-sakuga.cssanimations/transitions andhtml.pagetr-cover::after; both scripts checkmatchMedia("(prefers-reduced-motion: reduce)")at startup and listen for live changes, immediately clearing canvases and timers and skipping click interception.
ASCII reveal background
Memorial story page (one page, own layout)
/blogs/remembering-the-168 is a story page of full-viewport slides (one short paragraph each, with a photo and a visible credit under it), then the 168 names and the sources. It is built by generators/memorial.py from data/names.json and data/story-images.json, and linked from the blogs list like any post. It uses the shared header, the shared light and dark tokens, and the post title block; only the slide layout is its own. There is no night-sky background.
- Extra files, linked on this page only:
assets/css/lobee-memorial.css(afterlobee.css) andassets/js/lobee-story.js(deferred). The header loads the same press file as every other page (?v=20261201a), so nav links and the theme toggle use the normal 3D press. The story body, names and photos are not buttons or cards, so they stay calm. The page uses the shared light and dark tokens (no forced theme, no night sky).lobee.cssand the other shared files are unchanged, so no?v=bump elsewhere. - Theme handling is the same as every other page:
<meta name="color-scheme" content="light dark">, the standard inline theme script, and the light / dark / no-JS tokens inlobee.css.html.memorialis only a hook for this page's scroll-snap; it does not re-declare colours. The CSP hash list does not change. - Slides:
.story-slideis at least one viewport tall (minus the header) withscroll-snap-align: start; on touch screens (pointer: coarse)html.memorialusesscroll-snap-type: y proximity; mouse wheels scroll freely because a snap pulled each 100 px wheel tick back to the slide start in testing. Text and names sit in.story-cardwith no fill or frame, on the shared canvas in both themes. Type and spacing use the Library tokens (--text-body,--text-h2/--text-h3/--text-sm, line-height 1.6 / 1.3,--flow-text/--flow-heading/--flow-item/--flow-block). Photos are rounded with--radius-lg, like other post images. On the Sources slide, Photo credits is a secondh2(same--text-h2size, weight and spacing as Sources) and sits--flow-blockbelow the numbered sources list. The fade-in comes fromIntersectionObserverinlobee-story.js; a 3 s CSS fail-safe shows every slide if the script never runs. - Reduced motion: no snap, no fade; every slide is simply visible and the page scrolls normally.
- Photos: Wikimedia Commons only, resized to 600–800 px WebP,
loading="lazy"(the first slide has no photo), width and height set, and a visiblefigcaptionwith author, source link and licence. Each factual line ends with numbered source links that point to the Sources slide. - Names are copied, never typed: the English names come from the Independent Committee report (Volume 2), the Chinese names from the Chinese edition and the charge sheet. Do not add, drop or respell a name without a published source.
Layout
Page shell
Every page: fixed .site-header (height --header-h, 56 px) and <main class="page-wrap">. <body> has padding-top: var(--header-h) so content clears the header. .page-wrap is centred, max-width --content-default (960 px), padding --space-8 top (--space-10 from 640 px), --space-16 bottom, and side padding --space-4 → --space-6 (640 px) → --space-8 (960 px). That padded box is the one content column: the line under the page title, running text, callouts, code blocks, tables and cards all share its left and right edges. Post pages have no back button: the section segment of the eyebrow links back to the listing (see Page header block); the home page adds .page-wrap--home.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
<meta name="description" content="One sentence, same text as in the .md front matter">
<title>Page name — Lobee.ca</title>
<link href="/assets/css/lobee.css?v=20261201h" rel="stylesheet">
<link rel="canonical" href="https://lobee.ca/section/page-slug">
<link rel="icon" href="/favicon.ico?v=3" sizes="48x48">
<link rel="icon" type="image/png" sizes="32x32" href="/icon-32.png?v=3">
<link rel="icon" type="image/png" sizes="192x192" href="/icon-192.png?v=3">
<link rel="apple-touch-icon" href="/apple-touch-icon.png?v=3">
<link rel="manifest" href="/site.webmanifest?v=5">
<meta property="og:type" content="article">
<meta property="og:site_name" content="Lobee.ca">
<meta property="og:title" content="Page name">
<meta property="og:description" content="Same sentence as the meta description">
<meta property="og:url" content="https://lobee.ca/section/page-slug">
<meta property="og:image" content="https://lobee.ca/assets/images/og/lobee-share.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="LOBEE wordmark in periwinkle block letters">
<meta name="twitter:card" content="summary_large_image">
</head>
<body>
<header class="site-header">
<div class="site-header__inner">
<a href="/" class="site-header__brand">
<img class="site-header__brand-logo site-header__brand-logo--day" src="/assets/images/logo.webp" alt="Lobee" width="363" height="120" decoding="async" />
<img class="site-header__brand-logo site-header__brand-logo--night" src="/assets/images/logo.webp" alt="Lobee" width="363" height="120" decoding="async" />
</a>
<nav class="site-header__nav" aria-label="Main navigation">
<a href="/" class="site-header__link" aria-current="page">Home</a>
<a href="/aboutme" class="site-header__link">About</a>
</nav>
<button class="site-header__toggle" data-theme-toggle aria-label="Toggle light / dark mode"></button>
</div>
</header>
<main class="page-wrap">
<div class="page-header-block">
<p class="page-eyebrow">lobee.ca</p>
<h1 class="page-title">📝 Page name</h1>
</div>
<!-- content: .feed-list, .prose, … -->
</main>
<script src="/assets/js/lobee-press.js?v=20261201a" defer></script>
<script>
(function(){
const btn=document.querySelector('[data-theme-toggle]'),h=document.documentElement;
let t=localStorage.getItem('lobee-theme')||(matchMedia('(prefers-color-scheme:dark)').matches?'dark':'light');
h.setAttribute('data-theme',t);
function icon(v){btn.innerHTML=v==='dark'?'<svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>':'<svg viewBox="0 0 24 24"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>';}
icon(t);
btn&&btn.addEventListener('click',()=>{t=t==='dark'?'light':'dark';h.setAttribute('data-theme',t);try{localStorage.setItem('lobee-theme',t);}catch(e){}icon(t);});
})();
</script>
</body>
</html>Paste the <script> text exactly as shown (whitespace included): its hash is already whitelisted in the CSP. Any other inline script needs a new hash.
Page header block
The title pattern for every content page: eyebrow + h1.page-title, with a divider underneath. Start the title with one emoji. Section (menu) pages, the home page and About use the plain eyebrow lobee.ca. Post pages (blogs, projects, fishing, documents) use lobee.ca · Blogs (or Projects, Fishing, Documents) and a <header> element inside <article class="post">.
lobee.ca
📄 Section page title
<div class="page-header-block">
<p class="page-eyebrow">lobee.ca</p>
<h1 class="page-title">📄 Section page title</h1>
</div>On a post, the eyebrow is the way back: the section segment is a plain <a> to the parent listing (/blogs, /projects, /fishing, /documents); lobee.ca and the dot stay plain faint text, and there is no back button. .page-eyebrow a uses --color-text, the title colour (white #E7EEFB in dark, #1f2328 in light), no underline at rest, an underline on hover and keyboard focus (offset --space-0_5) and the global focus ring. Spacing is unchanged: the eyebrow sits at the top of .page-wrap, as on section pages.
lobee.ca · Blogs
📝 Post title
<div class="page-header-block">
<p class="page-eyebrow">lobee.ca · <a href="/blogs">Blogs</a></p>
<h1 class="page-title">📝 Post title</h1>
</div>Single line, always: .page-title and .page-eyebrow never wrap. On a narrow or zoomed-in screen the end of the text is replaced with “…” (white-space: nowrap, overflow: hidden, text-overflow: ellipsis), so the header block keeps the same height and the layout does not jump. Start the title with its emoji so the emoji always stays visible; keep titles short enough to fit on a phone (about 20 characters at 390 px) and put detail in the meta description. The full text stays in the HTML, so screen readers, search engines and the .md twin still get every word; do not add a title attribute. The eyebrow carries a --space-1 inset cancelled by a negative margin, so overflow: hidden never clips the section link's focus ring and nothing moves. The title is max-width: 100%, so it also truncates inside the centred column of the error pages. Section headings inside .prose (h2, h3) still wrap normally.
lobee.ca · Documents
🐍 A deliberately long document title that keeps going, so it cannot fit on one line even on a wide desktop screen
<div class="page-header-block">
<p class="page-eyebrow">lobee.ca · <a href="/documents">Documents</a></p>
<h1 class="page-title">🐍 A deliberately long document title that keeps going, so it cannot fit on one line even on a wide desktop screen</h1>
</div>Section labels, lists and grids
| Pattern | Classes | Behaviour |
|---|---|---|
| Section label | .feed-label | xs uppercase label above a list or card. Its bottom margin --space-3 (12 px) is the whole gap to the first card on every page; no page or wrapper overrides it, and .index-section adds no gap of its own |
| Link list | .feed-list > .feed-card | Flex column, gap --space-3 |
| Card grid | .card-grid + --2 or --3 | 1 column; 2 from 640 px; --3 goes to 3 columns from 1024 px. Gap --space-4 |
| Two-up row (home) | .index-duo | 1 column; 2 equal columns from 720 px; gap --space-6 at every width; children stretch to equal height |
| Hero (home) | .index-hero | 1 column; text + banner as 1fr / 1.15fr from 720 px |
| Home stack | .index-main | Flex column, gap --space-10 between home sections |
| Vertical rhythm | .space-y | > * + * gets margin-top: var(--space-4) (not used on live pages yet) |
Content widths
Responsive breakpoints actually used
Mobile-first. These are the only widths in lobee.css; do not add new ones without a reason.
| Query | What changes |
|---|---|
max-width: 360px | .index-uni__meta drops to --text-xs with a tighter gap |
max-width: 479px | .site-header__brand (logo link) is hidden; nav and toggle remain |
min-width: 640px | Header and .page-wrap side padding grow; .page-wrap top padding --space-10; .card-grid--2/--3 become 2 columns |
min-width: 720px | .index-hero and .index-duo become two columns; .ds-themes (this page) too |
min-width: 960px | .page-wrap side padding --space-8 |
min-width: 1024px | .card-grid--3 becomes 3 columns |
prefers-color-scheme: dark | No-JS dark tokens (:root:not([data-theme])) |
prefers-reduced-motion: reduce | Animations and transitions effectively off |
Components
Site header and theme toggle
Fixed 56 px bar using --color-header-bg (z-index: 100). Brand logo on the left (two <img>s, day and night; CSS shows one; hidden below 480 px), nav pills and the theme toggle on the right (margin-left: auto). The active page link gets aria-current="page" and renders as the blue accent pill; .site-header__link--about forces the accent pill on the About link. The toggle button is empty in the markup: the inline script fills it with a moon (light mode) or sun (dark mode) SVG and handles clicks via data-theme-toggle. Header controls (the Home / About pills and the theme toggle) are the fresh 3D button, all 40 px (--space-10) tall, so the bar height never changes; the current page is the blue accent key.
<header class="site-header">
<div class="site-header__inner">
<a href="/" class="site-header__brand">
<img class="site-header__brand-logo site-header__brand-logo--day" src="/assets/images/logo.webp" alt="Lobee" width="363" height="120" decoding="async" />
<img class="site-header__brand-logo site-header__brand-logo--night" src="/assets/images/logo.webp" alt="Lobee" width="363" height="120" decoding="async" />
</a>
<nav class="site-header__nav" aria-label="Main navigation">
<a href="/" class="site-header__link" aria-current="page">Home</a>
<a href="/aboutme" class="site-header__link">About</a>
</nav>
<button class="site-header__toggle" data-theme-toggle aria-label="Toggle light / dark mode"></button>
</div>
</header><a href="/" class="site-header__link">Home</a>
<a href="/aboutme" class="site-header__link" aria-current="page">Current page</a>
<a href="/aboutme" class="site-header__link site-header__link--about">About (accent)</a>
<button type="button" class="site-header__toggle" aria-label="Theme toggle (demo)"><svg viewBox="0 0 24 24"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg></button>| Class | Role |
|---|---|
.site-header | Fixed bar, z-index: 100 |
.site-header__inner | Max --content-wide, flex row, side padding --space-4 → --space-6 |
.site-header__brand, __brand-logo, --day, --night | Logo link and its two images (height = header minus 16 px) |
.site-header__nav, .site-header__link | Nav container and buttons (fresh 3D keys, --radius-md, 40 px tall). [aria-current="page"] and --about are accent |
.site-header__toggle | --space-10 (40 px) round fresh 3D button; SVG --icon-md (18 px), stroke currentColor |
Sticker components
One visual language, borrowed from the home widgets, shared by the reusable components through classes in lobee.css (section "STICKER COMPONENTS"; no per-page rules, no images, no JS). Ingredients: a rim from the depth rim set (--sticker-edge and --border-thick on light-faced chrome; --sticker-card-edge and --sticker-card-width on dark-toned reading surfaces), a solid extruded side from the depth scale (see Shadows and 3D surface), a light inner bevel and face sheen, pastel or tinted faces from the --sticker-* tokens, small labels as tilted tags, hover lift / wiggle and a pop-in (all off under reduced motion, plain borders under forced colours). Long-form prose is unchanged: paragraphs, headings and lists keep their calm colours and line height. The memorial page uses its own story-* classes and is not affected. To add a new boxed surface, pick a depth step, set --depth-side if the face has its own hue, and reuse these tokens rather than new colours or a one-off shadow.
| Component | Sticker treatment | Where |
|---|---|---|
.feed-card | Outline + hard shadow, pastel tilted icon badge cycling blue / amber / mint / pink / violet, pop-in, hover lift + badge wiggle, press into the shadow. In dark, the face, ink outline, deep-blue shadow and ink title/description match the nav keys (--feed-card-*). --featured is the accent face (in dark, the same blue gradient as the active Home nav button) with white text; --muted dashed; --calm same card frame, with a neutral grey untilted badge that does not wiggle | Home Pages, every listing |
.feed-label | Tilted accent tag with ink outline and shadow; every even .index-section tilts the other way | Section labels |
.page-eyebrow | Amber tag, slight tilt, ink text, --depth-1 side; the header divider is a thick dashed line | Every page header |
.btn-back | Fresh 3D key (see Buttons): outline, tinted face, hard shadow, shine on hover, --radius-md | Home "About →", About |
.contact-chip | A .btn-back (fresh key face, --radius-md); the icon sits on a tilted violet badge (mint for the next chip) and wiggles on hover | About |
.card-block | Sticker tile: blue tint in light, the same off-white nav-key face as .feed-card in dark | Available |
.callout | Tinted note (blue / mint tip / amber warning), flat: 1 px rim and tint only, with no extruded wall, bevel or sheen (a flat override near the end of lobee.css removes the shared ::before / ::after plate and zeroes --depth-wall). Static. The title is a straight (untilted) pastel tag with an ink outline, also flat | Document posts |
.code-block | Flat frame: 1 px rim and the --code-bg fill, with no extruded wall, bevel or sheen (a flat override near the end of lobee.css); .code-block__lang is a small flat tag with an ink outline; good / avoid keep their coloured top edge. Static | Document posts |
.prose table | Flat frame (1 px rim, --color-surface fill, no extruded wall or bevel; a flat override near the end of lobee.css), tinted header row. Static | Posts |
.prose blockquote | Violet tint with a thick ink bar | Posts |
.post .prose img | Same plain frame as About (.prose img): 1:1 box up to --media-max, 1 px --color-border, --radius-lg, --color-surface-2 letterbox. No print mat, tilt or hover straighten. The About photo is unchanged | Blog, project and document posts |
<p class="page-eyebrow">lobee.ca · <a href="/blogs">Blogs</a></p>
<p class="feed-label">Section label</p>
<a href="/aboutme" class="btn-back">About <span aria-hidden="true">→</span></a>Tokens: the depth scale (--depth-1/2/3, --depth-hover, --depth-side, --depth-bevel, --depth-sheen, --depth-shadow-*; see Shadows and 3D surface), the rim set (--border-thick 2 px on light-faced chrome, --sticker-card-width 1 px on dark-toned or tinted reading surfaces; both are the same in both themes), --sticker-edge, --sticker-card-edge, --sticker-shadow, --sticker-ink, --sticker-lift / --sticker-lift-sm (aliases of --depth-2 / --depth-1), the hue pairs --sticker-card-edge-mint|amber|violet and --sticker-shadow-mint|amber|violet (a darker shade of the face hue in both themes), --sticker-blue|amber|mint|pink|violet, --sticker-calm (neutral badge face, same in both themes), --sticker-tint-blue|amber|mint|violet, and the feed / page card tokens --feed-card-face, --feed-card-edge, --feed-card-title, --feed-card-desc, --feed-card-block-face, --feed-card-featured-face and --feed-card-featured-hover. Dark mode is a port of the light language, not an inversion. Light-faced chrome (buttons, chips, tags, and in dark the feed / page cards) keeps the dark ink outline (--sticker-edge / --feed-card-edge, #1B2433), a deep-blue extruded side (--sticker-shadow, #3A5A80) and ink text (--btn-fresh-ink, --feed-card-title). Dark-toned surfaces (callouts, code, tables, widgets) use a thin lighter rim (--sticker-card-edge #6286B0 in dark, ink in light) and a deeper hue-matched wall, plus the shared bevel and sheen, so the rim and the side stay distinct and do not form one thick band. Tinted boxes set --depth-side to their hue pair: tip mint, warning amber, clock widget and the blockquote bar violet. Those large surfaces keep a dark-optimized tint of the same hue, so nothing glares. Boxed compartments use --radius-md (6 px). Feed / page cards stay the off-white nav-key face in dark. Content photos (About, blog, project, document and fishing) use the shared .prose img frame: a 1:1 box, 1 px --color-border and --color-surface-2 letterbox (#f6f8fa in light, #162B44 in dark, never a white flash). The memorial page is untouched. .feed-card--calm uses the same --depth-2 card, hover lift and press as the other cards; only its badge is a neutral grey (--sticker-calm), untilted and without a wiggle. Static panels (callouts, code, tables) do not move on hover.
Buttons
Press effect: every button and nav button uses the fresh 3D key from lobee.css (the key travels --sticker-lift into its shadow on :active / .is-pressed, with lobee-press.js mirroring :active for iOS Safari and holding the hover lift steady at the key's edges as .is-hover; hover lifts it 2 px with a shine on mouse devices, and the shine resets instantly when the pointer leaves). The dramatic Sakuga bursts are unlinked for now (see Motion); nothing here depends on them.
Keyboard focus: the blue focus ring on keys and cards sits outside the 3D wall (offset --depth-2 + --depth-hover, 6 px), so the wall never covers it.
| Class | Use | Used on live pages |
|---|---|---|
.btn-back | Standard fresh 3D button/link (the same key as the nav buttons, --radius-md): the home "About →" and the About contact chips (posts no longer have a back button; the eyebrow links back). Inline-flex, --text-sm, weight 600, header-text colour (same as the title-bar buttons), padding --pad-control, bottom margin --space-6 | Yes |
.contact-chip (with .btn-back) | Click-to-copy row, see next section | About |
.btn-3d, .btn-3d--accent | Bare fresh key / accent key (--radius-md); bring your own padding and typography | No (available) |
.btn-3d-surface, .btn-3d-surface--accent | The same key for non-button elements (same --radius-md) | No (available) |
.surface-3d, .surface-3d-inset | Static raised panel / pressed-in well | No (available) |
<a href="/aboutme" class="btn-back">About <span aria-hidden="true">→</span></a>Do not add a back button to post pages: the section segment of the eyebrow links to the parent listing (see Page header block). Never underline: a.btn-back resets the link underline and hover colour.
Dark-mode button and outline behaviour
Every control keeps its outline and hard shadow readable on the dark #0B1624 canvas by using the dark --sticker-* and --btn-fresh-* values (blue outline, near-black shadow, deep-blue face), never white. Rules are keyed to [data-theme="dark"] (and :root:not([data-theme]) under prefers-color-scheme: dark).
| State | Light | Dark |
|---|---|---|
| Idle (fresh buttons) | Ink outline --btn-fresh-edge (#1B2433), white-to-blue face, dark text, ink hard shadow | Same structure: soft off-white face (#E6EEF8 to #C9D6E8) with dark ink text, the same dark ink outline, a deep-blue hard shadow (#3A5A80) that reads on #0B1624; not a light rim or inverted dark face |
Idle (static panels .surface-3d, .index-panel) | Border --btn-3d-border (lavender tint), shadow --btn-3d-shadow-raised | Border --btn-3d-border-frame (rgba(0,0,0,0.55)), shadow --btn-3d-shadow-raised-framed (raised + 1 px inset black ring) |
| Hover | Buttons rise 2 px with a longer shadow and a shine sweep (mouse only) | Same |
Pressed (:active / .is-pressed) | Moves --sticker-lift right and down into its shadow (shadow 0), darker inset line --btn-fresh-press | Same |
Accent family (--accent, current nav link, About link) | Accent gradient with white text; same outline and hard shadow as every key | Same |
Muted (.feed-card--muted) | Opacity 0.45, dashed outline, no shadow, no pointer events | Same |
| Sticker 3D (widgets, callouts, code, tables, cards) | Same outer size as dark. Chrome uses a 2 px ink rim; reading surfaces use a 1 px ink rim. Extruded side, bevel and sheen from the depth scale (--depth-2 on cards / callouts / code / tables, --depth-3 on home widgets, --depth-1 on tags). Tip / warning / clock walls use the mint, amber and violet pairs. | Same sizes. Chrome keeps the 2 px ink rim and a deep-blue wall (#3A5A80). Reading surfaces use a 1 px lighter rim (#6286B0) and a deeper hue-matched wall, so rim and side stay distinct. Bevel / sheen are softer (8 percent highlight, never a white flash). |
<a href="/blogs" class="btn-back">Standard key</a>
<span class="btn-3d btn-3d--accent ds-btn ds-btn--accent">Accent key</span>Contact chip (copy button)
btn-back contact-chip is a <button> with data-copy-text. A small script copies the text and adds .contact-chip--copied for 900 ms, which turns the hint accent-coloured with a check mark. Text parts truncate with an ellipsis. Needs the copy script below (already part of this page's hashed script).
<button class="btn-back contact-chip" type="button" data-copy-text="Web@Lobee.ca" aria-label="Email Web@Lobee.ca, click to copy">
<span class="contact-chip__icon" aria-hidden="true">
<svg viewBox="0 0 24 24" focusable="false"><path d="M4 6h16a2 2 0 0 1 2 2v.2l-10 6.25L2 8.2V8a2 2 0 0 1 2-2zm18 4.15V18a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7.85l9.47 5.92a1 1 0 0 0 1.06 0L22 10.15z"/></svg>
</span>
<span class="contact-chip__text">
<span class="contact-chip__title">Email</span>
<span class="contact-chip__value">Web@Lobee.ca</span>
</span>
<span class="contact-chip__hint" aria-hidden="true">Click to copy</span>
</button>(function(){
const chips=[...document.querySelectorAll('[data-copy-text]')];
if(!chips.length) return;
chips.forEach((chip) => {
chip.addEventListener('click', async () => {
const text=chip.getAttribute('data-copy-text') || '';
try{
await navigator.clipboard.writeText(text);
chip.classList.add('contact-chip--copied');
setTimeout(()=>chip.classList.remove('contact-chip--copied'),900);
}catch(e){}
});
});
})();Used on the About page. Classes: .contact-chip__icon, __text, __title, __value, __hint, .contact-chip--copied. Max width --media-max (500 px, same as post photos); icon --icon-md.
Feed cards (link rows)
The main navigation list on the home page and every section listing (blogs, projects, fishing, documents). Anatomy: emoji icon and body (title + one-line description, both truncated with an ellipsis, so keep them short). There is no trailing arrow. .feed-card--featured is the accent pill: use at most one per list (the primary entry; today only "Blogs" on home). .feed-card--muted on a <div> (not a link) is a disabled placeholder. Put the class on the card; an older variant that puts feed-card--featured on the title still works but is not recommended. Do not set a colour on the emoji icon, even on the featured pill: Firefox on macOS will paint a monochrome glyph instead of the colour emoji. Icons use --font-emoji and font-variant-emoji: emoji so they stay in colour. Icons sit on a tilted pastel sticker badge (--space-10 square, colour and tilt cycle every 5 cards), so a black glyph (♠️) stays visible in dark mode too; .feed-card__icon--mono is kept as a hook but no longer needs a filter. .feed-card--calm keeps the same card frame, shadow, hover and press, and only swaps the badge for a neutral grey untilted one that does not wiggle (used for the memorial post in the blog list). In dark mode the standard and calm cards use the same off-white nav-key face (--feed-card-face) with ink title and muted-ink description; the featured card uses the same blue gradient and white text as the active Home nav button.
Section label
<p class="feed-label">Section label</p>
<div class="feed-list">
<a href="/blogs" class="feed-card feed-card--featured">
<span class="feed-card__icon">📖</span>
<div class="feed-card__body">
<div class="feed-card__title">Featured card</div>
<div class="feed-card__desc">Accent pill, same look as the active nav link</div>
</div>
</a>
<a href="/projects" class="feed-card">
<span class="feed-card__icon">⛏️</span>
<div class="feed-card__body">
<div class="feed-card__title">Standard card</div>
<div class="feed-card__desc">A link row, as on the blogs and projects lists</div>
</div>
</a>
<div class="feed-card feed-card--muted">
<span class="feed-card__icon">🔒</span>
<div class="feed-card__body">
<div class="feed-card__title">Muted card</div>
<div class="feed-card__desc">div, not a link: coming soon</div>
</div>
</div>
</div>Card blocks
Taller tile with a heading, short copy and a CTA line, for use inside .card-grid (equal heights; 1 column on phones, 2 from 640 px, 3 from 1024 px with --3). Available but not yet used on any live page.
<div class="card-grid card-grid--3">
<a href="/blogs" class="card-block">
<h4>🎴 Card title</h4>
<p>One or two short sentences of description.</p>
<span class="card-cta">View <span aria-hidden="true">→</span></span>
</a>
<a href="/projects" class="card-block">
<h4>📌 Another card</h4>
<p>Equal height inside card-grid.</p>
<span class="card-cta">View <span aria-hidden="true">→</span></span>
</a>
<a href="/documents" class="card-block">
<h4>🔗 Third card</h4>
<p>1 column on phones, 2 on tablets, 3 on desktop.</p>
<span class="card-cta">View <span aria-hidden="true">→</span></span>
</a>
</div>Homepage cards: .index-uni and the sticker widgets (.widget)
One shared card for the home page "Work in progress" tracker and the "Time @ Ryan" clock. It is a raised .index-panel with the .index-uni layout: a head row (emoji + title, reusing .feed-card__title), a main line, a native <progress class="index-progress__bar"> (the Mac card uses it for its step count) and a meta line (left text, right text or link). The meta row is hidden (visibility: hidden, keeps its height) while its first <span> is empty, so the two cards stay the same height before the clock script fills it in. Place them in .index-duo so they sit side by side from 720 px; each is wrapped in <section class="index-section" aria-labelledby> with a .feed-label.
Sticker widgets (2026-11-26): the two home cards also carry .widget plus .widget--mac or .widget--clock. Same markup and script hooks as before, new look, all CSS in the HOME WIDGETS block of lobee.css. Each card has a --sticker-card-width outline, a --depth-3 extruded side (--widget-shadow as --depth-side, alias of the shared 3D tokens), a bevel and sheen, a tinted face (--widget-mac-bg periwinkle, --widget-clock-bg amber / dusk), and a pixel-art badge: a 16 x 16 inline SVG (.widget__pix, shape-rendering: crispEdges, fills from --widget-* tokens) in a tilted white sticker (.widget__badge). On the home page the three section labels (.page-wrap--home .feed-label) are tilted accent stickers. The Mac card is a summary, not a list of steps (2026-12-01): the title, a "Next up: …" line, a native <progress value="1" max="8"> (named "Restoration progress", with the count as aria-valuetext) filled with blue diagonal stripes like the clock card's amber bar (a solid --btn-3d-accent-top line comes first for browsers without color-mix()), and a footer that mirrors the clock card: a bold "🛠️ 1 of 8 steps done" on the left and a muted plain text link, "See all steps →", on the right. The clock card shows Toronto time on an airport split-flap board (12-hour digits with a leading zero, a colon, and a wider AM/PM tile whose face colour follows six time-of-day bands via [data-period]; a changed tile folds on a 300 ms 3D flip, or swaps instantly under reduced motion). The day-period chip ("In the morning" / "At night") is not shown: Ryan asked for it to be removed, and the board now stretches to fill the card (tiles grow with the tray; the colon stays narrow and the AM/PM tile stays wider). The home inline script still writes that phrase into a visually hidden hook (same CSP hash) so the aria-label, the progress bar and the sleep line are unchanged. The cards are static on hover (no lift or wiggle); they pop in once on load. All of it sits inside prefers-reduced-motion: no-preference. Dark mode is a port of the same language: a thin light rim, a deeper hue-matched extruded side, bevel and sheen (--widget-edge / --widget-shadow alias the shared --sticker-card-edge / --sticker-shadow; the clock card uses the violet pair), dusk navy / indigo card faces (no glare), a light badge; nothing flashes. No images are downloaded: the pixel art is about 1 KB of SVG per card.
Work in progress
Time @ Ryan
<div class="index-duo">
<section class="index-section" aria-labelledby="index-progress-heading">
<p class="feed-label" id="index-progress-heading">Work in progress</p>
<div class="index-panel index-uni widget widget--mac">
<div class="index-uni__head">
<span class="index-uni__icon widget__badge" aria-hidden="true"><svg class="widget__pix" viewBox="0 0 16 16"><rect class="p-ink" x="2" y="0" width="12" height="15"/><rect class="p-ink" x="1" y="14" width="14" height="2"/><rect class="p-body" x="3" y="1" width="10" height="13"/><rect class="p-ink" x="4" y="2" width="8" height="7"/><rect class="p-screen" x="5" y="3" width="6" height="5"/><rect class="p-face" x="6" y="4" width="1" height="1"/><rect class="p-face" x="9" y="4" width="1" height="1"/><rect class="p-face" x="6" y="6" width="1" height="1"/><rect class="p-face" x="9" y="6" width="1" height="1"/><rect class="p-face" x="7" y="7" width="2" height="1"/><rect class="p-ink" x="5" y="10" width="4" height="1"/><rect class="p-ink" x="11" y="10" width="1" height="1"/></svg></span>
<div class="feed-card__title">Macintosh SE Restoration</div>
</div>
<p class="index-uni__main">Next up: open it up and inspect the inside</p>
<progress class="index-progress__bar" value="1" max="8" aria-label="Restoration progress" aria-valuetext="1 of 8 steps done">1 of 8</progress>
<p class="index-uni__meta"><span><span aria-hidden="true">🛠️</span> 1 of 8 steps done</span><a href="/projects/macintosh-se-restoration">See all steps <span aria-hidden="true">→</span></a></p>
</div>
</section>
<section class="index-section" aria-labelledby="index-clock-heading">
<p class="feed-label" id="index-clock-heading">Time @ Ryan</p>
<div class="index-panel index-uni widget widget--clock">
<div class="index-uni__head">
<span class="index-uni__icon widget__badge" aria-hidden="true"><svg class="widget__pix" viewBox="0 0 16 16"><path class="p-ink" d="M5 0h6v16H5zM3 1h10v14H3zM1 3h14v10H1zM2 2h12v12H2z"/><path class="p-clock" d="M6 2h4v12H6zM4 3h8v10H4zM3 4h10v8H3zM5 2h6v12H5z"/><rect class="p-ink" x="8" y="4" width="1" height="5"/><rect class="p-ink" x="8" y="8" width="3" height="1"/></svg></span>
<div class="feed-card__title">Toronto — Eastern</div>
</div>
<div class="index-uni__main index-clock__display" data-index-clock aria-live="polite">
<div class="index-clock__board" aria-hidden="true">
<div class="index-clock__group"><span class="clock-flap clock-flap--static" data-char="Y"><span class="clock-flap__rest clock-flap__rest--top"><span class="clock-flap__text">Y</span></span><span class="clock-flap__rest clock-flap__rest--bot"><span class="clock-flap__text">Y</span></span><span class="clock-flap__fly clock-flap__fly--top"><span class="clock-flap__text">Y</span></span><span class="clock-flap__fly clock-flap__fly--bot"><span class="clock-flap__text">Y</span></span></span><span class="clock-flap clock-flap--static" data-char="Y"><span class="clock-flap__rest clock-flap__rest--top"><span class="clock-flap__text">Y</span></span><span class="clock-flap__rest clock-flap__rest--bot"><span class="clock-flap__text">Y</span></span><span class="clock-flap__fly clock-flap__fly--top"><span class="clock-flap__text">Y</span></span><span class="clock-flap__fly clock-flap__fly--bot"><span class="clock-flap__text">Y</span></span></span><span class="clock-flap clock-flap--static" data-char="Z"><span class="clock-flap__rest clock-flap__rest--top"><span class="clock-flap__text">Z</span></span><span class="clock-flap__rest clock-flap__rest--bot"><span class="clock-flap__text">Z</span></span><span class="clock-flap__fly clock-flap__fly--top"><span class="clock-flap__text">Z</span></span><span class="clock-flap__fly clock-flap__fly--bot"><span class="clock-flap__text">Z</span></span></span></div>
<div class="index-clock__group"><span class="clock-flap" data-char="0" data-flap="h0"><span class="clock-flap__rest clock-flap__rest--top"><span class="clock-flap__text">0</span></span><span class="clock-flap__rest clock-flap__rest--bot"><span class="clock-flap__text">0</span></span><span class="clock-flap__fly clock-flap__fly--top"><span class="clock-flap__text">0</span></span><span class="clock-flap__fly clock-flap__fly--bot"><span class="clock-flap__text">0</span></span></span><span class="clock-flap" data-char="8" data-flap="h1"><span class="clock-flap__rest clock-flap__rest--top"><span class="clock-flap__text">8</span></span><span class="clock-flap__rest clock-flap__rest--bot"><span class="clock-flap__text">8</span></span><span class="clock-flap__fly clock-flap__fly--top"><span class="clock-flap__text">8</span></span><span class="clock-flap__fly clock-flap__fly--bot"><span class="clock-flap__text">8</span></span></span><span class="clock-flap clock-flap--colon" aria-hidden="true"><span class="clock-flap__text">:</span></span><span class="clock-flap" data-char="2" data-flap="m0"><span class="clock-flap__rest clock-flap__rest--top"><span class="clock-flap__text">2</span></span><span class="clock-flap__rest clock-flap__rest--bot"><span class="clock-flap__text">2</span></span><span class="clock-flap__fly clock-flap__fly--top"><span class="clock-flap__text">2</span></span><span class="clock-flap__fly clock-flap__fly--bot"><span class="clock-flap__text">2</span></span></span><span class="clock-flap" data-char="7" data-flap="m1"><span class="clock-flap__rest clock-flap__rest--top"><span class="clock-flap__text">7</span></span><span class="clock-flap__rest clock-flap__rest--bot"><span class="clock-flap__text">7</span></span><span class="clock-flap__fly clock-flap__fly--top"><span class="clock-flap__text">7</span></span><span class="clock-flap__fly clock-flap__fly--bot"><span class="clock-flap__text">7</span></span></span></div>
<div class="index-clock__group"><span class="clock-flap clock-flap--period" data-char="PM" data-flap="ap" data-period="evening"><span class="clock-flap__rest clock-flap__rest--top"><span class="clock-flap__text">PM</span></span><span class="clock-flap__rest clock-flap__rest--bot"><span class="clock-flap__text">PM</span></span><span class="clock-flap__fly clock-flap__fly--top"><span class="clock-flap__text">PM</span></span><span class="clock-flap__fly clock-flap__fly--bot"><span class="clock-flap__text">PM</span></span></span></div>
</div>
<span class="index-clock__sr"><span class="index-clock__part" data-clock-h>8</span><span class="index-clock__colon" aria-hidden="true">:</span><span class="index-clock__part" data-clock-m>27</span><span data-clock-ampm>In the evening</span></span>
</div>
<progress class="index-progress__bar" data-clock-bar value="0.78" max="1" aria-hidden="true"></progress>
<p class="index-uni__meta"><span data-clock-next>😴 Sleep in 3h 33m</span><span data-clock-until>Bedtime 12:00 AM</span></p>
</div>
</section>
</div>On the real home page the visible board is driven by lobee-clock.js (?v= from docpost.CLOCK_VER, home page only). It paints 12-hour Eastern time with a leading zero, flips only the tiles that changed, and sets [data-period] on the AM/PM flap (colours are CSS tokens, not inline hex). The home inline script (same CSP hash) still writes the hidden data-clock-h / -m / data-clock-ampm hooks (the period phrase is not shown on the card), the sleep line (data-clock-next, -until) and the progress bar every 5 s; the demo above is static. The board stretches to the full width of the card. The progress bar is the native element, styled with appearance: none plus the WebKit and Firefox pseudo-elements, accent fill on a tinted track, pressed-in shadow. Use value/max for real progress and put a plain-text fallback inside the element. Without an accessible name, add aria-label (tracker) or aria-hidden="true" (decorative, as on the clock).
| Class | Role |
|---|---|
.index-panel | Raised card shell (flex column, padding --pad-panel, shares the 3D surface; not pressable) |
.index-uni | Layout modifier: gap --space-3, full width |
.index-uni__head, .index-uni__icon | Icon + title row; icon is --text-xl |
.index-uni__main | Main line: --text-base, weight 600, min-height --control-h |
.index-clock__display, __board, __group, __sr, .clock-flap | Clock main: a full-width tray (.index-clock__board, aria-hidden) of fluid split-flap tiles (HH, colon, MM, AM/PM) that grow with the card. .clock-flap--period uses [data-period=latenight|dawn|morning|midday|evening|night]. Hidden .index-clock__sr keeps the original data-clock-h / -m / data-clock-ampm hooks; the day-period pill is not shown |
.index-progress__bar | Native <progress>: 10 px tall (asset-size exception), --radius-full. On the home cards (.widget--mac, .widget--clock) it is --space-4 tall with an ink outline and diagonal stripes: amber on the clock card, blue on the Mac card (a solid --btn-3d-accent-top line comes first for browsers without color-mix()) |
.index-uni__meta | Space-between meta line, --text-sm, muted. On the Mac card the first span is bold ("🛠️ 1 of 8 steps done") and the link ("See all steps →") is a muted plain text link, underlined on hover and focus, like the clock card footer. A link inside it gets a --control-h tap target (min-height) with a negative margin-block, so the row does not move |
.widget, .widget--mac, .widget--clock | Sticker look for the home cards: outline --border-thick, hard shadow, tinted face (see paragraph above) |
.widget__badge, .widget__pix | Tilted white sticker holding the 16 x 16 pixel-art SVG (--space-12 badge, --space-8 art) |
.index-section | Section wrapper: a flex column (no gap) holding a .feed-label and its card or list; the label's --space-3 bottom margin is the gap |
<progress class="index-progress__bar" value="3" max="8" aria-label="Demo progress">3 of 8</progress>Homepage hero (index- only)
Home-only block (all index- rules can be deleted as one group). Lead and body copy beside the banner image; stacks on phones. .index-hero__text is a structural hook with no CSS of its own. The banner is .home-banner (full width, 100% / max 520 px on the home page via .page-wrap--home). It holds two images, .home-banner__img--day (dark line art) and .home-banner__img--night (light line art), and the theme (data-theme, or the system preference when unset) shows only one of them. The caption's flag is a small image, .index-banner-caption__flag (inline, 0.9 em tall), because flag emoji do not render on Windows.
<main class="page-wrap page-wrap--home">
<div class="index-main">
<div class="index-hero">
<div class="index-hero__text">
<p class="index-hero__lead">Hi — I'm <strong>Ryan</strong> (Lobee). This is my corner of the internet.</p>
<p class="index-hero__body">One or two plain sentences.</p>
<a href="/aboutme" class="btn-back index-hero__about">About <span aria-hidden="true">→</span></a>
</div>
<div class="index-banner-group">
<div class="home-banner"><img class="home-banner__img--day" src="/assets/images/intro-v5-light.webp" alt="Line drawing of a crying chibi cat with blue tears and pink blush" width="558" height="639" loading="lazy" fetchpriority="high" /><img class="home-banner__img--night" src="/assets/images/intro-v5.webp" alt="Line drawing of a crying chibi cat with blue tears and pink blush" width="558" height="639" loading="lazy" fetchpriority="high" /></div>
<p class="index-banner-caption">Caption in small italic.</p>
</div>
</div>
<!-- .index-duo (cards above), then .index-section with .feed-list -->
</div>
</main>Prose and post layout
Article body for posts, projects and About. Wrap text in <div class="prose">; section titles are <h2 class="prose-h3"> (the page h1 is the title, so the outline goes h1 → h2 with no skipped level; .prose-h3 keeps the smaller h3 size and spacing). Use a plain h2 for a long document with sub-sections (h2 → h3, as in the CSC108 guide), paragraphs and lists are muted --text-body with --leading-prose and span the full column (as wide as the line under the title), links are underlined accent; ol, blockquote, hr and table are styled too. Every block (image, code, callout, embed, table, quote) sits --flow-block from its neighbours, and the first / last child of .prose has no outer margin. Images are a 1:1 framed box up to --media-max (500 px) wide (width and height attributes 500). Posts sit in <article class="post"> as the first thing in .page-wrap (no back button), with the title in a <header class="page-header-block"> whose eyebrow links back to the section.
<main class="page-wrap" id="main-content">
<article class="post">
<header class="page-header-block">
<p class="page-eyebrow">lobee.ca · <a href="/blogs">Blogs</a></p>
<h1 class="page-title">🗓️ Post title</h1>
</header>
<div class="prose">
<img src="/assets/images/blogs/your-post.webp" alt="Describe the image" width="500" height="500" fetchpriority="high">
<h2 class="prose-h3">Section heading</h2>
<p>Body text.</p>
</div>
</article>
</main>Section heading
Body text with comfortable line height, as on the October check-in post. Muted colour, full column width.
Note, often placed above a list.
- List item one
- List item two
An inline accent link inside prose.
- Numbered step one
- Numbered step two
A quoted line, indented behind a divider-coloured edge.
<div class="prose">
<h2 class="prose-h3">Section heading</h2>
<p>Body text with comfortable line height, as on the October check-in post. Muted colour, full column width.</p>
<p class="italic-note">Note, often placed above a list.</p>
<ul>
<li>List item one</li>
<li>List item two</li>
</ul>
<p>An inline <a href="/aboutme">accent link</a> inside prose.</p>
<ol>
<li>Numbered step one</li>
<li>Numbered step two</li>
</ol>
<blockquote><p>A quoted line, indented behind a divider-coloured edge.</p></blockquote>
</div>| Class / element | Behaviour |
|---|---|
.prose h2 | --text-h2, divider underline, --flow-h2 above (document posts such as the Python guide use it) |
.prose h3 | Section heading, --text-h3, divider underline, --flow-h3 above |
.prose h4 | --text-lg, no underline, --flow-h4 above |
.prose > :first-child, > :last-child | No top / bottom margin, so nothing adds a gap at the start or end of the article |
.prose p, ul, ol, blockquote | Muted --text-body, --leading-prose, full column width, --flow-text below; disc / decimal markers, items --flow-item apart, nested lists indented. Inline code and code blocks: see the next section |
.prose blockquote, hr, table | Quote: --flow-block, 3 px divider edge, --space-4 indent. Rule: 1 px divider, --flow-rule above and below. Table: scrolls sideways on phones, --text-sm, cells --space-2 --space-3, --flow-block |
.prose img, figure | Shared photo frame (About, blog, project, document and fishing): 1:1 box up to --media-max, object-fit: contain, --radius-lg, 1 px --color-border, --color-surface-2 letterbox, --flow-block. .about-hero-img removes the frame |
.prose-embed | Bordered, rounded wrapper for an iframe/embed, --flow-block (available, unused) |
ul.check-list + --do / --dont | Rules list: no bullets, a ✓ (success colour) or ✕ (danger colour) before each item, same size, width and item gap as a prose list; the same marks as the do / avoid code pair. Used for every Do / Don't list on this page |
.italic-note | Small, faint, upright line of plain text above a list (no tag, no 3D) |
.text-muted, .text-faint | Colour utilities (available) |
Code blocks, inline code, callouts and do / avoid
For document posts that show code (for example a Python reference guide). All static: no JavaScript, no highlighter library, no web fonts, no copy button. Everything lives in lobee.css and uses tokens, so it follows the light/dark toggle. Use these inside .prose or on their own.
Code block
<figure class="code-block"> holds an optional header bar (<figcaption class="code-block__head"> with .code-block__lang and/or .code-block__file) and a <pre tabindex="0" role="region" aria-label="…"><code>. The <pre> scrolls sideways and never wraps, so long lines stay intact; tabindex="0" lets keyboard users scroll it (focus ring is drawn inside the frame), role="region" makes it a named scroll area and the aria-label names it (HTML does not allow aria-label on a bare <pre>). Font --font-mono, --text-sm, line-height 1.65, tab size 4; header bar --control-h tall with --pad-control, code --pad-inset; --flow-block above and below. Escape <, > and & inside the code as <, >, &.
def mean(values: list[float]) -> float:
"""Return the arithmetic mean of values.
>>> mean([2.0, 4.0, 9.0])
5.0
"""
if not values:
raise ValueError("values must not be empty")
return sum(values) / len(values) # true division always gives a float
<figure class="code-block">
<figcaption class="code-block__head">
<span class="code-block__lang">Python</span>
<span class="code-block__file">stats.py</span>
</figcaption>
<pre tabindex="0" role="region" aria-label="Python code: stats.py"><code><span class="tok-kw">def</span> <span class="tok-fn">mean</span>(values: <span class="tok-bi">list</span>[<span class="tok-bi">float</span>]) -> <span class="tok-bi">float</span>:
<span class="tok-str">"""Return the arithmetic mean of values.</span>
<span class="tok-prompt">>>></span> mean([<span class="tok-num">2.0</span>, <span class="tok-num">4.0</span>, <span class="tok-num">9.0</span>])
<span class="tok-out">5.0</span>
<span class="tok-str">"""</span>
<span class="tok-kw">if</span> <span class="tok-kw">not</span> values:
<span class="tok-kw">raise</span> <span class="tok-bi">ValueError</span>(<span class="tok-str">"values must not be empty"</span>)
<span class="tok-kw">return</span> <span class="tok-bi">sum</span>(values) / <span class="tok-bi">len</span>(values) <span class="tok-com"># true division always gives a float</span></code></pre>
</figure>Without a header bar, drop the <figcaption>. A plain block (no token spans) is fine too: highlighting is optional. A REPL or doctest session uses tok-prompt for >>> and ... and tok-out for printed results:
>>> total = 0
>>> for n in range(1, 4):
... total = total + n
...
>>> total
6
<figure class="code-block">
<pre tabindex="0" role="region" aria-label="Python shell session"><code><span class="tok-prompt">>>></span> total = <span class="tok-num">0</span>
<span class="tok-prompt">>>></span> <span class="tok-kw">for</span> n <span class="tok-kw">in</span> <span class="tok-bi">range</span>(<span class="tok-num">1</span>, <span class="tok-num">4</span>):
<span class="tok-prompt">...</span> total = total + n
<span class="tok-prompt">...</span>
<span class="tok-prompt">>>></span> total
<span class="tok-out">6</span></code></pre>
</figure>Syntax token classes
Wrap tokens by hand. Unwrapped text (names, operators, punctuation) stays --code-text. Every token colour passes WCAG AA (4.5:1) on the code background in both themes.
| Class | Marks | Light | Dark | Style |
|---|---|---|---|---|
.tok-kw | Keyword: def, return, if, for, in, not, None, True | #7A3EB8 | #C3A6FF | 600 |
.tok-str | String or docstring, quotes included | #0B6E4F | #8ED8B0 | |
.tok-com | Comment, # included | #5C6672 | #8C9DB5 | italic |
.tok-num | Number literal | #A3470D | #F4B37E | |
.tok-fn | Function name where it is defined (or called, if you want) | #1F5FA8 | #8DBDFF | 600 |
.tok-bi | Builtin: len, print, range, int, str, list, ValueError | #A1316A | #F2A1C6 | |
.tok-prompt | Doctest / REPL prompt >>> and ... | #5C6672 | #7F93AD | 600 |
.tok-out | Doctest / REPL output line | #3F4954 | #B2C0D3 | italic |
| Language | How the same classes are used |
|---|---|
| Python | tok-kw keywords, tok-fn the name after def/class, tok-bi builtins, tok-str, tok-num, tok-com; tok-prompt / tok-out in shell sessions and docstring examples |
| HTML, XML | tok-kw tag names (and <!DOCTYPE>), tok-bi attribute names, tok-str attribute values, tok-com comments; an inline <script> body is highlighted as JavaScript |
| CSS | tok-fn selectors, tok-kw at-rules (@media), tok-bi property names (custom properties included), tok-num numbers, units and hex colours, tok-fn function names (var(, clamp(), tok-com comments |
| JavaScript | tok-kw keywords, tok-bi browser globals (document, localStorage), tok-fn the name after function, tok-str, tok-num, tok-com |
Apache (.htaccess) | tok-kw directives and section tags (RewriteRule, <IfModule>), tok-bi server variables (%{HTTP_ACCEPT}), tok-num flags ([R=301,L]) and status codes, tok-str quoted values, tok-com comments |
| Shell | tok-bi command names, tok-kw options (-rl, --include), tok-str quoted arguments, tok-com comments |
| Markdown | tok-kw headings, tok-bi front-matter keys, tok-str link URLs, tok-com the --- fences, tok-prompt list markers |
The samples on this page are highlighted the same way at build time (a small generator, not shipped); hand-written posts may highlight less or not at all.
Tokens (declared for light, [data-theme="dark"] and the no-JS prefers-color-scheme: dark fallback): --code-bg, --code-head-bg, --code-text, --code-muted, --syn-keyword, --syn-string, --syn-comment, --syn-number, --syn-function, --syn-builtin, --syn-prompt, --syn-output, plus status colours --color-success, --color-warning, --color-danger with -bg variants and --color-success-border / --color-warning-border (used by callouts and do / avoid).
Light theme
# comment
def greet(name: str) -> str:
return "Hi, " + name * 2
>>> greet("a")
'Hi, aa'Dark theme
# comment
def greet(name: str) -> str:
return "Hi, " + name * 2
>>> greet("a")
'Hi, aa'Inline code
Any <code> that is not inside a <pre> (posts, callouts and this Library alike) gets the mono font at 0.88 em, the code background and a hairline border. It may break anywhere so a long name never pushes the page sideways on phones.
Call len(values) before dividing, and compare with ==, not is, unless you are checking for None.
<div class="prose">
<p>Call <code>len(values)</code> before dividing, and compare with <code>==</code>, not <code>is</code>, unless you are checking for <code>None</code>.</p>
</div>Callouts (note, tip, warning)
There was no callout before; this is the one to use. <aside class="callout"> is a note (accent blue); add callout--tip (green) or callout--warning (amber). Start it with <p class="callout__title"> and give the <aside> an aria-label that matches the title. Body text is the same size and line height as prose (--text-body, --leading-prose) in --color-text; the box spans the full column (as wide as the paragraphs, code blocks and the line under the title), padding --pad-card, --flow-block above and below. The title sits --space-2 above the body and body blocks are --flow-text apart, like prose paragraphs. It can hold paragraphs, a ul and inline code.
<aside class="callout" aria-label="Note">
<p class="callout__title">Note</p>
<p>A function without a <code>return</code> statement returns <code>None</code>.</p>
</aside>
<aside class="callout callout--tip" aria-label="Tip">
<p class="callout__title">Tip</p>
<p>Write the docstring examples first, then the body. They double as tests.</p>
</aside>
<aside class="callout callout--warning" aria-label="Warning">
<p class="callout__title">Warning</p>
<p>Changing a list while looping over it skips items. Loop over a copy instead.</p>
<p>A second paragraph sits <code>--flow-text</code> below the first, like prose.</p>
</aside>Do / avoid pair
.code-compare holds two .code-blocks: stacked on phones, two equal columns from 720 px. Mark them code-block--good and code-block--avoid (coloured top edge) and put a <span class="code-block__verdict"> first in the header bar; the tick or cross is drawn by CSS and hidden from screen readers, so the word (Good / Avoid) carries the meaning. Put the better version first.
def is_even(n: int) -> bool:
return n % 2 == 0
def is_even(n):
if n % 2 == 0:
return True
else:
return False
<div class="code-compare">
<figure class="code-block code-block--good">
<figcaption class="code-block__head">
<span class="code-block__verdict">Good</span>
<span class="code-block__lang">Python</span>
</figcaption>
<pre tabindex="0" role="region" aria-label="Good example"><code><span class="tok-kw">def</span> <span class="tok-fn">is_even</span>(n: <span class="tok-bi">int</span>) -> <span class="tok-bi">bool</span>:
<span class="tok-kw">return</span> n % <span class="tok-num">2</span> == <span class="tok-num">0</span></code></pre>
</figure>
<figure class="code-block code-block--avoid">
<figcaption class="code-block__head">
<span class="code-block__verdict">Avoid</span>
<span class="code-block__lang">Python</span>
</figcaption>
<pre tabindex="0" role="region" aria-label="Example to avoid"><code><span class="tok-kw">def</span> <span class="tok-fn">is_even</span>(n):
<span class="tok-kw">if</span> n % <span class="tok-num">2</span> == <span class="tok-num">0</span>:
<span class="tok-kw">return</span> <span class="tok-kw">True</span>
<span class="tok-kw">else</span>:
<span class="tok-kw">return</span> <span class="tok-kw">False</span></code></pre>
</figure>
</div>| Class | Role |
|---|---|
.code-block | <figure> frame: border, --radius-md, --shadow-sm, --code-bg |
.code-block__head | Optional <figcaption> header bar, first child |
.code-block__lang | Language label (uppercase, xs) |
.code-block__file | Optional file name (mono), pushed to the right |
.code-block > pre | Scroll region: tabindex="0" + role="region" + aria-label, no wrapping |
.tok-kw, .tok-str, .tok-com, .tok-num, .tok-fn, .tok-bi, .tok-prompt, .tok-out | Hand-applied syntax tokens |
.code-compare | Do / avoid grid (1 column, 2 from 720 px) |
.code-block--good, .code-block--avoid, .code-block__verdict | Verdict colour edge and badge |
.callout, .callout--tip, .callout--warning, .callout__title | Note / tip / warning box |
:not(pre) > code | Inline code everywhere (posts, callouts, this Library) |
Rules
- Always put
tabindex="0",role="region"and a shortaria-label("Python code: stats.py") on the<pre>(the role is what makes the label valid HTML); keep<code>as its only child. - Keep lines under about 80 characters so phones scroll less; never insert manual wraps that change the code.
- Mirror every block in the
.mdcompanion as a fenced block tagged with the language (python), without the token spans; callouts become> **Tip:** …and do / avoid become two labelled fences. - Only original, generic sample code. Check samples actually run (doctests pass) before publishing.
- No JS highlighter, no copy button script, no CDN font. A copy button would need a new first-party
.jsfile; the pattern is intentionally static. - No
style=""to tweak colours (blocked by the CSP); add a token instead. - Do not nest a
.code-blockinside a.callout, and do not useds-helpers (docs-only,lobee-docs.css) on posts.
Tables and code blocks
Code everywhere, posts and this page alike, uses the code-block component above (in lobee.css); the old docs-only .ds-code style has been removed. Tables are the same everywhere too: a plain <table> inside .prose (see Prose), with <th scope="col"> headers, wrapped in <div class="table-scroll"><div class="table-scroll__pane"> so a wide table scrolls sideways on phones without clipping the extruded side or making the page overflow. Inline code in a table stays on one line (it does not wrap mid-token). Every table on this page is that shared table; there is no docs-only table style any more. Inline code is the same global component as on posts. Escape < as < inside snippets.
| Token | Value |
|---|---|
--space-4 | 1rem |
<p class="page-eyebrow">lobee.ca · <a href="#ds-demo">Blogs</a></p>
<div class="prose">
<div class="table-scroll">
<table>
<thead><tr><th scope="col">Token</th><th scope="col">Value</th></tr></thead>
<tbody><tr><td><code>--space-4</code></td><td>1rem</td></tr></tbody>
</table>
</div>
</div>
<figure class="code-block">
<figcaption class="code-block__head"><span class="code-block__lang">HTML</span></figcaption>
<pre tabindex="0" role="region" aria-label="HTML code"><code><p class="page-eyebrow">lobee.ca · <a href="/blogs">Blogs</a></p></code></pre>
</figure>Error pages
Six static pages (400, 401, 403, 404, 500, 503) share one pattern. They use the same page background as every other page; the main block is a centred column filling the viewport below the header. They are noindex, have no .md and are not in the sitemap; .htaccess maps them with ErrorDocument. Every page shares the title “Not great, not terrible”; only the code (<title>, alt text, and the bold .page-404__code at the start of the lead), error name and lead text differ. In place of a big number they all show the same easter-egg sticker (/assets/images/error-sticker.webp?v=8, PNG fallback error-sticker.png?v=8, 400 × 656 px, so 2× for the 200 × 328 width/height): a paper-sticker drawing of the construction worker (red helmet, goggles, grin, hi-vis vest) with a broken-heart speech bubble, cut out with a thick white sticker border on a transparent background; its head is also the site favicon. There is no eyebrow; the error code opens the lead, e.g. **404 – Page not found**. There is no Home button in the page body; the header nav already links home.
<meta name="robots" content="noindex" />
…
<body>
<!-- header as above -->
<main class="page-wrap page-404__main" id="main-content">
<picture class="page-404__sticker">
<source srcset="/assets/images/error-sticker.webp?v=8" type="image/webp">
<img src="/assets/images/error-sticker.png?v=8" alt="Construction worker sticker — error 404" width="200" height="328" decoding="async" />
</picture>
<h1 class="page-title">“Not great, not terrible”</h1>
<p class="page-404__lead"><strong class="page-404__code">404 – Page not found</strong> This page doesn't exist — or it wandered off somewhere.</p>
</main>.page-404__sticker shows the image at clamp(240px, 42vh, 328px) tall as a static image with a soft drop shadow (the white border keeps the dark outline readable on the dark theme). Images are cached for a year, so a redrawn sticker keeps its file name and gets the next ?v= on both URLs in all six pages (today ?v=8). .page-404__lead is --text-lg, muted, --flow-heading below the title, max 36ch (intentional short centred line).
Conventions
Sections, folders and URLs
Every page has one extensionless URL; the .html file behind it is found by .htaccess. There are two section layouts, and which one a section uses decides what .htaccess needs:
| Section | Listing (URL → file) | Posts (URL → file) | Listing served by |
|---|---|---|---|
| Blogs | /blogs → blogs/index.html + blogs/index.md | /blogs/<slug> → blogs/<slug>.html + .md | PART C: ^(blogs|projects|fishing)$ → /$1/index.html |
| Projects | /projects → projects/index.html + projects/index.md | /projects/<slug> → projects/<slug>.html + .md | PART C (same rule) |
| Fishing | /fishing → fishing/index.html + fishing/index.md | /fishing/<slug> → fishing/<slug>.html + .md | PART C (same rule) |
| Documents | /documents → top-level documents.html + documents.md | /documents/<slug> → documents/<slug>.html + .md | Its own rule: ^documents/?$ → /documents.html |
| Top-level pages | /, /aboutme, /example (this page) → index.html, aboutme.html, example.html, each with a .md | — | The generic “hide .html” rule |
Blogs, projects and fishing are folder sections: the listing is the folder's index.html, and the old top-level blogs.html, projects.html and fishing.html URLs 301 to the folder URL. Documents is the only section with BOTH a top-level page (documents.html) and a folder of the same name (documents/), which is why it has its own rule. The HTML Library itself stays at /example (top level) and is listed as a card on /documents.
Documents section
- Post:
documents/<slug>.html, laid out with the document-post skeleton below: eyebrowlobee.ca · DocumentswithDocumentslinking to/documents(no back button), one emoji +h1, the same hashed theme-toggle<script>byte for byte, indexable (nonoindex) with a meta description. Example:documents/csc108-python-guide.html. - Markdown twin:
documents/<slug>.mdwith the sametitle/descriptionfront matter, the breadcrumb linelobee.ca · Documentsand every code sample as a fenced block. - Listing: add a
feed-cardto the.feed-listindocuments.html(newest first) and the matching bullet indocuments.md. - Sitemap: add
https://lobee.ca/documents/<slug>with today'slastmod, and bump the/documentsentry'slastmod. - Server: nothing per post. The
^documents/?$rule (below) only has to exist once;/documents/<slug>is served by the generic “hide .html” rule andAccept: text/markdownby PART B.
<a href="/documents/your-doc" class="feed-card">
<span class="feed-card__icon">🐍</span>
<div class="feed-card__body">
<div class="feed-card__title">Document title</div>
<div class="feed-card__desc">One short line</div>
</div>
</a>- [Document title](https://lobee.ca/documents/your-doc) — One short line<url>
<loc>https://lobee.ca/documents/your-doc</loc>
<lastmod>2026-11-02</lastmod>
</url>Why /documents needs a rule: the generic “hide .html” block first stops at any request that is an existing file or directory (-f / -d). Once documents/ exists, /documents is a real directory, so documents.html is never tried. With DirectorySlash Off (needed for PART C) Apache does not add a slash, the folder has no index.html, and Options -Indexes forbids a listing, so the result is a 403. The rule sends /documents and /documents/ straight to documents.html and must sit after PART C and before the “hide .html” block:
# /documents is documents.html, but documents/ is now also a folder (document
# posts), so serve the listing before the -d check below can 403 it.
RewriteRule ^documents/?$ /documents.html [L]Document post layout
Every page in Documents uses one skeleton, so formatting is the same in every document: the CSC108 guide and this Library are built from it, and a new document should be too. It is the post layout (see Prose and post layout): the cover image comes first in .prose, where a blog post has its photo, then two additions: an intro and a Contents list, and h2 sections with h3 sub-sections, each with a permanent id.
<main class="page-wrap" id="main-content">
<article class="post">
<header class="page-header-block">
<p class="page-eyebrow">lobee.ca · <a href="/documents">Documents</a></p>
<h1 class="page-title">📄 Document title</h1>
</header>
<div class="prose">
<img src="/assets/images/documents/placeholder.webp" alt="Document icon with a code symbol on a navy nebula background" width="500" height="500" fetchpriority="high">
<p>One or two intro paragraphs: what this is and who it is for.</p>
<nav aria-label="Contents">
<h2 id="contents">Contents</h2>
<ul>
<li><a href="#first-section">First section</a>
<ul>
<li><a href="#a-sub-section">A sub-section</a></li>
</ul>
</li>
</ul>
</nav>
<h2 id="first-section">First section</h2>
<p>Body text.</p>
<h3 id="a-sub-section">A sub-section</h3>
<p>Body text, then any shared block: a code block, a do / avoid pair, a callout, a table.</p>
</div>
</article>
</main>| Part | Markup | Spacing (same on every document) |
|---|---|---|
| Post header | article.post > header.page-header-block, first in .page-wrap (no back button): eyebrow lobee.ca · <a href="/documents">Documents</a> (the link is the way back), one emoji + h1.page-title | --space-6 padding + divider, --space-8 below |
| Cover image | First child of .prose, the same img as a blog post photo: .webp, width/height 500, fetchpriority="high", descriptive alt. Until a document has its own picture it uses the shared placeholder /assets/images/documents/placeholder.webp (.jpg copy for the .md); a real cover goes in /assets/images/documents/ under a new file name | .prose img: 1:1 frame up to --media-max, --flow-block below |
| Intro | Plain p after the cover (no lead class); a callout may follow, as the guide's “read this first” | --text-body, --leading-prose, full column width, --flow-text below |
| Contents | nav[aria-label="Contents"] with h2#contents and a plain ul of section links; sub-sections as a nested ul (this page). Skip it for a short document | Same as any prose h2 and list |
| Sections | h2 with an id for each section, h3 for sub-sections; ids are permanent deep links (/example#ds-codeblocks), so never rename one | --flow-h2 / --flow-h3 above, --flow-heading below, divider underline |
| Blocks | Only shared lobee.css components: figure.code-block, div.code-compare, aside.callout, prose table, ul.check-list, blockquote, figure | --flow-block above and below |
| Live demos (this page only) | div.ds-demo / div.ds-themes placed between two .prose blocks inside the article, so demo markup is not restyled by .prose; lobee-docs.css gives a heading that opens the next .prose its normal top gap | --flow-block above and below, like any block |
- Head: the Page shell head (description, canonical, icons, Open Graph with
og:typearticle) and the theme<script>byte for byte. No extra CSS: only this Library linkslobee-docs.css, for its demos. - Markdown twin: front matter,
# Title,lobee.ca · Documents, the cover as a Markdown image (itsalt, then the absolute URL of the.jpgcopy, as blog.mdfiles link their raster copy),## Contentswith the same links as text, then the sections as##/###. - Generated documents share one template: the guide (
gen.py) and this page (build.py) both render throughdocpost.py, a small standard-library Python file with the head, site header, post header with the linked eyebrow, cover image (HERO, placeholder by default;hero=Noneleaves it out), Contents list, page tail and.mdfront matter. The build scripts stay on the build machine and are never uploaded. A hand-written document copies the skeleton above.
- No document-specific heading, section, note, chip or table classes: if a document needs a new block, add it to
lobee.cssas a shared component that posts can use too. - No
leadparagraph class, no wrappersectionelements, and no secondh1.
Markdown companion (.md)
Every page except the error pages has a plain-text twin next to it: index.md, aboutme.md, documents.md, example.md (this page), the section listings blogs/index.md, projects/index.md and fishing/index.md, and one slug.md beside every post in blogs/, projects/, fishing/ and documents/ (for example projects/polluter.md, fishing/05222026catch.md, documents/csc108-python-guide.md). .htaccess serves the .md when a client sends Accept: text/markdown for the page URL (also directly at /slug.md) as text/markdown; charset=utf-8 with a Content-Signal header, and adds Vary: Accept so caches keep both versions apart. Keep it a faithful mirror: update both files in the same change.
---
title: Page name — Lobee.ca
description: Same sentence as the HTML meta description
---
# Page name
lobee.ca · [Parent](https://lobee.ca/parent)
Paragraphs as plain text. Links are absolute and extensionless:
[About](https://lobee.ca/aboutme). Images use an absolute URL.
## Section
- [Item title](https://lobee.ca/section/item) — short description- Front matter
titleanddescriptionmust match the HTML<title>and meta description. The# H1is the page title without the emoji. Posts follow it with the eyebrow as a breadcrumb line,lobee.ca · Blogs; section pages, home and About have none. - Use absolute
https://lobee.ca/…URLs for links and images. Folder listings (/blogs,/projects,/fishing) use<section>/index.md; the Documents listing uses the top-leveldocuments.md. Each feed card becomes one bullet. - Drop presentation-only items (header, theme toggle, decorative arrows). Keep all real content, including tables and code.
- Error pages have no
.md.
Cache busting (?v=)
.htaccess caches CSS and JS for one year as immutable and images and fonts for one year; sitemap.xml, robots.txt, site.webmanifest and security.txt for one hour; HTML and .md are no-cache (revalidated on every load). A changed CSS/JS file is therefore only picked up when its URL changes: bump the ?v= value on EVERY page. Current tags are in the table below. Date + letter (20261028c) is the convention for lobee.css; lobee-docs.css uses docs1, docs2, docs3, …; bump only the file you edited, and only on the pages that link it (lobee-docs.css is linked by example.html alone).
# from the site root, after editing lobee.css
grep -rl 'lobee.css?v=OLD' --include='*.html' . | xargs sed -i 's/lobee.css?v=OLD/lobee.css?v=NEW/g'
grep -rho 'lobee[a-z-]*\.\(css\|js\)?v=[^"]*' --include='*.html' . | sort | uniq -c # one line per file = consistent| File | Current tag | Linked by |
|---|---|---|
/assets/css/lobee.css | ?v=20261201h | Every page |
/assets/css/lobee-pagetr.css | ?v=20261125h (unlinked for now) | Left on the server; restore by adding the tag after lobee.css on every page |
/assets/js/lobee-pagetr.js | ?v=20261125b (unlinked for now) | Left on the server; restore by adding the tag at the end of <head> on every page |
/assets/css/lobee-sakuga.css | ?v=20261125i (unlinked for now) | Left on the server; restore by adding the tag after lobee.css on every page, then bump lobee.css |
/assets/js/lobee-sakuga.js | ?v=20261125i (unlinked for now) | Left on the server; restore by adding the deferred tag after lobee-press.js on every page |
/assets/js/lobee-press.js | ?v=20261201a | Every page, with defer |
/assets/css/lobee-nebula.css | (deleted) | Retired; delete from the server if still present, and do not re-upload |
/assets/js/lobee-ascii.js | (deleted) | Retired; delete from the server if still present, and do not re-upload |
/assets/css/lobee-docs.css | ?v=docs5 | example.html only, after lobee.css |
favicon.ico / icon-32.png / apple-touch-icon.png / icon-192.png / icon-512.png | ?v=3 | Every page (unchanged rasters) |
site.webmanifest | ?v=5 | Every page; theme_color is #0B1624 |
Server rules (.htaccess)
All server behaviour lives in one .htaccess at the site root (LiteSpeed/Apache), uploaded with the pages. It is never served (.ht* files are protected by the server). Rules run top to bottom and the first [L] match wins, so order matters. The live file, in order:
| Block | What it does |
|---|---|
| Security hardening | Options -Indexes (no folder listings); a deny rule for backups and other non-public files; the security headers and the enforced CSP (see the next section) |
| Canonical host | RewriteEngine On; www.lobee.ca → lobee.ca, 301, path and query kept |
| Retired posts | /lobee-ca-june-update and /july-check-in → /blogs; /talk2mycat → / (301, with or without .html / .md) |
| PART A: 301s | Old flat post URLs (/october-check-in, /05222026catch, /macintosh-se-restoration, /project-template) → their section folder, for .html and .md; blogs.html / projects.html / fishing.html → /blogs etc.; /blogs/index.html typed in the address bar → /blogs; /blogs/slug/ → /blogs/slug; any other existing .html typed in the address bar → its extensionless URL (/aboutme.html → /aboutme, /index.html → /, query kept; guarded by THE_REQUEST and REDIRECT_STATUS so the internal “hide .html” rewrite and ErrorDocument never loop; the error pages are excluded); old flat image paths → /assets/images/<section>/ (only when the old file is gone) |
| Headers | Vary: Accept on every response; robots.txt as text/plain and sitemap.xml as application/xml; .md as text/markdown; charset=utf-8 with Content-Signal and x-markdown-tokens on index.md; /.well-known/security.txt as text/plain; charset=utf-8 |
| Error pages | ErrorDocument 400 /400.html … 503 /503.html |
| PART B: Markdown for Agents | With Accept: text/markdown: / → index.md; /blogs, /projects, /fishing → <section>/index.md; any one- or two-segment page (/aboutme, /documents, /documents/<slug>) → the .md beside it, if it exists |
| PART C: folder listings | RewriteOptions AllowNoSlash + DirectorySlash Off, then /blogs, /projects, /fishing → <section>/index.html without a slash redirect |
| Documents listing | ^documents/?$ → /documents.html (see Documents section above) |
| Hide .html | Existing file or directory: serve as is; otherwise /foo → foo.html if it exists |
| Performance | MIME types for .webp, .avif, .ico, .svg and .webmanifest; Expires / Cache-Control by type (see Cache busting), extra mod_deflate compression |
# PART C: section listings (folder/index.html)
RewriteOptions AllowNoSlash
DirectorySlash Off
RewriteRule ^(blogs|projects|fishing)$ /$1/index.html [L]
# /documents is documents.html, but documents/ is now also a folder (document
# posts), so serve the listing before the -d check below can 403 it.
RewriteRule ^documents/?$ /documents.html [L]
# Hide .html extensions: /foo -> foo.html (if it exists)
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.+?)/?$ $1.html [L]
# PART A (excerpt): typed .html -> extensionless, query string kept
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{THE_REQUEST} ^[A-Z]+\s/index\.html[\s?]
RewriteRule ^index\.html$ / [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{THE_REQUEST} ^[A-Z]+\s/[^\s?]+\.html[\s?]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(?!(?:400|401|403|404|500|503)\.html$)((?:[A-Za-z0-9_-]+/)*[A-Za-z0-9_-]+)\.html$ /$1 [R=301,L]- Keep one source of truth: edit the live copy, keep a dated backup, upload it with the pages that need it.
- Add new rules in the block they belong to; anything that must beat the “hide .html” block goes above it.
- Test with a local server that sends the same CSP and mimics the rewrites, then after upload check
curl -Ion/documents, a post and one.md(expect 200 and the rightContent-Type).
- Do not upload a stale
.htaccessfrom an old working copy: it drops the CSP hashes and newer rules. - Do not rely on a plain local server: it sends none of these headers or rewrites.
Content Security Policy and inline-script hashes
.htaccess sends an enforced Content-Security-Policy: anything it does not allow is blocked, not just reported. default-src 'none'; script-src 'self' + the four hashes below; style-src 'self'; img-src 'self' data:; font-src, connect-src, manifest-src and media-src 'self'; frame-src 'none'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'self'; upgrade-insecure-requests. In practice: same-origin files only, no third-party resources, no style="" attributes or <style> blocks (there is no 'unsafe-inline'), no inline event handlers (onclick=) or javascript: links. lobee-docs.css is same-origin, so 'self' already covers it and the policy needs no change.
Next to it .htaccess sends Strict-Transport-Security (one year, no includeSubDomains because of bjsim.lobee.ca), X-Content-Type-Options: nosniff, X-Frame-Options: SAMEORIGIN, Referrer-Policy: strict-origin-when-cross-origin, a Permissions-Policy that turns off camera, microphone, geolocation, payment, USB and motion sensors, Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Resource-Policy: same-origin, and removes X-Powered-By. Its deny rule (Require all denied) blocks .htaccess backups, files ending .bak, .old, .orig, .tmp, .swp, .zip, .tar, .gz, .tgz, .7z, .sql, .log, .ini, .sh or .bat or with a trailing ~, plus DEPLOY.md, htaccess-*.txt, error_log and .ftpquota, so never rely on those names being reachable. Mozilla HTTP Observatory: A+ (140). All of this comes from .htaccess, so it only applies on Apache/LiteSpeed hosts; a plain local server sends none of it, so test CSP changes with a server that adds the same headers.
Inline scripts run only if the sha256 hash of the exact text between <script> and </script> (whitespace and newlines included) is listed in script-src. Edit a script and the hash changes: any new or edited inline script needs its hash added or replaced in .htaccess in the same upload, or it is blocked. The current four:
| Hash (sha256-…) | Script |
|---|---|
Afj5YytaLTSGl4uLfKBDTR/k6wnIstFVec3IOQTVoFw= | Theme toggle only: every page not listed below (blogs, projects, fishing, documents, error pages) |
PUPd8t/xvuJ+nkZfDmP8JNtdDQe56KzPWKQP+CBFZKo= | Home: theme toggle + clock |
64OlmDtjtBA3cj82Er8r7ztwLXYR3I/A5WoLmhKBw9s= | About: theme toggle + copy chips |
YWbw6w4c50hR7U0kijnpP5VIGNsjFejYU4Bn2bp45Ug= | This page: theme toggle + copy chips |
# hash of one inline script: the exact text between the tags, byte for byte
printf '%s' "<script contents>" | openssl dgst -sha256 -binary | base64
# or save that text to script.txt (no added trailing newline) and hash the file
openssl dgst -sha256 -binary script.txt | base64
# add the result as 'sha256-<value>' to script-src in .htaccess and drop the old oneShortcut: load the page with the new script; the browser console's CSP refusal message prints the expected sha256-… value.
Sitemap
sitemap.xml lists every indexable page by its canonical extensionless URL with a lastmod in YYYY-MM-DD. Add the entry when you publish a page and bump lastmod whenever its content or markup changes. noindex pages (the error pages and projects/project-template) and .md files are not listed. robots.txt allows all crawlers and points to the sitemap.
<url>
<loc>https://lobee.ca/blogs/your-post</loc>
<lastmod>2026-10-27</lastmod>
</url>Checklist for a new page
- Copy the page shell above (or an existing post); set
<title>, description, eyebrow, emoji +h1. The meta description is one specific sentence about this page (what it covers, not just its title), and the same text goes in the.mdfront matter andog:description. - Head tags on every indexable page:
<link rel="canonical">with the extensionlesshttps://lobee.ca/…URL (listings without a trailing slash, home ishttps://lobee.ca/), the favicon/manifest links (favicon.ico, PNG 32/192, apple-touch icon, webmanifest), and the Open Graph block (og:typearticlefor posts,websitefor listings and top-level pages;og:url= the canonical;twitter:card).og:image: the post's own photo as a JPEG copy in/assets/images/og/<slug>.jpg(EXIF stripped,twitter:cardsummaryfor square images) or the defaultog/lobee-share.jpg(1200 × 630,summary_large_image), with its real width, height and alt text. Documents keep the default while they show the placeholder cover; a real cover gets itsog/<slug>.jpgcopy like a blog photo.noindexpages (the error pages and the project template) get only the favicon links: no canonical, no Open Graph. - Favicon set (site root):
favicon.ico(16/32/48/64),icon-32.png,apple-touch-icon.png(180),icon-192.png,icon-512.png,site.webmanifest: the head of the error-page construction-worker sticker (helmet, goggles, grin) with a white sticker outline, on a transparent background infavicon.ico/icon-32.png/ the two manifest icons and on a solid#0B1624navy square inapple-touch-icon.png(iOS fills transparency with black; the raster itself is unchanged in this step). Pages linkfavicon.ico, PNG 32 and 192, the apple-touch icon and the manifest.site.webmanifestlists the 192 and 512 PNGs (image/png, nopurpose, soany: the icon is not padded for a maskable crop) withtheme_color#0B1624andbackground_color#f6f8fa; pages have notheme-colormeta. There is no SVG icon link (the sticker is a photo, not a vector;favicon.svgonly wraps the PNG). Images are cached for a year, so a changed icon needs a new?v=on its link in every page head (icons stay?v=3; the manifest is?v=5becausetheme_colorwas restored to#0B1624) and on the iconsrcvalues insite.webmanifest. - Link to the extensionless URL, never to
foo.html: typed.htmlURLs 301 to it. - Headings: one
h1, thenh2(use<h2 class="prose-h3">for the small section-title style); never skip a level. - No HTML comments that describe the workflow or tooling in public pages; notes belong in
DEPLOY.md(blocked from the web) or this Library. - Set
aria-current="page"on the nav link only for Home and About; posts do not mark one. - Add the
.mdcompanion; add afeed-cardon the parent listing (and a bullet in its.md:<section>/index.md, ordocuments.mdfor Documents); add the sitemap entry and bump the listing'slastmod. - Creating a folder with the same name as an existing top-level page? Add its
.htaccessrule first (see Sections, folders and URLs). - Images in
/assets/images/<section>/,.webp, explicit dimensions, descriptivealt. - New CSS follows the Spacing & sizing principle: tokens only, blocks
--flow-blockapart, exceptions documented. - Test light, dark and a 390 px viewport; confirm no horizontal scroll and no requests to other hosts.
- New or edited inline script: add or replace its hash in
.htaccess. Changed CSS/JS: bump?v=on all pages. - A page with its own theme (like the memorial) gets its own small CSS file linked after
lobee.css, never a<style>block orstyle=""; set its dark background in that file so it never flashes white.
Class index
Generated from lobee.css, lobee-docs.css and the live pages on 2026-11-04. Defined in lobee.css and in use on live pages (103):
btn-back, callout, callout--tip, callout--warning, callout__title, clock-flap, clock-flap--colon, clock-flap--period, clock-flap__fly, clock-flap__fly--bot, clock-flap__fly--top, clock-flap__rest, clock-flap__rest--bot, clock-flap__rest--top, clock-flap__text, code-block, code-block--avoid, code-block--good, code-block__file, code-block__head, code-block__lang, code-block__verdict, code-compare, contact-chip, contact-chip__hint, contact-chip__icon, contact-chip__text, contact-chip__title, contact-chip__value, feed-card, feed-card--calm, feed-card--featured, feed-card__body, feed-card__desc, feed-card__icon, feed-card__title, feed-label, feed-list, home-banner, home-banner__img--day, home-banner__img--night, index-banner-caption, index-banner-caption__flag, index-banner-group, index-clock__board, index-clock__colon, index-clock__display, index-clock__group, index-clock__part, index-clock__sr, index-duo, index-hero, index-hero__about, index-hero__body, index-hero__lead, index-main, index-panel, index-progress__bar, index-section, index-uni, index-uni__head, index-uni__icon, index-uni__main, index-uni__meta, italic-note, p-body, p-clock, p-face, p-ink, p-screen, page-404__code, page-404__lead, page-404__main, page-404__sticker, page-eyebrow, page-header-block, page-title, page-wrap, page-wrap--home, post, prose, prose-h3, site-header, site-header__brand, site-header__brand-logo, site-header__brand-logo--day, site-header__brand-logo--night, site-header__inner, site-header__link, site-header__nav, site-header__toggle, table-scroll, table-scroll__pane, tok-bi, tok-com, tok-fn, tok-kw, tok-num, tok-out, tok-prompt, tok-str, widget, widget--clock, widget--mac, widget__badge, widget__pix
Defined in lobee.css but not used on any live page yet (27). Some are added by script (is-hover, is-pressed, contact-chip--copied, index-clock__part--tick), some are hooks or state, the rest are ready-made components:
about-hero-img, btn-3d, btn-3d--accent, btn-3d-surface, btn-3d-surface--accent, card-block, card-cta, card-grid, card-grid--2, card-grid--3, check-list, check-list--do, check-list--dont, contact-chip--copied, feed-card--muted, index-clock__ampm, index-clock__part--tick, is-flipping, is-hover, is-pressed, prose-embed, site-header__link--about, space-y, surface-3d, surface-3d-inset, text-faint, text-muted
Documentation-only helpers defined in lobee-docs.css (66), linked by this page alone. Never use them on other pages:
ds-btn, ds-btn--accent, ds-c-3d-border, ds-c-accent, ds-c-accent-bg, ds-c-accent-border, ds-c-accent-bottom, ds-c-accent-hover, ds-c-accent-top, ds-c-bg, ds-c-border, ds-c-canvas, ds-c-divider, ds-c-face-bottom, ds-c-face-top, ds-c-header-bg, ds-c-side, ds-c-surface, ds-c-surface-2, ds-c-text, ds-c-text-faint, ds-c-text-muted, ds-demo, ds-panel, ds-r-full, ds-r-lg, ds-r-md, ds-r-sm, ds-r-xl, ds-rad, ds-row, ds-sh, ds-sh-lg, ds-sh-md, ds-sh-sm, ds-shs, ds-sp, ds-sp-0_5, ds-sp-1, ds-sp-10, ds-sp-12, ds-sp-16, ds-sp-2, ds-sp-20, ds-sp-3, ds-sp-4, ds-sp-5, ds-sp-6, ds-sp-8, ds-sw, ds-sw__chip, ds-sw__name, ds-sw__val, ds-sws, ds-t-2xl, ds-t-base, ds-t-lg, ds-t-sm, ds-t-xl, ds-t-xs, ds-theme, ds-themes, ds-w, ds-w-default, ds-w-narrow, ds-w-wide