Skip to main content
Question

Figma MCP get_code does not provide variables in the structure


Charlie Chao

Hi all,

I’ve been using the Figma MCP server and found that get_code outputs Tailwind classes without any reference to Figma variables. For example, if I have 2 boxes that use two different semantic variables with the same hex value, Figma only provides the raw value in the generated React components.

My Figma frame setup
What get_code returns in Cursor

Unfortunately, this means the model has to guess which token to use from the codebase based on the raw value provided. Here is what Cursor tells me:

 

Do you know if this is intended? Am I missing something that can bridge that gap accurately?

Thanks.

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings