Artiva V2
Search…
⌃K

Deployment

Building your theme

To deploy a theme first build it using Webpack with the proper Module Federation configurations set.

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.

Publishing your theme

To publish your theme simply upload your static files to a file store such as Arweave or an Amazon S3 Bucket. Users will be able to apply this new theme in the designer settings via your file store url ie https://arweave.net/KBLX...