# Build on Luxe

> Reference for the storefront components, the public storefront API, the read-only bundle set endpoint and the data Luxe writes to orders.

Source: https://www.luxesets.com/docs

## Luxe works out of the box

> **No theme code required.** Merchants add Luxe in the theme editor: the app embed and theme app blocks. Everything in
> these docs is for developers and agencies who choose to extend or customise.

Prices are only ever changed by Shopify Functions at checkout: Luxe's Cart Transform and its Luxe Rewards discount. Everything on the storefront, and everything you build on it, predicts that price for display.

## What you can build

| Surface                            | Use it to                                                              | Docs                                                               |
| ---------------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------ |
| Theme app blocks and the app embed | Place and configure Luxe in any Online Store 2.0 theme                 | [Theme app blocks](https://www.luxesets.com/docs/theme-app-blocks) |
| CSS custom properties              | Match the Luxe components to a brand                                   | [Styling](https://www.luxesets.com/docs/styling)                   |
| window.Luxe.cart and DOM events    | Add a widget to the Luxe cart, react to cart changes                   | [Storefront API](https://www.luxesets.com/docs/storefront-api)     |
| A theme cart, custom or headless   | Show sets, rewards and member prices without the Luxe cart drawer      | [Using your own cart](https://www.luxesets.com/docs/own-cart)      |
| Bundle set endpoint                | Read live sets and the rewards ladder from a headless or mobile client | [HTTP](https://www.luxesets.com/docs/http-api)                     |
| Line properties and order data     | Read set contents and returns data in an ERP, WMS, 3PL or returns app  | [Data](https://www.luxesets.com/docs/line-properties)              |
| Subscription sets                  | Add a set on a selling plan, and read its orders and renewals          | [Subscriptions](https://www.luxesets.com/docs/subscription-sets)   |
| Customer events                    | Send set, gift and upsell moments to GA4, Meta or any pixel            | [Analytics](https://www.luxesets.com/docs/customer-events)         |
| Members                            | Build around member rungs, members-only sets and member prices         | [Members](https://www.luxesets.com/docs/members)                   |
| Shopify Flow and Klaviyo           | Automate on Luxe triggers and actions; read Luxe's Klaviyo events      | [Integrations](https://www.luxesets.com/docs/shopify-flow)         |
| Tapcart, Sidekick, AI agents       | Sell sets beyond the online store                                      | [Channels](https://www.luxesets.com/docs/tapcart)                  |

## Quick start

1. Install Luxe on a development store; development stores are never charged.
2. Theme editor > App embeds: turn on **Luxe**.
3. Create a bundle set from a template in the app and add the **Bundle set builder** block to its product page.
4. Open the storefront console and listen for Luxe:

```js title="JavaScript"
// luxe:ready fires once, at embed setup; after load, read the version here.
console.log("Luxe", document.querySelector("luxe-root")?.dataset.luxeVersion);
// Fires after every cart read, so on each cart change.
document.addEventListener("luxe:cart:updated", (event) => {
  const { itemCount, totalPrice, lines } = event.detail;
  console.log(itemCount, totalPrice, lines);
});
```

## Versions and support

These docs describe Luxe v0.6.0. `luxe:ready` and `data-luxe-version` report the storefront runtime version (currently 1.0.0), which is separate from the app release. Breaking changes to the public API are announced in the [changelog](https://www.luxesets.com/docs/changelog) before they ship. Questions: developers@luxesets.com.
