mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
1014 B
1014 B
Textured Card asset
Card variant="textured" renders a cheap CSS nine-slice PNG at runtime. This
folder preserves the procedural SVG recipe used to generate that asset.
Regenerate
From desktop/:
pnpm exec node scripts/texture-card/generate-card-texture.mjs
This overwrites:
src/shared/ui/assets/card-texture.png
The generator renders the archived SVG filter in headless Chromium at 2× DPR, then captures a transparent PNG. It is a development tool only and is not included in the production bundle.
After changing texture parameters:
- Regenerate the asset.
- Compare the onboarding private-key card at its normal size.
- Check a tall/narrow textured Card and the smallest supported shape.
- Check both Retina and standard-density displays.
- Update the slice/outset values in
card-texture.cssonly if the generated geometry changed.
The runtime component API remains Card variant="textured"; feature code owns
padding, dimensions, typography, and placement.