Skip to content

Create a shop

Every shop is one folder under apps/: its pages, components and its single config file. The engine is shared.

  1. Copy the reference theme:

    Terminal window
    cp -r apps/theme apps/shop-eu
  2. Edit apps/shop-eu/magenx.config.ts: endpoint, currency, brand, features, navigation and store views. See Configuration.

  3. Install, so npm links the new workspace:

    Terminal window
    npm install

All colours are CSS custom properties in src/app/globals.css. Override them per shop without touching components:

apps/shop-eu/src/app/globals.css
:root {
--primary: 220 90% 56%;
--primary-foreground: 0 0% 100%;
}

For anything beyond config and colours, see Customising a fork.