
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
figma-icons-sync
Advanced tools
Keep your local icons in sync with the Figma files of your design team
A Node.js tool to keep your local icons in sync with your design team's Figma files and optimize them using SVGo.
CLI mode is also available.
Install it via npm:
npm install -g figma-icons-sync
Every time you run the tool:
No special frame structure required — feel free to use Auto Layout, nested frames, groups, descriptions and memes. Just make sure the icons are components (individual components or component sets).
The tool will notify you if:
You’ll need a Figma personal access token for a user who has access to the icons.
For Professional or higher plans, you can add a dummy read-only user to the project and generate a token for them.
To use the module, import it in your project:
import { sync } from 'figma-icons-sync';
Or if you're using require
:
const { sync } = require('figma-icons-sync');
Then call sync
, passing in the URL of the Figma frame with the icons:
const options = {
apiToken: '%Insert your token here%',
};
// Copy the frame link from Figma (Right-click → Copy Link) and pass it as the first argument:
sync(
'https://www.figma.com/file/71UBnODS8DUi06bjMlCH/UI-Kit?type=design&node-id=4909-11807',
options
)
.catch(error => console.log(error))
.then(response => {
console.log(response);
});
To force a re-fetch of all icons, pass true
as the third argument:
Note: This will overwrite any local files if there's a remote icon with the same name.
sync(
'https://www.figma.com/file/71UBnODS8DUi06bjMlCH/UI-Kit?type=design&node-id=4909-11807',
options,
true
)
.catch(error => console.log(error))
.then(response => {
console.log(response);
});
You can also customize the options for your needs:
const options = {
// Figma token, required to work
apiToken: '%Insert your token here%',
// Folder to save icons, default: ./icons/
output: './icons/',
// Ignore subfolders in icon names. When set to true, an icon like «socials/facebook»
// will be renamed to «socials_facebook» instead of being placed in a «socials» subfolder.
// Default: false
ignoreSubfolders: true,
// Show output in the console as in CLI mode (default: false)
enableConsoleOutput: true,
// Settings for removing fill and stroke in monochrome icons
monochrome: {
// Icons will be considered monochrome if filled with one of the matching colors (remove leading #).
// Default: ['black', '000000']
colors: ['FFFFFF'],
// Remove the fill color attribute
removeFill: true,
// Remove the stroke color attribute
removeStroke: true,
},
// SVGo configuration. See documentation here:
// https://github.com/svg/svgo/tree/main#configuration
svgoConfig: {
multipass: true, // Run optimization multiple times
}
};
Run the tool from the command line with default settings:
icons-sync -t FIGMA_TOKEN "https://www.figma.com/file/..."
To specify a custom output folder (default is ./icons/
):
icons-sync -t FIGMA_TOKEN -o "./public/icons/" "https://www.figma.com/file/..."
To use a custom SVGo config:
icons-sync -t FIGMA_TOKEN --svgo-conf "svgoconfig.json" "https://www.figma.com/file/..."
For more options and advanced usage:
icons-sync --help
Found a bug or have an idea? Open an issue or feel free to submit a PR!
FAQs
Keep your local icons in sync with the Figma files of your design team
The npm package figma-icons-sync receives a total of 33 weekly downloads. As such, figma-icons-sync popularity was classified as not popular.
We found that figma-icons-sync demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.