html-to-svg

Trace HTML/CSS renderings into scalable SVG paths using Puppeteer and potrace.

1|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/JDerekLomas/claude-code-skills --skill html-to-svg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: html-to-svg
Source: https://github.com/JDerekLomas/claude-code-skills/tree/main/skills/html-to-svg
Command: npx skills add https://github.com/JDerekLomas/claude-code-skills --skill html-to-svg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convert HTML/CSS renderings into true vector paths, producing fonts-independent SVGs suitable for logos and UI components.

Core Features & Use Cases

  • High-fidelity vectorization of HTML/CSS renderings using Puppeteer and potrace
  • Font-free outlines for logos, icons, and components
  • End-to-end workflow from web render to scalable SVG

Quick Start

Provide the HTML/CSS snippet and the selector for the target element to generate an outlined SVG.

Frequently Asked Questions about html-to-svg

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert HTML and CSS into an SVG vector graphic?

You can convert HTML/CSS renderings into scalable vector graphics by providing your code snippet and the target element selector. The Skill renders the output with Puppeteer and traces it into SVG paths using potrace.

Can I create a font-free SVG logo from a web UI component?

Yes, you can create a font-free SVG logo from a web UI component by tracing the rendered HTML/CSS output. This process converts visual renderings into true vector paths, ensuring the final SVG remains scalable without requiring specific font installations.

What dependencies do I need to vectorize HTML into SVG paths?

Vectorizing HTML into SVG paths requires Puppeteer for rendering the web code, sharp for image processing, ImageMagick for image conversion, and potrace for tracing the rasterized output into final scalable vector paths.

Does converting HTML to SVG with Puppeteer preserve the original CSS styling?

Converting HTML to SVG with Puppeteer captures the rendered visual output rather than preserving the underlying CSS rules. The styling is baked into a rasterized image, which is then traced into vector paths to create a scalable graphic.

What is the best way to turn a rendered HTML element into an outlined SVG?

The best way to turn a rendered HTML element into an outlined SVG is to use a rendering and tracing pipeline. Puppeteer renders the target selector, ImageMagick processes the image, and potrace traces it into font-independent vector outlines.