mirror of
https://github.com/D-Modem/brand.git
synced 2026-11-28 17:58:05 -08:00
tools/gen.py draws a 1280x320 banner per repo (banner/<repo>.svg) in the social previews' style, plus banner/suite for the org; render.js exports 1x and 2x PNGs. Docs note where repos keep their copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRR7XmhWoFbzJFFFqde
1.5 KiB
1.5 KiB
Assets: previews, uploading and regenerating
Previews
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
README banners
banner/<repo>.svg is the 1280×320 header at the top of each repository's
README, rendered to banner/<repo>.png and banner/<repo>@2x.png.
banner/suite.png is the organization's own, for the profile and website.
Each repository keeps a copy of its @2x PNG at .github/banner.png and
shows it above its title:
<img src=".github/banner.png" alt="D-Modem/<repo>: <tagline>" width="100%">
Uploading to GitHub
GitHub has no API for these, so they are uploaded by hand:
- Org avatar: the organization's Settings → Profile → Profile picture →
upload
avatar/org-avatar@2x.png. - Social previews: each repository's Settings → General → Social preview →
Edit → Upload an image →
social/<repo>.png.
Regenerating
The SVGs are generated by tools/gen.py (colors, taglines and tags are at
the top of it) and rendered to PNG by tools/render.js with Playwright's
Chromium. Sauce Code Pro (SauceCodePro Nerd Font Mono) must be installed for the text to render as
intended; the SVGs name it as their font, so viewers without it fall back to
another monospace font.
python3 tools/gen.py
python3 tools/app_icon.py
node tools/render.js







