mirror of
https://github.com/modrinth/code.git
synced 2026-08-24 16:44:51 +00:00
1.1 KiB
1.1 KiB
name, description
| name | description |
|---|---|
| figma-mcp | Convert a Figma design into a Modrinth Vue page or component. Use when a request provides a Figma URL or asks to implement a Figma layout. |
Implement a Figma Design
Read the applicable AGENTS.md files before you edit code.
Read packages/ui/AGENTS.md in full.
- Load the available Figma design-to-code instructions and follow the MCP tool guidance.
- Call
get_design_contextfirst withclientLanguages: "typescript,html,css"andclientFrameworks: "vue". - Treat the result as reference code and adapt it to the Modrinth codebase.
- Map Figma color variables to the applicable
surface-*andtext-*tokens. Do not use aliased Figma names directly. - Reuse applicable components from
packages/ui/src/components/before creating new ones. Also refer tostandards/frontend/COMPONENT_STRUCTURE.md - Read
packages/assets/styles/variables.scsswhen Figma does not supply a required token. - Use exact spacing values from the design.
- Implement the result as a Vue SFC with Tailwind classes and the existing component library.
Run only the checks that the user or the applicable AGENTS.md permits.