Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Generates one or more icon sets from Sketch files for multiple platforms (web, iOS, Android) and provides a local web application for testing the output. (see the demo page for an example)
Fabricons outputs:
./install.sh
to install dependencies.npm start
to start the local server and watch for changes.In the .sketch files in /src/sketch
there are 1920x1920 artboards for each icon set variant. The artboard name is the name of the icon (close, add, etc.) with a prefix of the variant, like bold/close
and light/close
.
When you save in Sketch with the npm start
script running, the artboards will be exported in SVG to the ./generated
directory, or according to the configuration, automatically via gulp-sketch
, creating directories for each variant based on the artboard names.
After exporting, the build will take the SVG files generated for each variant and resize, minify, and package them for various platforms (web, iOS, Android) as individual SVG files, SVG sprites, pdf documents and icon fonts. You can see the result in the /generated
directory.
Start with the Sketch template provided. Open the template file and then save it as a template (File > Save as Template...). The next time you want to make an icon it will be available in your template list (File > New From Template) in the Sketch app.
Save new icon files in the /src/sketch
directory.
Run npm start
to start the local server and watch for changes to the sketch files and generate the various formats.
Use dashes in the name of the .sketch files (e.g calendar-month
). Use the same name for artboards, but prefix with the variant, like bold/calendar-month
and light/calendar-month
.
Draw your icons on the 1920 x 1920 artboards that are set up for you in the Sketch template.
Before you flatten shapes or vectorize strokes as described below, make a hidden copy of the original paths off to the side so that you can more easily come back and make changes later.
Export strokes to vector (Layer > Paths > Vectorize Stroke).
Flatten your shapes (Layer > Paths > Flatten).
Don’t use borders on vectors, especially not inside/outside borders which aren’t supported in SVG.
Make sure none of the paths go outside of the artboard. If so, the glyph in the icon font will be misaligned. Draw inside the lines.
Fill the space edge-to-edge as much as possible. The build process will add margins as needed.
There's a small web app for testing all the icons. You can see all the icons at once, in different sizes and formats.
If you ran npm start
, you're already running the web app. Just visit localhost:3002.
FAQs
Generate icon sets for multiple platforms from Sketch files
The npm package fabricons receives a total of 1 weekly downloads. As such, fabricons popularity was classified as not popular.
We found that fabricons 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.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.