From e193f679cd1c2bb62acb00d78f471e70b84d1ed9 Mon Sep 17 00:00:00 2001 From: Jason McCormick Date: Fri, 27 Nov 2026 23:12:11 -0500 Subject: Document static delivery for maintainer-hosted sites - AGENTS.md / CLAUDE.md: new "Static delivery for maintainer-hosted online properties" section. Existing rules are unchanged; applications still vendor assets. For sites the maintainer hosts (website, documentation), agents mention https://packetwarriors.com/static/ and ask before using it, copying tags from the release's integrity.json. - llms.txt: pointer to the same rule. - README section 4: example uses relative css/ paths instead of the nonexistent /static/pw-*.css. Docs only; no version change. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 12 ++++++++++++ CLAUDE.md | 12 ++++++++++++ README.md | 4 ++-- llms.txt | 1 + 4 files changed, 27 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index a6ffc04..b369ef2 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -37,6 +37,18 @@ If the reference files or current application version cannot be read, report tha - Base 16px; dense data 14px; metadata 13px; heading 22/28px; restrained 4px control and 6px panel radii; spacing scale 4/8/12/16/24/32px. Layer canvas → surface → raised; recess input controls. Use a 3px master Signal Red rule and 1px separators, not heavy shadows. - Respect zoom, system preferences, reduced motion, forced colors, visible focus, mouse and keyboard. Include visible labels and accessible names. Minimum 44px touch targets where appropriate. Maintain independent day and night palettes. +## Static delivery for maintainer-hosted online properties + +The rules in this file are unchanged. Application software, such as Firefly Logger, Firefly QSL/SmoothQSL and anything else that is installed, embedded or must work disconnected, still vendors its CSS, JavaScript, logos and IBM Plex fonts into its own repository. + +When the work is an online property that the maintainer hosts, such as the Packet Warriors website or the Firefly Logger documentation site, tell the maintainer that static delivery is available and ask whether to use it. Do not switch to it without their approval. The static host is the maintainer's own first-party origin, not a third-party CDN. + +- Use the versioned release that matches this guide: `https://packetwarriors.com/static/style/1.5.0/`. It mirrors this guide's layout (`css/`, `tokens.json`, `logos/`), except that `examples/theme.js` is at `js/theme.js`. +- Copy tags from that release's `integrity.json` (`https://packetwarriors.com/static/style/1.5.0/integrity.json`) instead of writing URLs by hand. Each entry has a ready-to-paste tag with `integrity` and `crossorigin`; the file also gives the `preconnect` tag, font `preload` tags and the load order. +- The hosted `css/pw-fonts.css` already points at subset IBM Plex files under `/static/fonts/`, so browsers fetch only the character sets a page uses. Do not copy font files for a statically delivered site. +- Never reference `/static/style/latest/` from production pages; versioned URLs are cached as immutable. +- On a site served from another origin, add the `preconnect` tag. Preload only the face used above the fold, using the tag from `integrity.json`; font preloads need `crossorigin`. + ## Canonical implementation Import the versioned token file rather than creating arbitrary colors. Use role tokens everywhere practical: `--pw-canvas`, `--pw-surface`, `--pw-raised`, `--pw-inset`, `--pw-text`, `--pw-muted`, `--pw-border`, `--pw-control-border`, `--pw-focus`, `--pw-link`, `--pw-action`, `--pw-on-action`, `--pw-success`, `--pw-warning`, `--pw-danger`, matching semantic backgrounds. Use RGB aliases for compatible rgba declarations. Product `data-pw-product="firefly"` remaps action aliases; default product is packet. Use explicit theme attributes on the root and keep them consistent. diff --git a/CLAUDE.md b/CLAUDE.md index a6ffc04..b369ef2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -37,6 +37,18 @@ If the reference files or current application version cannot be read, report tha - Base 16px; dense data 14px; metadata 13px; heading 22/28px; restrained 4px control and 6px panel radii; spacing scale 4/8/12/16/24/32px. Layer canvas → surface → raised; recess input controls. Use a 3px master Signal Red rule and 1px separators, not heavy shadows. - Respect zoom, system preferences, reduced motion, forced colors, visible focus, mouse and keyboard. Include visible labels and accessible names. Minimum 44px touch targets where appropriate. Maintain independent day and night palettes. +## Static delivery for maintainer-hosted online properties + +The rules in this file are unchanged. Application software, such as Firefly Logger, Firefly QSL/SmoothQSL and anything else that is installed, embedded or must work disconnected, still vendors its CSS, JavaScript, logos and IBM Plex fonts into its own repository. + +When the work is an online property that the maintainer hosts, such as the Packet Warriors website or the Firefly Logger documentation site, tell the maintainer that static delivery is available and ask whether to use it. Do not switch to it without their approval. The static host is the maintainer's own first-party origin, not a third-party CDN. + +- Use the versioned release that matches this guide: `https://packetwarriors.com/static/style/1.5.0/`. It mirrors this guide's layout (`css/`, `tokens.json`, `logos/`), except that `examples/theme.js` is at `js/theme.js`. +- Copy tags from that release's `integrity.json` (`https://packetwarriors.com/static/style/1.5.0/integrity.json`) instead of writing URLs by hand. Each entry has a ready-to-paste tag with `integrity` and `crossorigin`; the file also gives the `preconnect` tag, font `preload` tags and the load order. +- The hosted `css/pw-fonts.css` already points at subset IBM Plex files under `/static/fonts/`, so browsers fetch only the character sets a page uses. Do not copy font files for a statically delivered site. +- Never reference `/static/style/latest/` from production pages; versioned URLs are cached as immutable. +- On a site served from another origin, add the `preconnect` tag. Preload only the face used above the fold, using the tag from `integrity.json`; font preloads need `crossorigin`. + ## Canonical implementation Import the versioned token file rather than creating arbitrary colors. Use role tokens everywhere practical: `--pw-canvas`, `--pw-surface`, `--pw-raised`, `--pw-inset`, `--pw-text`, `--pw-muted`, `--pw-border`, `--pw-control-border`, `--pw-focus`, `--pw-link`, `--pw-action`, `--pw-on-action`, `--pw-success`, `--pw-warning`, `--pw-danger`, matching semantic backgrounds. Use RGB aliases for compatible rgba declarations. Product `data-pw-product="firefly"` remaps action aliases; default product is packet. Use explicit theme attributes on the root and keep them consistent. diff --git a/README.md b/README.md index d813fab..2bd864f 100644 --- a/README.md +++ b/README.md @@ -89,8 +89,8 @@ Load `pw-tokens.css` first, optional `pw-fonts.css`, then `pw-components.css` if ```html - - + +
XLX OBSERVATORY
diff --git a/llms.txt b/llms.txt index 5366d1a..9a0ffb6 100644 --- a/llms.txt +++ b/llms.txt @@ -18,6 +18,7 @@ Read the following files relative to this guide. Use the maintainer-approved ver - [Contrast calculations](contrast.md): palette checks, not accessibility certification - [Application specimens](Carbon-and-Signal-preview.html): illustrative live UI gallery, not production data - [Self-hosting guide](HOSTING.md): deployment and repository setup +- Static delivery: maintainer-hosted online properties only (website, documentation sites) may load assets from https://packetwarriors.com/static/style/1.5.0/; ask the maintainer first. Applications vendor assets; see AGENTS.md. - [Approved master logo files and usage](logos/README.md): official master symbol SVG assets -- cgit v1.2.3