Skip to main content
Use this hook when you need store metadata (logo, platform, ids), the version’s theme tokens, its props and flags, or the store’s page settings. It’s useful for branded headers, components that read a custom prop, and anything that must follow a checkout flag.
Let your agent build it. The Ollie Shop skill ships with projects created by npx create-ollie-shop and knows to read the platform account from here rather than taking it as a component prop.
Prompt
Don’t have the skill yet? Install it.

Import

Return Value

theme

Every token of the Theme tab, keyed by its CSS variable name. Only tokens the version has set are present.
In CSS you can use the variables directly, var(--color-primary), without reading them here.

props

Everything the version’s Props Configuration tab holds, plus the integrations from the General tab:
  • props.flags: the checkout flags, typed as RuntimeFlags. A flag that was never set is undefined; the checkout applies its default internally.
  • props.steps, props.font, props.formFieldsController, props.shareCart: the predefined props.
  • props.integrations: GTM_ID, PAYPAL_CLIENT_ID and the other integration keys.
  • Any custom prop you added, under the key you gave it.
Only flags, formFieldsController, experiment, installmentsMinOrderValue and checkout are strongly typed. The rest is unknown, so narrow it before use:

settings

The store’s Settings Configuration: title, description and favicon, as an open record.

Usage

Example

Display the store logo in a custom header component, colored with the theme.

Notes

  • In Studio, the values returned here already include the unsaved overrides you are previewing (components, props and theme), so a component behaves in the preview as it will after publishing.
  • messages (the version’s text overrides) is not exposed here; the native components read it through the translation layer.