This is a Figma Plugin that allows you to export a scss file with the styles of certain nodes, very useful for design systems and ui-kit.
You can easily setup the identifiers to retrieve the right nodes to be exportedas sass variables.
This plugin is open source, you can find more information at https://github.com/caffeinalab/figma-uikit-to-scss