2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-12-27 17:33:49 +01:00
|
|
|
title: "@freesewing/plugin-logo"
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-12-27 17:33:49 +01:00
|
|
|
The **@freesewing/plugin-logo** plugin provides the FreeSewing logo
|
|
|
|
as [the logo snippet](/reference/api/snippets/logo).
|
|
|
|
It's a plugin you most likely want to replace with your own version
|
|
|
|
if you want to generate patterns with your own branding.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-12-27 17:33:49 +01:00
|
|
|
<Example part="plugin_logo">An example of the logo snippet</Example>
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
<Tip>
|
|
|
|
|
|
|
|
The logo plugin is part of our [plugin-bundle](/reference/plugins/bundle)
|
|
|
|
|
|
|
|
</Tip>
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm install @freesewing/plugin-logo
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2021-12-27 17:33:49 +01:00
|
|
|
Like all [build-time plugins](/guides/plugins/types-of-plugins#build-time-plugins), you
|
|
|
|
load them by passing them to the [freesewing.Design](/reference/api/design) super-constructor:
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
import freesewing from "@freesewing/core";
|
|
|
|
import logo from "@freesewing/plugin-logo";
|
|
|
|
import config from "../config";
|
|
|
|
|
|
|
|
const Pattern = new freesewing.Design(config, logo);
|
|
|
|
```
|
2021-10-17 18:26:00 +02:00
|
|
|
|
2021-12-27 17:33:49 +01:00
|
|
|
You can now use the [logo](/reference/api/snippets/logo) snippet in your parts.
|