Enlightened library to convert HTML and CSS to SVG
Satori is an enlightened library that converts HTML and CSS to SVG. It supports JSX syntax, making it user-friendly for developers. It handles layout calculation, font, typography, and more to produce SVG images that closely resemble the original HTML and CSS styling.
<img>
tag with recommended width and height attributes.To install Satori, you can use npm:
npm install satori
Once installed, you can import Satori into your project:
import Satori from 'satori';
Satori is a powerful library that simplifies the process of converting HTML and CSS to SVG. With its support for JSX syntax and limited HTML and CSS features, it provides a convenient solution for generating SVG images. However, developers should be aware of the constraints and features supported by Satori, such as font formats and CSS properties.