
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
figma-loader
Advanced tools
Figma to SVG URL loader module for webpack.
yarn add --dev figma-loader
npm install --save-dev figma-loader
module.exports = {
...
module: {
rules: [{
test: /\.(figma)/,
use: [{
loader: 'figma-loader',
options: { accessToken: 'FIGMA-PERSONAL-ACCESS-TOKEN' }
}]
}]
}
}
*.figma file containing the Figma File ID, e.g. eMV7Sxpjs7y6HhnQyC0roRHere's an example of a figma document layout:
document 'icons'
page 'Page 1'
frame 'star'
frame 'fish'
frame 'facebook'
frame 'twitter'
You can use the relative url to your figma document. Query parameter frame specified the target frame, and optional color tints the image.
.icon-star { background-image: url(./icons.figma?frame=star); }
.icon-fish { background-image: url(./icons.figma?frame=fish); }
.icon-facebook { background-image: url(./icons.figma?frame=facebook); }
.icon-twitter { background-image: url(./icons.figma?frame=twitter&color=FF0000); }
Import the 'icon' function, which generates a base64-encoded data-uri.
// require your figma document
const { icon } = require('./icons.figma')
// generate star icon
const starIcon = icon('star')
// generate red star icon, by replacing 'black' color to '#FF0000'
const starIconRed = icon('star', '#FF0000')
FAQs
Figma to SVG URL loader module for webpack
We found that figma-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.