1
0
Fork 0
freesewing/packages/plugin-theme
2019-04-19 08:22:56 +02:00
..
img construction: Cleaned up styles 2019-04-19 08:22:54 +02:00
src bug: Fixed issue where the only option would cause grid rendering of non-rendered patterns to break the designer plugin 2019-04-19 08:22:55 +02:00
.editorconfig tada: First commit 2019-04-19 08:22:54 +02:00
.gitignore bookmark: v0.5.0 2019-04-19 08:22:55 +02:00
.npmignore construction: Switched to Rollup from Webpack 2019-04-19 08:22:54 +02:00
LICENSE bookmark: v0.5.0 2019-04-19 08:22:55 +02:00
package-lock.json bookmark: v0.13.0 2019-04-19 08:22:56 +02:00
package.json bookmark: v0.13.0 2019-04-19 08:22:56 +02:00
README.md wrench: Updated rollup config and README 2019-04-19 08:22:55 +02:00
rollup.js wrench: Updated rollup config and README 2019-04-19 08:22:55 +02:00

Freesewing logo

 freesewing
a library for made-to-measure sewing patterns

plugin-theme

A freesewing plugin to provide styles for freesewing. This plugin also provides the notch snippet.

Usage

To load this plugin, add it to your instantiated pattern.

On node.js:

import pattern from '@freesewing/pattern-brian'
import theme from '@freesewing/plugin-theme'

pattern.with(theme);

In the browser, this plugin will register as freesewing.plugins.theme:

<script type="text/javascript" src="https://unpkg.com/freesewing"></script>
<script type="text/javascript" src="https://unpkg.com/@freesewing/pattern-brian"></script>
<script type="text/javascript" src="https://unpkg.com/@freesewing/plugin-theme"></script>

<script>
var pattern = freesewing.patterns.brian
  .with(freesewing.plugins.theme);
</script>

Example

This plugin adds the following CSS classes to your SVG file:

Example of the style provided by this theme

In addition, it adds the notch and bnotch snippets to your SVG file's defs section.

Install

To install, run:

npm install @freesewing/plugin-theme

Build

To build this plugin, run:

npm run build

License: MIT

See the license file for details.