1
0
Fork 0
freesewing/markdown/dev/reference/plugins/theme/en.md
2022-10-02 00:27:09 +02:00

728 B

title
plugin-theme

Published as @freesewing/plugin-theme, this plugin provides CSS for your SVG document when rendering to SVG.

Installation

npm install @freesewing/plugin-theme

Usage

Either add it as a part plugins in your design, or add it to a pattern instance with Pattern.use().

Notes

This plugin will inject CSS in the SVG document when rendering to SVG.

If you use other ways to render your pattern (using Pattern.getRenderProps()) you will need to apply your own styles.

The theme plugin is part of our plugin-bundle