This plugin generates SCSS variables and mixins from Figma, it also enables you to create a new branch, commit, and push your changes to GitHub.
- Extracts colors, background colors, padding, margin, font size, line height, font weight, opacity, and more from current page.
- Generates SCSS variables for each color.
- Handles text nodes to extract font colors.
- Outputs the generated SCSS code to the plugin UI.
Use npm run dev
to run the webpack compiler in watch mode.
You will need to use Figma Desktop for this
- Run
npm run dev
ornpm run build
to build the plugin - In Figma, go to Plugins → Development → Import plugin from manifest…
- Select the manifest.json file.
- The plugin will now be available under Plugins → Development.
This is to view the generated CSS in a browser.
- Run
npm run start:server
to start the local server - Open
http://localhost:3000
in your browser
We welcome contributions! Please see our Contributing Guide for details on how to get started.
For detailed documentation about how to use Eggstractor, please see our Documentation.