Skip to main content
This page shows every relevant option with its resolved default value. Copy the block below, delete what you don’t need, and change the values you want to override.
The app embed handles storefront and context automatically, and sets auth.tokenUrl and ui.baseUrl for you - they are shown below only because headless and self-hosted setups need them. translations is documented separately on the Translations page.

Notes

  • Metafields: Declare each metafield as a namespace.key string. Only declare what you use - each entry adds a field to the storefront query. See Metafields.
  • Transforms: undefined means “use the default behavior”. Provide a function to override how the value is rendered. Note that addToCartButton defaults to showing Swish’s cart buttons - supply it to hide them for particular products. See Transforms.
  • Icons: Each key defaults to a built-in SVG component. To override, pass a custom SVG string (e.g. "<svg>...</svg>"). Omit or set to "" to keep the default. See Icons for the full list.
  • Design tokens: Values shown are from the base CSS theme. Design tokens that reference var(--swish-theme-*) derive from other tokens - the resolved values at defaults are shown in comments. Tokens are grouped (sizes, rounding, colors, typography, productCard, navigation, optionPill, drawer, imageSlider); the groups are what the UiDesignOptions type expects. See Design for details.
  • Views: When you provide a sections array for a view, it replaces the defaults entirely. See Views overview.