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-12-08 15:12:00 +01:00
< p align = "center" >
< a href = "https://travis-ci.org/freesewing/plugin-title" > < img src = "https://badgen.net/travis/freesewing/plugin-title/master" alt = "Travis build" > < / a >
< a href = "https://www.npmjs.com/package/ @freesewing/plugin -title" >< img src = "https://badgen.net/npm/v/ @freesewing/plugin -title" alt = "Version" ></ a >
< a href = "https://www.npmjs.com/package/ @freesewing/plugin -title" >< img src = "https://badgen.net/npm/license/ @freesewing/plugin -title" alt = "License" ></ a >
< a href = "https://codecov.io/gh/freesewing/plugin-title" > < img src = "https://badgen.net/codecov/c/github/freesewing/plugin-title/master" alt = "Code coverage" > < / a >
< a href = "https://deepscan.io/dashboard #view =project&pid=3299&bid=28273" >< img src = "https://deepscan.io/api/projects/3299/branches/28273/badge/grade.svg" alt = "DeepScan grade" ></ a >
< a href = "https://gitter.im/freesewing/freesewing" > < img src = "https://badgen.net/badge/chat/on%20Gitter/cyan" alt = "Chat on Gitter" > < / a >
< a href = "https://freesewing.org/patrons/join" > < img src = "https://badgen.net/badge/become/a%20Patron/FF5B77" alt = "Become a Patron" > < / a >
< / p >
2018-07-22 18:54:58 +02:00
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.