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!