> For the complete documentation index, see [llms.txt](https://artiva.gitbook.io/v2-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://artiva.gitbook.io/v2-docs/themes/deployment.md).

# Deployment

### Building your theme

To deploy a theme first build it using [Webpack](https://webpack.js.org/) with the proper [Module Federation ](https://webpack.js.org/concepts/module-federation/)configurations set.&#x20;

#### Required ModuleFederationPlugin configurations

* `filename` must be set to `remoteEntry.js`
* `library.name` must be set to `theme`
* `library.type` must be set to `window`

#### Common issues

* If forking from another theme ensure `name` in `package.json` and `name` in `ModuleFederationPlugin` is unique.
* If using tailwindcss ensure that `important` is set in `tailwind.config` so styles do not collide.

#### CSS Styles

CSS should also be built and bundled into one css file `index.css`.&#x20;

### Publishing your theme

To publish your theme simply upload your static files to a file store such as [Arweave](https://www.arweave.org/) or an [Amazon S3 Bucket](https://aws.amazon.com/s3/). Users will be able to apply this new theme in the designer settings via your file store url ie `https://arweave.net/KBLX...`
