BetterMech BGPUBLIC · REV 0.1
Recipe · site

Hero with motion from Figma (Claude + Figma MCP)

Trends: Purposeful micro-interactions + Dark theme by default + Huge headlines, little text. A Better Mechanics concept from the recipe — not the brand's official site.

The start of the site "Hero with motion from Figma (Claude + Figma MCP)"

The proof

WEB · BOOSTWORKERS-FIGMA-DVIZHENIEREV 0.1
axe serious
0
overflow 360
0 px
weight
71 KB
h1
1
lang
bg
date
2026-11-22
checkedaxe (WCAG 2.2 AA) in light and dark theme · 360 px · automatic; manual review pending

(a) The reusable prompt (EN, brand-neutral)

Use the Figma MCP server to take a brand from its brand book to a moving hero section in code.
Load the Figma skills first: figma-use, figma-generate-design, figma-use-motion, figma-design-to-code,
figma-implement-motion.

1. VARIABLES. Create a variable collection "<brand> · brand" from the brand book tokens: every colour as a
   COLOR variable with explicit scopes (backgrounds: FRAME_FILL/SHAPE_FILL, text: TEXT_FILL, accents also
   STROKE_COLOR) and a small spacing scale as FLOAT variables (GAP/WIDTH_HEIGHT). Never leave ALL_SCOPES.
2. HERO. Build a 1440×820 hero frame bound to those variables: a label, a two-line headline, one sentence,
   one primary button made as a COMPONENT and placed as an instance, and one visual idea on the right.
   Auto-layout frames get fills = [] (they default to white). Check fonts with listAvailableFontsAsync.
3. MOTION in Figma Motion (one 3 s timeline): text enters in a stagger (opacity 0→1, translateY 24→0,
   0.6 s ease-out, 0.15–0.2 s apart), the main object ignites (scale 0.4→1) then breathes (1→1.08→1),
   secondary rings fade in and rotate slowly (linear), one small accent blinks. Animate children,
   never the top-level frame.
4. CODE. get_design_context for structure, get_motion_context(recursive) for the motion: use its CSS
   @keyframes values (timing, easing, transform-origin) as they are. Download assets locally — the Figma
   asset URLs expire. Entrances play once on a real page; loops (rotation, breathing) stay infinite.
   Respect prefers-reduced-motion. Make the layout responsive (two columns → one column under 760 px),
   no overflow at 360 px, WCAG 2.2 AA contrast, one h1, lang set, fonts served locally.

DON'T
- Hard-code hex values in Figma when a variable exists; hand-redraw Figma assets in code;
  loop the text entrance forever; scale a fixed 1440 px canvas down on phones instead of real layout.

(b) The brief for Better Mechanics

  • Brand: BoostWorkers (a visibility agency): dark background, pink and violet, Manrope.
  • What it proves: one source of colours goes from the brand book through Figma to the code, and the motion carries over with exact timings, without retyping by hand.
  • Measured in the trial (2026-11-22): a Figma file with 14 variables (8 colours, 6 spacings), a button as a component, 10 animated elements on a 3 s timeline; get_motion_context returned CSS and motion.dev for all 10. Works on Figma's free plan.
  • A deliberate deviation: in Figma the timeline loops; in code the entrance plays once.