Skip to content

Not pulling in full border properties from Figma API #111

@dsiglin

Description

@dsiglin

While vibe coding I ran into an issue with a component's border not being coded correctly. The component had a bottom-border but it was being coded with a border all around. I asked Cursor to analyze the issue. It initially thought Figma API didn't provide the data. After some digging here is what it returned.

The issue is that the MCP tool I'm using appears to be returning a limited subset of the Figma API properties. I can see:

What the MCP Tool Currently Returns:
✅ strokes array with color
❌ Missing: strokeWeight, strokeAlign, strokeTopWeight, strokeBottomWeight, etc.

What the Full Figma API Should Provide:
According to your research and the Figma API docs:

  • strokeTopWeight
  • strokeBottomWeight
  • strokeLeftWeight
  • strokeRightWeight
  • strokeWeight (overall)
  • strokeAlign

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions