From 6ba33d2389b8e5edb46ef28bee44058ca5e1dca2 Mon Sep 17 00:00:00 2001 From: Jason McCormick Date: Fri, 27 Nov 2026 22:00:00 -0500 Subject: add favicon package --- index.html | 1 + logos/README.md | 4 ++++ logos/favicon/README.md | 25 +++++++++++++++++++++++++ logos/favicon/apple-touch-icon-180x180.png | Bin 0 -> 2214 bytes logos/favicon/favicon-16x16.png | Bin 0 -> 576 bytes logos/favicon/favicon-32x32.png | Bin 0 -> 895 bytes logos/favicon/favicon-48x48.png | Bin 0 -> 1015 bytes logos/favicon/favicon.ico | Bin 0 -> 15086 bytes logos/favicon/packet-warriors-favicon.svg | 1 + tools/build_logo_assets.py | 24 ++++++++++++++++++++++++ 10 files changed, 55 insertions(+) create mode 100644 logos/favicon/README.md create mode 100644 logos/favicon/apple-touch-icon-180x180.png create mode 100644 logos/favicon/favicon-16x16.png create mode 100644 logos/favicon/favicon-32x32.png create mode 100644 logos/favicon/favicon-48x48.png create mode 100644 logos/favicon/favicon.ico create mode 100644 logos/favicon/packet-warriors-favicon.svg diff --git a/index.html b/index.html index 689a909..28c9a11 100644 --- a/index.html +++ b/index.html @@ -48,6 +48,7 @@
IDENTITY / ASSET LIBRARY

Every approved mark. Ready to use.

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.

Compact use

16, 32 and 48px for favicons and dense UI; 64 and 128px for navigation and launchers.

Profiles & apps

256 and 512px for avatars, profiles and app tiles; 1024px for high-density or large-format use.

Choose the treatment

Use *-icon for self-contained square artwork. Flat and monochrome files retain transparency.

Export contract. 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.
+

Website favicon package

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.

Loading the local logo manifest…

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 ``: + +```html + + + + + +``` + +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 Binary files /dev/null and b/logos/favicon/apple-touch-icon-180x180.png differ diff --git a/logos/favicon/favicon-16x16.png b/logos/favicon/favicon-16x16.png new file mode 100644 index 0000000..68882b6 Binary files /dev/null and b/logos/favicon/favicon-16x16.png differ diff --git a/logos/favicon/favicon-32x32.png b/logos/favicon/favicon-32x32.png new file mode 100644 index 0000000..0015580 Binary files /dev/null and b/logos/favicon/favicon-32x32.png differ diff --git a/logos/favicon/favicon-48x48.png b/logos/favicon/favicon-48x48.png new file mode 100644 index 0000000..30b03ea Binary files /dev/null and b/logos/favicon/favicon-48x48.png differ diff --git a/logos/favicon/favicon.ico b/logos/favicon/favicon.ico new file mode 100644 index 0000000..fdaae64 Binary files /dev/null and b/logos/favicon/favicon.ico 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 @@ +Packet Warriors favicon 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", -- cgit v1.2.3