Skip to main content
Question

Extract styles from component variants


Kjetil_Haaheim

Hi there!

I am extracting elements and styles from the Figma file, and now I have come to implementing variants and states (might be related to topic: Get VariantProperties for Component)

Plugins in Figma do this quite easily, as they list style overrides which is accessible by the plugin api:

ImgBB

(Any reason I can`t embed screenshots?)

Thank you for any input!

Kjetil_Haaheim

Might as well close this topic, judging by the number of similar topics with no replies.


Gleb
  • Power Member
  • March 23, 2022

I haven’t fully understood your question but maybe you need to do something like this:

Get components → get file → find component in the file and read its properties


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