Skip to content

logo: inline SVGs in comparison page for Argus artifact rendering#318

Merged
drn merged 2 commits into
masterfrom
argus/2026-06-19-123920-logo-inline
Jun 19, 2026
Merged

logo: inline SVGs in comparison page for Argus artifact rendering#318
drn merged 2 commits into
masterfrom
argus/2026-06-19-123920-logo-inline

Conversation

@drn

@drn drn commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Update the /logo skill's comparison-page template to inline SVGs via
/ instead of relative , which breaks when the page
is registered as an Argus artifact (strict CSP, no relative-path
resolution). Render each mark at both well-size and a ~36px avatar size
(dark + light) since small-size legibility is the real selection test.

  • Namespace SVG ids per logo to avoid gradient/filter collisions on inline
  • Note the shadow-tree CSS caveat (style with attributes, not classes)
  • Add optional Argus artifact-register step for mobile review
  • Add Step-5 PNG-export note: sips can't do SVG->PNG; use rsvg-convert,
    resvg, or ImageMagick
  • Propagate the inline template to Step 4b variant pages

Co-Authored-By: Claude noreply@anthropic.com

drn and others added 2 commits June 19, 2026 12:42
The Step-3 comparison template used relative <img src="logo-alt-N.svg">,
which renders locally but breaks when the page is registered as an Argus
artifact (strict CSP, no relative-path resolution) — every mark showed as
a broken image. Inline each SVG once as a hidden <symbol> and render via
<use> at both well-size and a ~36px avatar size (dark + light), so one
page works in both contexts.

- Namespace SVG ids per logo to avoid gradient/filter collisions on inline
- Add optional Argus artifact-register step for mobile review
- Add Step-5 PNG-export note: sips can't do SVG→PNG; use rsvg-convert,
  resvg, or ImageMagick convert -density 384 -background none

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
…ionale

- Step 4b now uses the inlined <symbol>/<use> template (was silently
  reintroducing the <img src> broken-image bug for variant pages)
- Reword width/height rationale: it's for standalone file viewing, not
  <img> rendering (which Step 3 now forbids)
- Namespacing rule: rename both the id AND its url(#id) references
- Note <use> shadow-tree CSS caveat: style with attributes, not classes
- Explain the -density 384 magic number inline

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@drn drn merged commit 03f54d1 into master Jun 19, 2026
@drn drn deleted the argus/2026-06-19-123920-logo-inline branch June 20, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant