Skip to content

fix(examples): rewrite 8 broken 0.2.0 pages to button.html template#22

Merged
whykusanagi merged 2 commits into
mainfrom
fix/example-pages-theme-drift
May 18, 2026
Merged

fix(examples): rewrite 8 broken 0.2.0 pages to button.html template#22
whykusanagi merged 2 commits into
mainfrom
fix/example-pages-theme-drift

Conversation

@whykusanagi
Copy link
Copy Markdown
Owner

Summary

Pre-publish fix. Black-on-black text and missing/broken layout on 8 new 0.2.0 example pages at corrupted.whykusanagi.xyz.

Root causes found:

  • body { background: #000 } hard override instead of var(--bg) — dark text blended into pure black
  • Page content sat directly in <body> with raw padding instead of inside <div class="container">, breaking spacing after the sticky navbar
  • examples/animation-blocks/index.html and examples/advanced/corruption-manager.html had orphaned .page-header / .back-link elements floating outside any container
  • Components pages (showcase, utilities, png-export, websocket-manager) used .demo-section / h2 instead of .example-group / h3

Fix applied to all 8:

  • Canonical <div class="container"> wrapping all page content
  • <h1> + description paragraph at top of container
  • <section class="example-group"> for each demo block with <h3> headers
  • Canonical CSS vars only — no --bg-primary, no --text-primary
  • var(--corrupted-*) retained with #hex fallback where needed for effect styling
  • All JavaScript imports + demo instantiation code preserved verbatim

Test plan

  • Open each of the 8 pages locally — title, navbar, and demo content all visible
  • Click "Home" in navbar → resolves correctly
  • Deploy preview at corrupted.whykusanagi.xyz confirms pages readable
  • button.html and form.html untouched (verified via git diff)

🤖 Generated with Claude Code

whykusanagi and others added 2 commits May 18, 2026 01:55
8 example pages (animation-blocks/index, advanced/{crt-effects,corruption-
manager,particles-background}, components/{showcase,utilities,png-export,
websocket-manager}) used CSS variables that don't exist in the theme:
- var(--bg-primary) → var(--bg)
- var(--text-primary) → var(--text)
- var(--corrupted-cyan/purple/magenta/magenta2/red/green) → fallback hex added

Result was black-on-black unreadable text in dark-mode browsers.

Also missing the standard <nav class="navbar"> block found on every
other example page. Added navbar with correct ../ relative paths for
each page's directory depth. Navbar uses position:sticky so no
padding-top adjustment required.

159/159 tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…plate

User reported black-on-black unreadable text and missing top nav on
corrupted.whykusanagi.xyz/examples/animation-blocks/ and all 7 other
0.2.0 example pages. Root causes:

1. Custom <style> blocks used body {background:#000} hard override instead
   of var(--bg), so dark-mode text blended into pure black.
2. Page content sat directly in <body> with padding instead of inside
   <div class="container">, breaking layout after the sticky navbar.
3. animation-blocks and corruption-manager had orphaned .page-header /
   .back-link elements floating outside any container.
4. Components pages used .demo-section/.h2 instead of .example-group/.h3.

Fix: rewrite each of the 8 pages to follow examples/button.html template:
- Canonical <nav class="navbar"> (already present on all, now correct path)
- <div class="container"> wrapping all page content
- <h1> + description paragraph at top of container
- <section class="example-group"> for each demo block
- Canonical CSS vars only: var(--bg), var(--glass), var(--text-secondary),
  var(--accent), var(--border), var(--spacing-*), var(--radius-*)
- var(--corrupted-*) retained with fallback hex where needed for effect styling
- All JavaScript imports + demo instantiation code preserved verbatim

Files changed:
- examples/animation-blocks/index.html
- examples/advanced/crt-effects.html
- examples/advanced/corruption-manager.html
- examples/advanced/particles-background.html
- examples/components/showcase.html
- examples/components/utilities.html
- examples/components/png-export.html
- examples/components/websocket-manager.html

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@whykusanagi whykusanagi merged commit adb2217 into main May 18, 2026
1 of 2 checks passed
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