# Packet Warriors Design System ## Carbon & Signal — v1.1.1 **Creative direction:** Precision industrial with restrained retro-futurism. Designed for independent engineering, experimentation, innovation, technical expertise and professionalism. This starter kit is intended for Packet Warriors (.com/.net), Firefly Logger, Firefly QSL (SmoothQSL), XLX Observatory, and Zensical documentation. It is not an application rewrite. No repositories or deployed sites were modified. ## Start here 1. Open `examples/index.html` in a browser (no server or internet required). Select Light, Dark or System and switch among product specimens. Logger and QSL contain local sample forms. 2. Review `tokens.json` and `contrast.md`. 3. Copy `css/pw-tokens.css` into each application. Load the appropriate adapter or map these tokens to existing CSS. 4. If needed, add your locally hosted IBM Plex fonts using `pw-fonts.css` and the file names below. 5. Migrate one screen at a time, test keyboard paths and tablet layouts, then deploy. ## 1. Brand identity | Name | Hex | Use | |---|---|---| | Carbon | #171715 | Dark canvas | | Graphite | #2E2E2A | Raised structural surfaces | | Pewter | #B8B5AB | Metallic neutral | | Porcelain | #F2EFE9 | Light canvas | | Signal Red | #C12735 | Master brand, rule, solid primary action | | Bright Signal | #D32939 | Red interaction state | | Deep Signal | #861E28 | Brand depth | | Instrument Amber | #DAB16B | Firefly product identity | | Jade | #50B39A | Connected, positive and successful states | | Copper | #C79A80 | Optional illustration, secondary data series or small decoration | **Wordmark:** PACKET in Signal Red, WARRIORS in the mode's main neutral text color. IBM Plex Sans Bold (700), tightly set, no decorative effects. Brand marks should not be used as ordinary small red links in dark mode. Use full accessible text for logos, accessible button names and distinct focus outlines. Prefer a monochrome wordmark if brand red cannot be used legibly at the intended size. **Master logo:** The approved Packet Warriors master logo is supplied in `logos/`. Outer elements are Signal Red #C12735; inner elements are Pewter #B8B5AB on dark or #45443E on light. Use the flat assets for interfaces, a square Carbon-backed icon for favicons, and monochrome when appropriate. Metallic is an optional large-format treatment only. Preserve the exact geometry, orientation and negative space; do not improvise a substitute. See `logos/README.md`. This does not finalize or replace Firefly or XLX product marks. Canonical guide: https://www.packetwarriors.com/style-guide/. Color tokens remain v1.0.0 (unchanged). **Product architecture:** shared surfaces, typography, shape, interactions and status conventions. Firefly Logger and Firefly QSL use amber for product marks and primary actions. XLX Observatory uses Signal Red (and can retain a reflector's custom logo). Other products default to Signal Red. Jade is a shared semantic accent, not a product brand. Copper is supplemental, not required everywhere. **Do not:** introduce tinted blue-gray canvases, glass effects, large drop shadows, neon gradients, oversized pills, decorative gauges, or excessive sci-fi type. Color should describe a state or affordance, not just fill empty space. ## 2. Practical color tokens Roles are defined in `tokens.json` and generated to `css/pw-tokens.css` as `--pw-ROLE` and `--pw-ROLE-rgb` (comma-separated RGB). Edit the source dictionaries in `tools/build_tokens.py`, run `python3 tools/build_tokens.py`, and commit all generated files together. | Role | Light | Dark | |---|---|---| | canvas | #F2EFE9 | #171715 | | surface | #FFFCF7 | #22221F | | raised | #E1DED5 | #2E2E2A | | inset | #F8F5EF | #141412 | | text | #272620 | #E8E6DF | | muted | #615F56 | #ADA99F | | border (decorative) | #CBC7BD | #484840 | | control-border | #817D72 | #7A7971 | | primary | #C12735 | #C12735 | | on-primary | white | white | | link | #A52C36 | #D8D4C9 | | firefly | #8A5D20 | #DAB16B | | success | #186950 | #50B39A | | warning | #785018 | #DAB16B | | danger | #A52C36 | #F1989C | | focus | #A52C36 | #DAB16B | The approved brand colors are immutable within this version. The functional light Jade is darker than the early mockup (#207A62) to improve contrast on raised surfaces and success callouts. Dark-mode ordinary links use underlined neutral text, not pale coral. Reserve light red error text for genuine danger; it is deliberately distinct from the actual deep Signal Red brand and is never the wordmark color. Use the paired background token for semantic callouts; do not put ordinary dark-mode body copy on Signal Red. Prefer a dark foreground for dark-mode amber, and white on filled Signal Red. Use text plus symbols for operational conditions. TX/on-air may use Jade plus explicit ON AIR text; do not confuse ongoing radio activity with failure. Warnings use amber only in context; avoid relying on amber alone to distinguish a warning from a normal Firefly action. ## 3. Typography and geometry - IBM Plex Sans: 400 body, 600 headings/controls, 700 branding. IBM Plex Mono: 400 commands, IDs, frequencies, timestamps, optionally call signs. Use monospace selectively. - Base 16px (1rem), small controls and dense data 14px, secondary metadata 13px, section heading 22px, page heading 28px, marketing headline 36px+; body line height 1.5, headings 1.2. Support user zoom, never lock browser font size. - Space scale 4, 8, 12, 16, 24, 32px. Use 4px corner radius for controls, 6px panels, full rounding only for status dots. - Canvas → surface → raised; recessed inputs use inset plus visible control border. Use a 1px separator, 3px red brand rule. Avoid elevation shadows except restrained overlays. - Typical control height 40px; use at least 44px for coarse-pointer/touch controls. Keep visible labels, do not use placeholders alone. - Data tables: compact row padding, meaningful labels and scope on header cells, tabular numerals; horizontal scroll if necessary. Avoid gratuitous nested cards. - Keyboard: maintain existing Tab order, direct shortcuts, Enter submission and autofocus conventions where appropriate. Do not capture keys globally when typing; avoid hover-only actions. Use a visible 2px outline offset 3px. Never remove outlines without a replacement. - Firefly night operations: predominantly Carbon and muted secondary text; no bright white panels, flashing backgrounds or full-page alerts. Provide consistent light/dark switching and respect OS preferences. Keep full contrast for actionable text. ## 4. Native application integration (XLX Observatory) Load `pw-tokens.css` first, optional `pw-fonts.css`, then `pw-components.css` if using those classes; your existing style overrides should follow. ```html
XLX OBSERVATORY
Reflector status
Connected
``` If retaining the existing markup, map the old variables to PW roles instead of changing every template. Map canvas, panel, titlebar, text, muted, borders, input, link and statuses first. If old style selectors are more specific, remove conflicting hard-coded colors. Preserve SSE updates, table sorting, replaceable header logos and existing user settings. Use the actual current stylesheet as the integration target; the adapter is not a patch against a known repository revision. Set `data-pw-theme` to light/dark/auto on the html element; auto follows the OS. Optional `examples/theme.js` resolves system mode and persists choices; integrate with your existing toggle rather than running two preference managers. `data-pw-product="firefly"` remaps `--pw-action` and related aliases. ## 5. Bootstrap 5.3 integration (Firefly) Load order: existing local Bootstrap 5.3 CSS → pw-tokens.css → optional pw-fonts.css → pw-bootstrap.css → app-specific overrides. Optionally load native components for .pw-* classes. Do not mix two conflicting appearance managers. ```html
Log contact
``` The runtime adapter covers global variables, common buttons, cards, tables, forms, dropdowns, modal, navigation, utility backgrounds and focus. Some Bootstrap styles are precompiled (SVG icons, other variants, table variants, helper classes). Audit those where used; use a Sass build if broad variant coverage is required. Use outlined danger actions rather than ordinary primary red for destructive operations; include a clear destructive label and confirmation when appropriate. Keep data-bs-theme on the root, and if using data-pw-theme as well, keep them synchronized. The included theme.js does that. Bootstrap 4 and older require a separate adapter. For Logger, verify tab order and shortcuts on every log-entry workflow, dupe status, invalid input, hand-key, CW/SSB/digital modes and export. For QSL, verify lookup, selected rows, printable card workflow and iframe embedding. Do not recolor QSL card images or change generated print output. ## 6. Zensical integration Use the supplied `zensical/zensical.toml` as a configuration fragment. Merge into the existing config; do not overwrite nav, metadata, or plugin settings. Copy the CSS into docs/stylesheets as listed by extra_css. If using MkDocs YAML, use the equivalent settings (theme.palette list, theme.font: false, extra_css list). Retain default and slate schemes for Zensical's built-in toggle. Set primary and accent to custom for the explicit light/dark entries. The CSS maps both schemes onto the PW role tokens and overrides common success/warning/danger/note admonitions. Self-host font files within docs/fonts, relative to docs/stylesheets/pw-fonts.css. In Zensical, font=false disables Google autoloading; the CSS defines --md-text-font and --md-code-font. If using existing local fonts, point the @font-face URLs at those files. Remove stale CSS that overwrites the same --md-* variables, and test both modes including nav, search, code highlighting, admonitions and generated tables. If your custom header uses separate styles, apply the 3px Signal Red rule there. This is a starter adapter, not a diagnosis of the broken live theme. It follows the documented selectors, but needs validation against your installed Zensical version and existing overrides. ## 7. Fonts, offline, and distribution The package does not include font binaries or Bootstrap. The standalone gallery uses installed IBM Plex if available, otherwise a system fallback. Add licensed local WOFF2 files with these names (or edit pw-fonts.css): - IBMPlexSans-Regular.woff2 - IBMPlexSans-SemiBold.woff2 - IBMPlexSans-Bold.woff2 - IBMPlexMono-Regular.woff2 Obtain the fonts from IBM's repository (https://github.com/IBM/plex) and include the applicable font license when redistributing. Keep all fonts, CSS, JS and icons local where Firefly must operate without the internet. ## 8. Acceptance checklist - Light/Dark/System appearance correctly follows preference and survives refresh in the actual app. - Test at 1280px, 1024px and 768px; tablet landscape and portrait; browser zoom to 200%. - Check operating flows with keyboard only, then touch, and with Windows High Contrast / forced colors. - Prefer text or icon plus state color; no crucial information conveyed solely via red/green. - Confirm forms, dropdowns, stateful buttons, invalid inputs, and checkboxes remain visible in both modes. - Test alerts and labels; avoid clipping focus outlines in scrollable panels. - Check colors on inexpensive displays in bright light and, for Firefly, at night. - Preserve live operations and existing configuration; test each application before production release. - Calculated contrast.md is a palette-level check, not proof of full WCAG conformance. ## References - Bootstrap 5.3 color modes: https://getbootstrap.com/docs/5.3/customize/color-modes/ - Bootstrap 5.3 color: https://getbootstrap.com/docs/5.3/customize/color/ - Bootstrap 5.3 buttons: https://getbootstrap.com/docs/5.3/components/buttons/ - Zensical colors: https://zensical.org/docs/setup/colors/ - Zensical fonts: https://zensical.org/docs/setup/fonts/ - IBM Plex: https://github.com/IBM/plex Version 1.0.0 · 2026-11-27 ## Verification status The role pairs in contrast.md pass their listed targets. JSON, Zensical TOML, JavaScript syntax and CSS structural checks were completed. Browser-level interactive/visual QA could not be completed because the local Chromium executable was unavailable. The specimen is supplied for your review, not as a tested production application. Neither the Bootstrap adapter nor Zensical configuration has been run against your live projects. Use the acceptance checklist before merging.