Skip to content

docs(readme): visual refresh — theme-aware SVGs + design system#61

Merged
kmadan merged 2 commits into
mainfrom
chore/visual-refresh
May 14, 2026
Merged

docs(readme): visual refresh — theme-aware SVGs + design system#61
kmadan merged 2 commits into
mainfrom
chore/visual-refresh

Conversation

@kmadan
Copy link
Copy Markdown
Contributor

@kmadan kmadan commented May 14, 2026

Summary

Replace all README marketing diagrams with hand-authored, theme-aware SVGs paired as _light.svg + _dark.svg and embedded via <picture>. GitHub light- and dark-theme readers each see the variant that matches their canvas — the previous PNGs with baked-in colors rendered poorly on dark mode.

Two commits, separable for clean revert:

  1. chore(diagrams) — the asset swap: 10 paired diagram SVGs, hero banner replaces aic.png at the top of all 5 READMEs (en + zh-CN + ja-JP + ko-KR + hi-IN), comparison diagram (diagram 4) deleted in favour of the markdown table that lived next to it, generate_diagrams.py matplotlib generator retired.
  2. docs(diagrams) — the design system: diagrams/STYLE.md (palette, type, shape language, light/dark pattern), standalone logo_{light,dark}.svg for favicons / avatar, og_card_{light,dark}.svg + 68 KB og_card.png for GitHub Social Preview upload, AGENTS.md guidance for future agents, CHANGELOG.md updated.

aicertify/assets/aic.png is intentionally kept — it is embedded inside generated PDF reports, not the README.

Test plan

  • All 14 SVGs validated as well-formed XML
  • No stale diagram*.png or generate_diagrams.py references anywhere in the repo
  • All 5 READMEs use the same <picture> markup pattern
  • OG card renders cleanly when rasterized via Inkscape (1200×630, 68 KB)
  • Manual: review rendered READMEs in GitHub light and dark theme before merging
  • Manual after merge: upload diagrams/og_card.png via Settings → General → Social preview

kmadan added 2 commits May 14, 2026 15:16
Convert all README diagrams from baked-in PNGs to hand-authored,
theme-aware SVGs paired as _light.svg + _dark.svg and embedded via
<picture>, so GitHub light-theme and dark-theme readers each see the
variant that matches their canvas. The top-of-README aic.png logo is
replaced with a hero banner SVG containing the logo, wordmark, tagline,
and framework chips.

Diagram 4 (comparison) is removed across all 5 READMEs — the markdown
comparison table that lived directly under it is now the single source
of truth. The matplotlib generator (generate_diagrams.py, ~1000 lines)
is retired in favour of the hand-authored SVG system.

All 5 READMEs (en, zh-CN, ja-JP, ko-KR, hi-IN) are updated in lockstep.

Resolves the design review finding that PNG diagrams with baked-in
colors render poorly on GitHub's dark theme.
Establish the visual system as a documented, contributable asset rather
than tribal knowledge:

- diagrams/STYLE.md — palette, type, shape language, light/dark pattern,
  naming, and the contribution flow for new diagrams. Hand-authored SVG
  only; no automated generator.
- diagrams/logo_{light,dark}.svg — standalone square mark extracted
  from the hero banner, for favicons, GitHub avatar, sidebar contexts.
- diagrams/og_card_{light,dark}.svg + og_card.png — 1200×630 social
  preview card. PNG must be uploaded via GitHub Settings → General →
  Social preview; it cannot be set automatically.
- AGENTS.md — new "Diagrams and visual assets" section pointing future
  agents at STYLE.md and explicitly retiring the matplotlib generator.
- CHANGELOG.md — Unreleased section documents the visual refresh; the
  v0.7.0 entry is updated to historically-honest prose without the now-
  broken link to the deleted generator script.
@github-actions github-actions Bot added 📝 documentation Improvements or additions to documentation 🚀 enhancement New feature or request labels May 14, 2026
@kmadan kmadan merged commit bdbbba0 into main May 14, 2026
6 checks passed
@kmadan kmadan deleted the chore/visual-refresh branch May 14, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📝 documentation Improvements or additions to documentation 🚀 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant