Skip to main content

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.

Just noticed the exact issue. I was arguing with cursor thinking it was wrong, but I got it to show me the raw code and sure enough it’s tailwind!

I can see how this works as a basic vibe coding tool for building generic react / tailwind apps, but for any serious work it’s unusable.

 

 


+1 

I knew there is a lack of context in returned code, but after examining that even variables not returned… damn this makes no sense


Reply