2018-07-22 18:54:58 +02:00
< p align = "center" >
< a title = "Go to freesewing.org" href = "https://freesewing.org/" > < img src = "https://freesewing.org/img/logo/black.svg" align = "center" width = "150px" alt = "Freesewing logo" / > < / a >
< / p >
< h4 align = "center" > < em > < a title = "Go to freesewing.org" href = "https://freesewing.org/" > freesewing< / a > < / em >
< br > < sup > a library for made-to-measure sewing patterns< / sup >
< / h4 >
2018-07-26 07:34:23 +00:00
# plugin-title
2018-07-22 18:54:58 +02:00
2018-07-26 07:34:23 +00:00
A freesewing plugin to add pretty part titles to your pattern.
2018-07-22 18:54:58 +02:00
2018-07-26 07:34:23 +00:00
## Usage
2018-07-22 18:54:58 +02:00
2018-07-26 07:34:23 +00:00
To load this plugin, add it to your instantiated pattern.
2018-07-22 18:54:58 +02:00
2018-07-26 07:34:23 +00:00
On node.js:
2018-07-22 18:54:58 +02:00
```js
2018-07-26 07:34:23 +00:00
import pattern from '@freesewing/pattern -brian'
import title from '@freesewing/plugin -theme'
import title from '@freesewing/plugin -title'
2018-07-22 18:54:58 +02:00
2018-07-26 07:34:23 +00:00
pattern..with(theme).with(title);
2018-07-22 18:54:58 +02:00
```
2018-07-26 07:34:23 +00:00
In the browser, this plugin will register as `freesewing.plugins.title` :
2018-07-22 18:54:58 +02:00
2018-07-26 07:34:23 +00:00
```html
< 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 type = "text/javascript" src = "https://unpkg.com/ @freesewing/plugin -title" ></ script >
2018-07-22 18:54:58 +02:00
2018-07-26 07:34:23 +00:00
< script >
var pattern = freesewing.patterns.brian
.with(freesewing.plugins.theme)
.with(freesewing.plugins.title);
< / script >
2018-07-22 18:54:58 +02:00
```
2018-07-26 07:34:23 +00:00
## Example
2018-07-22 18:54:58 +02:00
2018-07-26 07:34:23 +00:00
This plugin styles a title like this:
2018-07-22 18:54:58 +02:00
2018-07-26 07:34:23 +00:00

## Install
To install, run:
```sh
npm install @freesewing/plugin -title
```
## Build
To build this plugin, run:
```sh
npm run build
```
## License: MIT
2018-07-22 18:54:58 +02:00
2018-07-26 07:34:23 +00:00
See [the license file ](https://github.com/freesewing/plugin-theme/blob/master/LICENSE )
for details.