Files
ai-coding-workflow-labs/bmad/_bmad-output/implementation-artifacts/5-2-dynamic-tile-font-sizing.md
T
tiennm99 c13a529898 feat: add tile glow, dynamic font sizing, and GitHub Pages deployment (Epic 5, Stories 5.1-5.3)
- Add box-shadow glow effect on tiles with value 128+
- Dynamic font sizing already implemented in Epic 4 responsive work (Story 5.2 = no-op)
- Set Vite base path to /try-bmad/ for GitHub Pages
- Add GitHub Actions workflow for automated deploy on push to main
- Production bundle 22.4KB gzipped (under 50KB target)
2026-04-14 09:43:14 +07:00

1.8 KiB

Story 5.2: Dynamic Tile Font Sizing

Status: done

Story

As a player, I want tile numbers to be clearly readable at any value, so that I can always see tile values regardless of digit count.

Acceptance Criteria

  1. Given a tile with a 1-digit value (2, 4, 8), when it renders, then the font size is 55px bold (desktop) / 30px bold (mobile)
  2. Given a tile with a 2-digit value (16, 32, 64), when it renders, then the font size is 45px bold (desktop) / 25px bold (mobile)
  3. Given a tile with a 3-digit value (128, 256, 512), when it renders, then the font size is 35px bold (desktop) / 20px bold (mobile)
  4. Given a tile with a 4-digit value (1024, 2048, 4096, 8192), when it renders, then the font size is 25px bold (desktop) / 14px bold (mobile)
  5. Given a tile with a 5+ digit value (16384, 32768, 65536), when it renders, then the font size is 15px bold (desktop) / proportionally scaled (mobile)

Tasks / Subtasks

  • Task 1: Already implemented in Story 4.3 (Responsive Layout)
    • Tile.svelte derives digitCount from String(value).length
    • Maps to CSS variables var(--tile-font-1) through var(--tile-font-5)
    • Desktop: 55/45/35/25/15px; Mobile: 30/25/20/14/10px via @media (max-width: 520px) override in app.css

Dev Notes

This story's requirements were fully implemented as part of Story 4.3 (Responsive Layout) since dynamic font sizing was a necessary component of the responsive breakpoint implementation. All ACs are satisfied by the existing code.

File List

  • No additional changes needed — implemented in Story 4.3 commit

Dev Agent Record

Agent Model Used

Claude Opus 4.6 (1M context)

Completion Notes List

  • All ACs already satisfied by Story 4.3 implementation
  • Tile.svelte has digit-count-based font sizing with responsive CSS variables