Back to Devoured - November 23, 2026
DEVOURED
On Drawing Icons

On Drawing Icons

Design Pierre
Pierre rebuilt their entire 1,200-icon library, integrating custom Figma plugins and a strict SVG-to-React pipeline to ensure cross-platform consistency.
What: The library redesign includes three sizes (12px, 16px, 24px) with specific stroke weights. Custom Figma plugins (Layer Swap, Taper Stroke) automate the workflow, which generates typed React components from canonical SVG files rather than relying on direct runtime composition.
Why it matters: This highlights the trade-off between architectural elegance and performance; the author realized that runtime composition of icons was too heavy, opting instead for a deterministic build-time pipeline.
Takeaway: When building design systems, optimize for a single source of truth (SVG files) and use build-time generation to keep React component bundles lightweight.
Deep dive
  • Pipeline Architecture: Moved from design-only to a three-tier system: Figma (Source), Canonical SVGs (Contract), and React/Assets (Generated Targets).
  • Figma Workflow: Used custom plugins to automate variant replacement and optical correction for stroke junctions.
  • Performance Optimization: Abandoned runtime icon composition due to bundle size bloat (2.81KB per badged icon vs 1.36KB individually).
  • QA Strategy: Used a bespoke static HTML preview tool to validate visual consistency at scale.
  • Versioning: Utilized Figma properties to generate TypeScript types (12 | 16 | 24) for strict prop checking.
Decoder
  • ViewBox: An SVG attribute that defines the coordinate system and aspect ratio for the rendered image.
  • Tree-shaking: A build-time optimization that removes unused code from a bundle.
  • Duotone: A style consisting of two contrasting colors applied to a graphic.
  • Optical Weight: The perceived thickness or visual impact of a shape, which often requires manual adjustment distinct from geometric measurements.
Original article

Full article content is not available for inline reading.

Read the original article →

Explore all 68 articles in today's digest

Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi