developers

Docs Themes Account pages

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

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.

packages/themes/aurora/index.ts
export { AccountHeader, AccountFooter } from "./components/AccountChrome";
packages/themes/aurora/components/AccountChrome.tsx
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

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.