Generate vector SVG output with takumi-svg
masterThe takumi-svg package provides a way to render a node tree directly into real SVG elements (such as <rect>, <path>, <linearGradient>, etc.) instead of embedding a rasterized bitmap inside a data: URL. It uses quick_xml to build the document, ensuring all attributes and values are properly escaped.
Supported features include:
- Backgrounds & Borders: Backgrounds, borders, and
border-radius(via backgrounds and clip). - Gradients: Linear and radial gradients; conic gradients are supported via a wedge-path approximation.
- Effects: Box-shadow, filters, and
backdrop-filter(using<filter>chains where the backdrop is the scene replayed up to the element). - Text: Glyph outlines, decorations, text-shadow, and
-webkit-text-stroke. - Images & Glyphs: Bitmap and emoji glyphs, and embedded
<image>elements. - Layout & Styling: Clip-path, overflow, opacity, and affine transforms.