development

Icons

How to make new icons so that they are easily editable in Webflow.

Use existing icons when possible

To keep the asset panel under control, try to use existing icons when it's possible. You can search for existing icons in the asset panel under the icons folder or you can copy an icon from another page.

Creating new icons

DISCLAIMER This works best with single color, simple icons. If it's a complex icon using gradients, export it as a PNG.

To create a new icon for the Webflow website, it's best practice to design it in Figma following these specs:

Width: 24px
Height: 24px
Export as: SVG

You can design icons outside of this size range, but it's easiest to at least export them at this size.

Once your icon is designed and exported

You will want to convert it into a data format that Webflow can interact with. Use this tool to convert the SVG into data URI. Follow these steps:

  1. Clear the existing data inside the tool.
  2. Upload your SVG
  3. Change dimensions in the top right to 24px if needed
  4. Press the optimize button
  5. Copy the code
  6. Open Webflow
  7. Add an embed element
  8. Copy and paste the code into the embed
  9. Delete any of the fill=" " and stroke=" " values
  10. Replace the default <svg> opening tag
Replace this highlighted string of text.
<svg aria-hidden="true" role="img" fill='currentColor' viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">

With this one.

That's it!

Now you can style the icon using the CSS styles and can easily change the color of the icon.

Icon Size Classes

Reference the Utility Classes page for a whole list of icon classes.

You can change the sizing of icons by using the icon-1x1 classes.

icon-1x1-small
icon-1x1-medium
icon-1x1-large