# Publishing a library

### Publishing a block library

A block library is **a model containing a collection of blocks** that you can **curate and share with other users**. Let's dive in and see how to create such a library!

* Start from a model where you have **blocks you want to share.**
* Click on the **`Share`** button, in the top-right of the editor.
* Select the **`Libraries`** tab and **toggle `Publish blocks`** on.

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2F5oggOgaK3RPv6ulKV86r%2FVincent-F-7.png?alt=media&#x26;token=eeac8fd1-cfe1-4aea-9be5-8948a56fc43b" alt=""><figcaption></figcaption></figure>

Now, open any other **model** located in the same **organization**. Inside that model...

* Navigate to the **`Blocks`** panel
* Open the **`Libraries`** tab
* You will now see a **`My libraries`** section containing the blocks you published earlier

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2F4HGywViMtW4E30JcwmEX%2FVincent-F-7%20(1).png?alt=media&#x26;token=233db8b4-51c0-4ea7-806d-abe8ddc8ea53" alt=""><figcaption></figcaption></figure>

Once inside that library, you may import the **individual** blocks of the **library into your model.**

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FIuvnoXOnicBfkdn6kxwL%2FVincent-F-7%20(5).png?alt=media&#x26;token=81c0fcd3-784e-485f-8abb-0989ab18799c" alt=""><figcaption></figcaption></figure>

### Publishing a style library

The same principle applies. A style library is **a model containing a collection of styles** that you can **curate and open to other users**.

* Start from a model where you have **styles you want to share.**
* Click on the **`Share`** button, in the top-right of the editor.
* Select the **`Libraries`** tab and **toggle `Publish styles`** on.

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FodWAXLvIz7atM544Ohkp%2FVincent-F-7%20(6).png?alt=media&#x26;token=bc940658-e76f-4412-ab8b-48a24cd9f6ba" alt=""><figcaption></figcaption></figure>

Now, open any other **model** located in the same **organization**. Inside that model...

* Navigate to the **`Styles`** panel
* Open the **`Libraries`** tab
* You will now see a **`My libraries`** section containing the styles you published earlier

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2Fj8aFy5ayhcl5C5dyBWsX%2FVincent-F-7%20(2).png?alt=media&#x26;token=7ae0eaa5-7c11-4403-b989-4f508d77977f" alt=""><figcaption></figcaption></figure>

Once inside that library, you may import the **individual** styles of the **library into your model.**

<figure><img src="https://2112124689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FngVHKyaUSSJPTFck3wkz%2Fuploads%2FZWGMAQ2KHdPnDpAitXN8%2FVincent-F-7%20(3).png?alt=media&#x26;token=2a9d4982-1664-4118-8f74-1f1a0a4a6a67" alt=""><figcaption></figcaption></figure>

### Tutorial

For more step-by-step information, watch our tutorial about how to create style and block libraries in Rayon.

{% embed url="<https://www.youtube.com/watch?v=cKbjnV-b0pc>" %}

***

### We are always available

Book a demo with our team, [right here](https://b1kzip68v9f.typeform.com/to/Hgr0eQ4k#source=docs).\
To get some support, reach out to us through our **in-app support chat**. \
More about [our support policy right here](https://docs.rayon.design/other-resources/others/support).
