aboutsummaryrefslogtreecommitdiffhomepage
path: root/AGENTS.md
diff options
context:
space:
mode:
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md12
1 files changed, 12 insertions, 0 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.