Account pages
Sign-in and the customer’s account belong to the platform and look the same on every theme. A theme can put its own header and footer around them, so the store still feels like one website — and nothing more.
What the platform renders
/login— email sign-in with a one-time code./account— profile, plus “Your data” (download or delete my data)./orders— order history./order/<number>— the receipt: cancel, reschedule, downloads, meeting link./order/<number>/invoice— the tax invoice./subscriptions— skip or cancel./addresses— the address book.
They touch real orders, real money and personal data, so they behave identically whoever built the site — a merchant, an agency or Mecsto. Checkout is the same: it opens on its own surface with its own chrome. In theme.json every one of these page keys stays null.
AccountHeader and AccountFooter
Export two optional components from your theme’s index.ts. They take no props. The platform renders AccountHeader above its page and AccountFooter below it; neither ever receives the page, so a theme can frame the account area but cannot wrap, hide or change it.
export { AccountHeader, AccountFooter } from "./components/AccountChrome";import { getNavigation, getStore } from "@mecsto/theme-sdk/server";
import { SiteFooter } from "./SiteFooter";
import { SiteHeader } from "./SiteHeader";
export async function AccountHeader() {
const [store, nav] = await Promise.all([getStore(), getNavigation()]);
if (!store) return null;
return <SiteHeader storeName={store.displayName} nav={nav.primary} />;
}
export function AccountFooter() {
return <SiteFooter />;
}With chrome present the platform also applies your tokens, resolved with the merchant’s accent, so its pages take your surfaces, text colours and the store’s brand colour. The header and footer are hidden when a customer prints an invoice.
What fails the build
- Exporting
LoginPage,AccountPage,OrdersPage,OrderDetailPage,SubscriptionsPage,AddressesPage,InvoicePage,CheckoutPageorAccountShell. - A non-null value for a platform page in
theme.json. - A custom page under a platform path (
/orders/…,/account/…, …). - Importing the SDK pieces that read the signed-in customer’s account or run sign-in, checkout and payment:
getMy*,useMy*,useLoyaltyRedemption,useCheckoutInit,useOrderConfirmation,LoginForm,OrderList,SubscriptionCard,AddressBook,CheckoutForm,RazorpayPayment,updateMyProfile,updateMyAddresses,cancelSubscription,skipSubscriptionCycle,applyPromotion. Whether someone is signed in stays open (getAuthContext,useAuthContext), so your header can say “Account” or “Sign in”.
Check your chrome around a page you did not design. Open /login, /account and an order receipt in your theme. Your header and footer must look right above and below the platform’s page, on a phone and on a desktop.