ShopThemeTokens

db · /index·type

Authored, all-optional theme overrides stored on the shop record (ShopBase.theme). A DeepPartial of : a shop may set any subset of tokens at any depth, and every absent token falls back to its platform default via . An absent theme (the default for every existing shop) therefore resolves byte-identically to today's render.

Definition

@nordcom/commerce-db

DeepPartial<ResolvedShopTheme>

Example

import type { ShopThemeTokens } from '@nordcom/commerce-db';
const theme: ShopThemeTokens = { colors: { background: '#0b0b0b', foreground: '#fafafa' } };

FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme

Sourcetheme.ts:361Edit the JSDoc directly
Metadata@nordcom/commerce-db@0.1.0Open in GitHub ↗

On this page