This project can pull design context (HTML/CSS) from Figma using the Figma MCP server. Use it to sync the cover, title-paragraph, outro, or any frame from your Figma file into the carousel templates.
- Figma MCP enabled in Cursor (the "Figma" MCP server).
- A link to your Figma design – either:
- The whole file:
https://figma.com/design/YOUR_FILE_KEY/YourFileName - A specific frame (recommended): right‑click the frame in Figma → Copy link to selection. The URL will look like:
https://figma.com/design/YOUR_FILE_KEY/YourFileName?node-id=123-456
- The whole file:
- In Figma, select the frame you want to turn into a carousel frame (e.g. the cover).
- Copy the link (Share → Copy link, or right‑click frame → Copy link to selection).
- In Cursor, ask the agent to update the [cover / title-paragraph / outro] from Figma and paste the link.
The agent will:
- Call the Figma MCP get_design_context with your
fileKeyandnodeId(from the URL). - Request plain HTML + CSS so the output fits this stack.
- Map the result into
templates/frames/<type>.htmlandtemplates/css/frames/<type>.css(one frame type at a time).
From a URL like:
https://www.figma.com/design/Abc12XyZ/Carousel-Frames?node-id=42-123
we use:
- fileKey:
Abc12XyZ - nodeId:
42:123(replace-with:innode-id)
- One frame per call – Share a link to a single frame (e.g. the cover) so the MCP returns that frame only.
- Name frames clearly – Names like "cover", "title-paragraph-1", "outro" in Figma make it easier to match them to our frame types.
- Our canvas is 630×1200 (vertical) – If your Figma frame is another size, the agent will scale or adapt the layout to fit.
| Frame type | Figma link |
|---|---|
| title-paragraph | DataTalks.Club event banners – node 3389-164 |
| outro | DataTalks.Club event banners – node 3389-186 |
Use these links when updating a frame from Figma (e.g. “update title-paragraph from this Figma”) or when adding new frame types from the same file.
With the Figma desktop app and the desktop MCP server, you can select a frame in Figma and ask the agent to “generate my selection as plain HTML + CSS for the carousel cover” without pasting a URL. The agent will use the current selection.