aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason McCormick <jason@mfamily.org>2026-11-27 22:00:00 -0500
committerJason McCormick <jason@mfamily.org>2026-11-27 22:00:00 -0500
commit6ba33d2389b8e5edb46ef28bee44058ca5e1dca2 (patch)
tree3745409ff54dfa6885017a74b32aae8f54c98856
parent7842a5b27188ae4a8e7966f4ada3f4cd23135ce8 (diff)
add favicon packageHEADmain
-rw-r--r--index.html1
-rw-r--r--logos/README.md4
-rw-r--r--logos/favicon/README.md25
-rw-r--r--logos/favicon/apple-touch-icon-180x180.pngbin0 -> 2214 bytes
-rw-r--r--logos/favicon/favicon-16x16.pngbin0 -> 576 bytes
-rw-r--r--logos/favicon/favicon-32x32.pngbin0 -> 895 bytes
-rw-r--r--logos/favicon/favicon-48x48.pngbin0 -> 1015 bytes
-rw-r--r--logos/favicon/favicon.icobin0 -> 15086 bytes
-rw-r--r--logos/favicon/packet-warriors-favicon.svg1
-rw-r--r--tools/build_logo_assets.py24
10 files changed, 55 insertions, 0 deletions
diff --git a/index.html b/index.html
index 689a909..28c9a11 100644
--- a/index.html
+++ b/index.html
@@ -48,6 +48,7 @@
<section id="logos" class="section"><div class="section-kicker">IDENTITY / ASSET LIBRARY</div><h2>Every approved mark. Ready to use.</h2><p class="section-intro">Browse every master and product symbol treatment in one place. SVG remains the authoritative source; matching PNG and lossless WebP exports are supplied on square transparent canvases at common favicon, interface, app, avatar and profile sizes.</p>
<div class="logo-usage-grid"><article class="pw-panel inset-card"><h3>Compact use</h3><p>16, 32 and 48px for favicons and dense UI; 64 and 128px for navigation and launchers.</p></article><article class="pw-panel inset-card"><h3>Profiles &amp; apps</h3><p>256 and 512px for avatars, profiles and app tiles; 1024px for high-density or large-format use.</p></article><article class="pw-panel inset-card"><h3>Choose the treatment</h3><p>Use <code>*-icon</code> for self-contained square artwork. Flat and monochrome files retain transparency.</p></article></div>
<div class="callout"><strong>Export contract.</strong> All rasters are centered without distortion on a square canvas. Packet Warriors’ 5:4 master symbol retains its aspect ratio; no path geometry or internal negative space is changed. Metallic remains large-format artwork only.</div>
+<article class="pw-panel inset-card"><h3>Website favicon package</h3><p>Use one consistent, full-bleed Carbon-backed master icon across modern browsers, mail clients and legacy favicon discovery. The ICO contains 16, 32 and 48px images; PNG and Apple touch fallbacks are included.</p><div class="actions"><a class="pw-btn" href="logos/favicon/packet-warriors-favicon.svg">SVG</a><a class="pw-btn" href="logos/favicon/favicon.ico" download>ICO</a><a class="pw-btn" href="logos/favicon/favicon-32x32.png">32px PNG</a><a class="pw-btn" href="logos/favicon/favicon-16x16.png">16px PNG</a><a class="pw-btn" href="logos/favicon/apple-touch-icon-180x180.png">180px Apple touch</a><a class="pw-btn" href="logos/favicon/README.md">Integration guide</a></div></article>
<div id="logo-library" class="logo-library"><p class="muted">Loading the local logo manifest…</p></div>
<noscript><p class="pw-alert pw-warning">JavaScript is required to display the download matrix. The original SVG files and generated raster folders remain available under <code>logos/</code>.</p></noscript>
<div class="actions"><a class="pw-btn" href="logos/raster/manifest.json">Machine-readable manifest</a><a class="pw-btn" href="logos/raster/README.md">Raster usage guide</a><a class="pw-btn" href="tools/build_logo_assets.py" download>Export generator</a></div>
diff --git a/logos/README.md b/logos/README.md
index bc1b45d..972aded 100644
--- a/logos/README.md
+++ b/logos/README.md
@@ -17,6 +17,10 @@ These are Packet Warriors master assets, not product logos. See [Firefly product
Canonical guide: https://www.packetwarriors.com/style-guide/
+## Website favicons
+
+Use the dedicated [`favicon/`](favicon/) package for public websites. It supplies the approved mark on an opaque, full-bleed Carbon field as SVG, PNG, Apple touch icon and a multi-resolution ICO. Keep `favicon.ico` at the website root for mail clients and favicon services that do not inspect HTML or support SVG.
+
## Raster exports
Every approved SVG in this directory also has PNG and lossless WebP exports at 16, 32, 48, 64, 128, 256, 512 and 1024 pixels under `raster/`. See [`raster/README.md`](raster/README.md) for selection guidance and [`raster/manifest.json`](raster/manifest.json) for the complete machine-readable inventory. Regenerate the checked-in exports with `python3 tools/build_logo_assets.py` from the repository root.
diff --git a/logos/favicon/README.md b/logos/favicon/README.md
new file mode 100644
index 0000000..fab2da5
--- /dev/null
+++ b/logos/favicon/README.md
@@ -0,0 +1,25 @@
+# Packet Warriors favicon package
+
+This package uses the approved Packet Warriors master geometry on a full-bleed Carbon `#171715` field. The opaque square background is intentional: browsers, mail clients and favicon services can apply their own corner or circular masks without leaving the mark unsupported on an unknown background.
+
+Copy these files to the website root:
+
+- `packet-warriors-favicon.svg` as `favicon.svg`
+- `favicon.ico`
+- `favicon-16x16.png`
+- `favicon-32x32.png`
+- `apple-touch-icon-180x180.png` as `apple-touch-icon.png`
+
+Use the following declarations in the document `<head>`:
+
+```html
+<link rel="icon" href="/favicon.ico">
+<link rel="icon" href="/favicon.svg" type="image/svg+xml" sizes="any">
+<link rel="icon" href="/favicon-32x32.png" type="image/png" sizes="32x32">
+<link rel="icon" href="/favicon-16x16.png" type="image/png" sizes="16x16">
+<link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180">
+```
+
+Keep the root `favicon.ico` even when SVG is declared. Some mail clients, feed readers and favicon services request `/favicon.ico` directly without parsing the page. The ICO contains 16, 32 and 48 pixel images.
+
+Regenerate the package with `python3 tools/build_logo_assets.py` from the style-guide root.
diff --git a/logos/favicon/apple-touch-icon-180x180.png b/logos/favicon/apple-touch-icon-180x180.png
new file mode 100644
index 0000000..ef4df74
--- /dev/null
+++ b/logos/favicon/apple-touch-icon-180x180.png
Binary files differ
diff --git a/logos/favicon/favicon-16x16.png b/logos/favicon/favicon-16x16.png
new file mode 100644
index 0000000..68882b6
--- /dev/null
+++ b/logos/favicon/favicon-16x16.png
Binary files differ
diff --git a/logos/favicon/favicon-32x32.png b/logos/favicon/favicon-32x32.png
new file mode 100644
index 0000000..0015580
--- /dev/null
+++ b/logos/favicon/favicon-32x32.png
Binary files differ
diff --git a/logos/favicon/favicon-48x48.png b/logos/favicon/favicon-48x48.png
new file mode 100644
index 0000000..30b03ea
--- /dev/null
+++ b/logos/favicon/favicon-48x48.png
Binary files differ
diff --git a/logos/favicon/favicon.ico b/logos/favicon/favicon.ico
new file mode 100644
index 0000000..fdaae64
--- /dev/null
+++ b/logos/favicon/favicon.ico
Binary files differ
diff --git a/logos/favicon/packet-warriors-favicon.svg b/logos/favicon/packet-warriors-favicon.svg
new file mode 100644
index 0000000..54f2052
--- /dev/null
+++ b/logos/favicon/packet-warriors-favicon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><title>Packet Warriors favicon</title><rect width="150" height="150" fill="#171715"/><g transform="translate(0 15)"><path fill="#C12735" d="M12 49L49 12H94L70 36H58L45 49ZM138 71L101 108H56L80 84H92L105 71Z"/><path fill="#B8B5AB" d="M24 94L57 61H82L49 94ZM68 53L101 20H126L93 53Z"/></g></svg>
diff --git a/tools/build_logo_assets.py b/tools/build_logo_assets.py
index 26badc1..c6fc27f 100644
--- a/tools/build_logo_assets.py
+++ b/tools/build_logo_assets.py
@@ -17,8 +17,10 @@ from PIL import Image, ImageColor
ROOT = Path(__file__).resolve().parents[1]
LOGO_DIR = ROOT / "logos"
RASTER_DIR = LOGO_DIR / "raster"
+FAVICON_DIR = LOGO_DIR / "favicon"
LIBRARY_VERSION = 2
SIZES = (16, 32, 48, 64, 128, 256, 512, 1024)
+FAVICON_SIZES = (16, 32, 48)
PRODUCTS = (
("packet-warriors", "Packet Warriors"),
@@ -184,6 +186,26 @@ def render(magick: str, source: Path, target: Path, size: int, fmt: str) -> None
)
+def build_favicon_package(magick: str) -> None:
+ source = FAVICON_DIR / "packet-warriors-favicon.svg"
+ pngs = []
+ for size in FAVICON_SIZES:
+ target = FAVICON_DIR / f"favicon-{size}x{size}.png"
+ render_svg(magick, source, target, size)
+ pngs.append(target)
+
+ render_svg(
+ magick,
+ source,
+ FAVICON_DIR / "apple-touch-icon-180x180.png",
+ 180,
+ )
+ subprocess.run(
+ [magick, *(str(png) for png in pngs), "-strip", str(FAVICON_DIR / "favicon.ico")],
+ check=True,
+ )
+
+
def main() -> None:
magick = shutil.which("magick")
if magick is None:
@@ -219,6 +241,8 @@ def main() -> None:
raster[str(size)][fmt] = relative.as_posix()
asset["raster"] = raster
+ build_favicon_package(magick)
+
payload = {
"version": LIBRARY_VERSION,
"canvas": "square-transparent",