mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
655f11345e
The shadow sampler selected elements by class-name substring ([class*='card'], …). Sites with obfuscated / utility class names (Stripe, Vercel) carry their card elevation on plain divs that never matched, so `shadows: []` and the renderer faked a heavy off-brand drop shadow. Now sweep a broad structural set of visible, card-sized boxes and collect their real computed box-shadow; the shadow recurring on the most boxes is the brand's elevation signature. Skips tiny (icon/inline) and full-bleed page wrappers. Verified by live re-capture: Stripe [] -> 5 shadows (incl. the signature rgba(50,50,93,0.12) 0 16px 32px), Vercel [] -> 3. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>