(e.g rectangle% w or rectangle% w x% h) 5. (e.g big * button)Ĥ) Add the length and width of the layer: Enter “% W” and “% H” to add the length and width of the layer. (e.g item% N)ģ) Retain and move the original layer name: Enter a new layer name, use the “*” instead the original layer name. “% N” is the number with the reverse order. (e.g: + button)Ģ) Name the layer order: Enter “% N” to name the layer order with number suffix. What we only need to do is only set the rules and click OK.ġ) Extend the layer name: Enter “+” and the text you want to add. The data % W% H are variables, and they will be automatically filled according to the image size. Step 2: Select Plugins> Rename it, naming the rules in the Pop-up window. vue files and create icon components.Step 1: Select the elements need to be named in batches If you're working on a Vue project, use the VUE option to export the icons as. If you're working on a React project, use the JSX option to export the icons as JSX files and create icon components. The JSON files exported using Nucleo can be imported back by dragging them over the app.
#EXPORT TO ICONJAR SKETCH PLUGIN CODE#
They include the SVG code of the icons and additional metadata like set names and search tags. JSON files are the most versatile format if you need advanced icon integrations in your projects. Change it in the info panel to modify the class name. The name of the icon is also the class name. ? If you're exporting a Nucleo project as icon font, you can grab the code of each icon directly via the icon context menu. The advanced options include adding metadata, editing metrics and creating Base64 encoded fonts. Nucleo generates the font files along with the CSS and demo files to copy the icons. The icon font format is the most popular way to integrate icons in web projects. Optionally, you can set a custom export size.
#EXPORT TO ICONJAR SKETCH PLUGIN PDF#
The PDF option generates a folder containing all the icons as separate PDF files. The advanced options allow you to set custom resolutions or to use the Android/iOS presets. Use the PNG option if you need to export a raster version of your icons. Learn more about SVG symbols in our guide on integrating icon systems. ? If you're exporting a Nucleo project as SVG symbol, you can grab the code of each icon directly via the icon context menu. They combine the simplicity of icon fonts with the advanced customization options of inline SVG code. Think of SVG symbols as a great (better) alternative to icon fonts. The SVG option generates an SVG file containing all the icons, along with the CSS and demo files to manage them. This option will automatically create a clone of each icon, with the newly selected color. Optionally, you can set a secondary color. You can then import the image sprite in your web project, and use the CSS file generated by Nucleo to target specific icons. The SVG Sprite option generates an image sprite, which is a single SVG file containing all icons distributed in a grid layout.
![export to iconjar sketch plugin export to iconjar sketch plugin](https://miro.medium.com/max/1200/1*q2qJ8DNisucOCcADibJJ1g.png)
![export to iconjar sketch plugin export to iconjar sketch plugin](https://miro.medium.com/max/3200/1*mUjcXTrkSogsJEAEgA44Mg.png)
⚠️ Important: to preserve Unicode and CSS class values, add the icons to a project and export the project as icon font / SVG sprite / SVG.
![export to iconjar sketch plugin export to iconjar sketch plugin](https://cssauthor.com/wp-content/uploads/2015/04/Sketch-Icons-bundle.jpg)
Select a set/project and press Cmd E ( Ctrl E on Windows).Select one or multiple icons and press Cmd E ( Ctrl E on Windows).Select one or multiple icons and click the 'Export' button in the bottom-right of the app.To launch the Icon Exporter, you can either: Optionally, you can check the option to remove inline colors and stroke-width values in the app settings. Right-click on an icon to display the context menu, where you'll find different options to copy the icon code.
![export to iconjar sketch plugin export to iconjar sketch plugin](https://d33wubrfki0l68.cloudfront.net/a241fc0682edce93f1d6fa1a2e4f34b177744b81/374e1/static/56d3754feb95f434b367dd88a64c9a1f/39610/iconjar-2.6.jpg)
You can change the export format (e.g., from SVG to PNG) in the app settings. The simplest way to export an icon is to drag it from Nucleo into your favorite application.