aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
blob: 11c4e73df16219c266efc5509b57ba8a643dcdb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# Packet Warriors Design System
## Carbon & Signal — v1.5.0

**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 master mark is distinct from the approved Firefly and XLX Observatory product symbols. Canonical guide: https://www.packetwarriors.com/style-guide/. Color tokens remain v1.0.0 (unchanged).

**Firefly product logo:** Firefly Logger and Firefly QSL share the approved four-part Firefly symbol in `logos/firefly-*.svg`. On dark surfaces use Instrument Amber #DAB16B with Pewter #B8B5AB; on light use #8A5D20 with #45443E. Use the same geometry for both products; distinguish them by their product names in IBM Plex Sans 700. See `logos/firefly.md` for the approved assets and usage. Do not add glow, radio motifs, or new product decorations.

**XLX Observatory product logo:** Use the approved five-element symbol in `logos/xlx-observatory-*.svg`. The mirrored channel elements alternate Signal Red #C12735 and Pewter #B8B5AB on dark or #45443E on light; the central node is neutral. Use the exact paths with XLX in Signal Red and OBSERVATORY in main text neutral, IBM Plex Sans 700. Refer to `logos/xlx-observatory.md` for official artwork. Preserve the existing operator-configurable reflector logo feature; it is independent of the product identity.

**Infrastructure product logos:** FwdFix and GPS Clock Dash use their approved flat SVG assets in `logos/fwdfix-*.svg` and `logos/gps-clock-dash-*.svg` respectively. Both use Signal Red #C12735 and Pewter #B8B5AB on dark, or #45443E neutral on light. FwdFix uses neutral Fwd and red Fix; GPS Clock Dash uses red GPS and neutral CLOCK DASH. Keep the exact geometry and IBM Plex Sans 700 lockups. See `logos/fwdfix.md` and `logos/gps-clock-dash.md`. Signal Red is the default product accent; Firefly Amber is the established exception. Copper remains supplemental and Jade is semantic, not a product identity.

**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 in application UI, 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
<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">
</head>
<body class="pw-app">
  <header class="pw-header"><span class="pw-wordmark"><span>XLX</span> OBSERVATORY</span></header>
  <main class="pw-panel">
    <div class="pw-panel-title">Reflector status</div>
    <div class="pw-panel-body"><span class="pw-status pw-success">Connected</span></div>
  </main>
</body>
</html>
```

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
<html lang="en" data-bs-theme="dark" data-pw-product="firefly">
<head>
 <link rel="stylesheet" href="css/bootstrap.min.css">
 <link rel="stylesheet" href="css/pw-tokens.css">
 <link rel="stylesheet" href="css/pw-bootstrap.css">
</head>
<body>
 <div class="card">
  <div class="card-header">Log contact</div>
  <div class="card-body">
   <label class="form-label" for="call">Callsign</label>
   <input class="form-control" id="call" autocomplete="off">
   <button class="btn btn-primary mt-3">Log contact</button>
  </div>
 </div>
</body>
</html>
```

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.

## Flagship website and art direction

The approved flagship design is Independent Works with the Signal Register software catalogue and Signal Architecture hero artwork. See [flagship.md](flagship.md) and the [complete approved homepage specimen](examples/flagship/index.html). Luminous crimson packet paths are permitted in brand illustrations only, not operational UI chrome. Existing logo, palette and accessibility rules remain unchanged.