Why Vectorr for Figma Assets?
Post-Export Optimization: Clean up Figma's verbose SVG output—remove editor metadata, collapse groups, reduce decimal precision.
Batch Processing: Export an entire icon set, optimize all files in one pass, and verify they still render correctly.
Web-Ready Output: Inline critical CSS, remove Figma's default viewBox padding, and ensure assets work in all browsers.
Figma Export Checklist
- Outline Text: Convert all text layers to outlines before export (Cmd+Shift+O). Fonts render differently across platforms.
- Flatten Effects: Shadows, blurs, and blend modes don't export reliably. Use "Flatten" to rasterize them into the base layer.
- Simplify Paths: Reduce node count with the "Simplify" command (Cmd+Shift+P) to shrink file size.
- Name Layers: Export names come from layer names. Use descriptive, kebab-case names (icon-home, button-primary).
- Set Export Scale: @1x for web SVG, @2x and @3x for mobile PNG, 300 DPI for print PDF.
SVG Export Settings
Figma's SVG export dialog has three critical settings
- Include "id" attribute: Disable unless you're animating with JavaScript. IDs add bulk and create conflicts when multiple instances load.
- Outline text: Always enable. Keeps text editable in Figma but exports as paths.
- Simplify stroke: Enable for icons, disable for illustrations. Converts strokes to fills, which reduces nodes but loses stroke-width editability.
PNG Export for High-DPI Screens
Mobile apps need @2x and @3x assets. Export at 2× and 3× scale in Figma, then name files with suffixes: `icon-home@2x.png`, `icon-home@3x.png`. iOS and Android asset catalogs read these suffixes automatically.
For web, export @2x PNG and serve via `srcset`: `<img src="icon.png" srcset="icon@2x.png 2x">`. This gives Retina displays crisp rendering without forcing all users to download large files.
PDF Export for Print
Figma's PDF export is RGB, not CMYK. For print-ready files, export as SVG, open in Illustrator, convert to CMYK, and add bleed. Or export a high-res PNG (600 DPI) and embed it in a print-ready PDF with proper crop marks.
Common Export Failures
Text Renders as Boxes: Font not available on the target platform. Outline text before export, or embed the font (increases file size).
Effects Disappear: Shadow or blur didn't export. Flatten the effect into the base layer before export.
Mask Clips Unexpectedly: Figma's masks use CSS clip-path, which older browsers don't support. Flatten masked layers into a single shape.
Colors Look Different: Figma uses display P3 color space; most web browsers use sRGB. Export with "Convert to sRGB" enabled.
Icon Sets and Batch Export
For icon libraries, use Figma's batch export: select all frames, set export settings once, and export all at once. Name each frame consistently (icon-name-variant), and Figma will name files accordingly. After export, use Vectorr's batch optimizer to reduce file size across the entire set without manual tweaking.
Responsive SVG Sizing
Figma exports SVG with fixed width/height attributes. For responsive web SVG, remove those attributes and rely on viewBox only. The SVG will scale to fit its container. Or set `width="100%" height="auto"` in the exported file.
Troubleshooting
If exported SVG looks different from Figma preview, check for blend modes (Multiply, Overlay) that CSS doesn't support well—flatten them. If file size is huge, check for embedded raster images—export those separately as PNG. If edges look pixelated, increase export scale (2× or 4×), then scale down in CSS with image-rendering: crisp-edges.