figma-mcp-free
Copilot instructions17 starsChanged 9 months agoMITView on GitHub
These rules define the recommended workflow when implementing Figma designs using the Figma MCP Free server. The bridge extracts full typography information: - fontFamily: The font family name - fontWeight: CSS numeric weight (100-900), mapped from Figma style names - fontStyle: "italic" or "oblique" when applicable - fontSize: Size in pixels - lineHeight: In px or % (omitted for AUTO) - letterSpacing: In px or % (omitted when 0) - textCase: CSS values (uppercase, lowercase, capitalize, small-caps) - textDecoration: CSS…
The file
We split this copilot-instructions.md into the rules it gives an agent
12 rules. About 0 are common, 5 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Run get_design_context first to fetch the structured representation for the exact node(s).
- Very specific: line 8
If the response is too large or truncated, run get_metadata to get the high-level node map with layer IDs, names, types, positions, and …
- Very specific: line 9
Run get_screenshot for a visual reference of the node being implemented.
- Very specific: line 10
Run get_variable_defs to retrieve design tokens (colors, spacing, typography variables).
- Distinctive: line 11
Only after you have design context, screenshot, and token info, start implementation.
- Distinctive: line 17
Treat the Figma MCP output as a representation of design structure and behavior, not as final code.
- Distinctive: line 19
Use the project's color system, typography scale, and spacing tokens consistently.
- Very specific: line 39
Always use colon-separated format: 4029:12345
- Distinctive: line 40
Never use hyphens in node IDs
- Very specific: line 41
When extracting from Figma URLs, convert node-id=1-2 to 1:2
- Distinctive: line 69
When nodes use Figma variables (design tokens), the output includes:
- Very specific: line 72
Use get_variable_defs to resolve variable IDs to names and values
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Figma MCP Free Rules
These rules define the recommended workflow when implementing Figma designs using the Figma MCP Free server.
Required Flow (do not skip)
- Run
get_design_contextfirst to fetch the structured representation for the exact node(s). - If the response is too large or truncated, run
get_metadatato get the high-level node map with layer IDs, names, types, positions, and sizes. Then re-fetch only the required node(s) withget_design_context. - Run
get_screenshotfor a visual reference of the node being implemented. - Run
get_variable_defsto retrieve design tokens (colors, spacing, typography variables). - Only after you have design context, screenshot, and token info, start implementation.
- Translate the output into this project's conventions, styles, and framework. Reuse existing color tokens, components, and typography.
- Validate against Figma for 1:1 look and behavior before marking complete.
Implementation Rules
- Treat the Figma MCP output as a representation of design structure and behavior, not as final code.
- Reuse existing components (buttons, inputs, typography, icon wrappers) instead of duplicating functionality.
- Use the project's color system, typography scale, and spacing tokens consistently.
- Respect existing routing, state management, and data-fetch patterns already adopted in the repo.
- Strive for 1:1 visual parity with the Figma design.
- Validate the final UI against the Figma screenshot for both look and behavior.
Tool Usage Guide
| Tool | When to Use |
get_metadata | First, to understand structure of large designs. Returns lightweight node tree with IDs, types, positions, sizes. |
get_design_context | Primary tool. Returns full layout, typography, fills, effects, components for selected nodes. |
get_screenshot | Always. Provides visual reference for implementation validation. PNG preserves transparency. |
get_variable_defs | To extract design tokens (colors, spacing, typography variables). |
get_styles | To get all local text/paint/effect styles defined in the document. |
get_node | To fetch a specific node by ID with full properties. |
get_selection | To see what's currently selected in Figma. |
create_design_system_rules | Once per project. Generates custom rules tailored to your stack. |
Node ID Format
- Always use colon-separated format:
4029:12345 - Never use hyphens in node IDs
- When extracting from Figma URLs, convert
node-id=1-2to1:2
Typography Data
The bridge extracts full typography information:
fontFamily: The font family namefontWeight: CSS numeric weight (100-900), mapped from Figma style namesfontStyle: "italic" or "oblique" when applicablefontSize: Size in pixelslineHeight: In px or % (omitted for AUTO)letterSpacing: In px or % (omitted when 0)textCase: CSS values (uppercase, lowercase, capitalize, small-caps)textDecoration: CSS values (underline, line-through)textSegments: When text has mixed styles, individual segments with their own style properties
Layout Data
Auto-layout properties map to CSS flexbox:
mode: "row" or "column" (maps to flex-direction)justifyContent: flex-start, flex-end, center, space-betweenalignItems: flex-start, flex-end, center, baselinegap: Gap between items in pxpadding: CSS shorthand paddingwrap: Whether flex-wrap is enabledsizing.horizontal/sizing.vertical: "fixed", "fill" (flex-grow), or "hug" (fit-content)
Variable Bindings
When nodes use Figma variables (design tokens), the output includes:
boundVariables: Maps property names to variable IDsfills[].variableId: Variable ID bound to a specific fill color- Use
get_variable_defsto resolve variable IDs to names and values
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

