agentleFS
jhonatan-oliveiradevjhonatan-oliveiradev/agent-skills/skills/translating-figma-to-nextjs/SKILL.md

translating-figma-to-nextjs

Skill1 starsChanged 3 months agoMITView on GitHub

Use when converting Figma designs or design-system components into production Next.js and React code while preserving fidelity, reuse, responsiveness, and maintainable component boundaries.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is 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.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the Figma hierarchy before coding: frames, auto-layout behavior, constraints, variants, variables, typography, grids, and component …

    line 9
  2. Very specific:

    Use Next.js image/font facilities when they fit the repository.

    line 12
  3. Distinctive:

    Keep decorative layers separate from semantic content so responsiveness does not depend on fragile DOM ordering.

    line 13
  4. Distinctive:

    Avoid exporting raw Figma CSS as production architecture.

    line 26
  5. Distinctive:

    Avoid unnecessary absolute positioning.

    line 27
  6. Distinctive:

    If an icon or asset is missing, source a legitimate equivalent rather than redrawing a brand mark inaccurately.

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Translating Figma to Next.js

Workflow

  1. Read the Figma hierarchy before coding: frames, auto-layout behavior, constraints, variants, variables, typography, grids, and component instances.
  2. Map design primitives to existing code primitives before inventing new ones.
  3. Infer responsive intent from constraints and neighboring frames; do not encode one screenshot as absolute pixels everywhere.
  4. Use Next.js image/font facilities when they fit the repository.
  5. Keep decorative layers separate from semantic content so responsiveness does not depend on fragile DOM ordering.
  6. Implement reusable variants only where Figma shows a real component family or the product reuses the pattern.
  7. Render and compare against Figma at the target frame dimensions.

Fidelity priorities

  1. geometry;
  2. typography;
  3. image crop;
  4. color and surface treatment;
  5. interaction and motion.

Guardrails

  • Existing app architecture wins over generated Figma structure.
  • Avoid exporting raw Figma CSS as production architecture.
  • Avoid unnecessary absolute positioning.
  • Preserve accessible names when splitting or animating text.
  • If an icon or asset is missing, source a legitimate equivalent rather than redrawing a brand mark inaccurately.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.