Skip to content

What a theme is ​

A theme is a website whose pages merchants build themselves, in Studio's page builder. You write the building blocks in code. The merchant arranges them, fills them in and publishes, with no developer in the loop.

How it fits together ​

  1. You write blocks. A block is a Vue component plus a small block.json that lists its fields: a heading, an image, a product, a list of links.
  2. Studio shows your blocks to the merchant. They drag them onto a page, fill in the fields and see the result live, rendered by your theme.
  3. You connect your GitHub repository. Eldra builds the theme into static pages on its own build servers and hosts the site. Every push builds it again.
  4. The merchant publishes. Eldra builds the site again with the new content. You are not needed for that.

What you start from ​

The kit gives you a complete shop theme to start from, the starter. It has 35 ready blocks (headers, banners, product grids, cart, search and more), sample pages and Storybook. Most themes begin as a copy of it and change from there.

Buttons, form fields, prices and the other basics come from @eldrajs/ui, so your blocks stay small.

What you need ​

  • Node 20 or newer, and pnpm.
  • An Eldra organisation with the page builder switched on.
  • Some Vue. The starter uses Nuxt, but blocks are plain Vue components.

The guides ​

  1. Build your first theme: create, run and preview a theme in about fifteen minutes.
  2. Blocks and fields: write your own blocks and the fields merchants fill in.
  3. Pages, routes and menus: product pages, seeded pages, links, menus and languages.
  4. Styling and texts: make it look like the brand, and translate your theme's own words.
  5. Deploy and go live: connect GitHub so Eldra builds your site, or deploy from your own pipeline.

Need every detail? The Theme reference and the starter kit conventions cover how everything works under the hood.

Eldra