1
0
Fork 0
freesewing/markdown/dev/reference/plugins/theme/en.md
2021-10-17 18:26:00 +02:00

1.5 KiB

title
theme

Run-time plugin   License: MIT   Code quality on DeepScan   Open issues tagged pkg:plugin-theme

The theme plugin provides CSS styling for SVG output:

It uses the preRender hook to do so.

This plugin only applies to rendered SVG output. If you use our React component to display patterns, you should style our component or use our css-theme package.

Installation

npm install @freesewing/plugin-theme

Usage

Like all build-time plugins, you load them by passing them to the freesewing.Design constructor:

import Aaron from "@freesewing/aaron";
import theme from "@freesewing/plugin-theme";

const myAaron = new Aaron()
  .use(theme);