aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--AGENTS.md12
-rw-r--r--CLAUDE.md12
-rw-r--r--README.md4
-rw-r--r--llms.txt1
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
<html lang="en" data-pw-theme="dark" data-pw-product="packet">
<head>
- <link rel="stylesheet" href="/static/pw-tokens.css">
- <link rel="stylesheet" href="/static/pw-components.css">
+ <link rel="stylesheet" href="css/pw-tokens.css">
+ <link rel="stylesheet" href="css/pw-components.css">
</head>
<body class="pw-app">
<header class="pw-header"><span class="pw-wordmark"><span>XLX</span> OBSERVATORY</span></header>
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