Appearance
Rule.io SDK / client/src / resolveBrandTheme
Function: resolveBrandTheme()
resolveBrandTheme(
client,overrideId?):Promise<ResolvedBrandTheme>
Defined in: client/src/brand-style-to-theme.ts:288
Resolve the account's preferred brand style and convert it to a ready-to-apply EmailTheme.
Discovery rules:
- If
overrideIdis provided, fetch that brand style directly. - Otherwise, list all brand styles and pick the one flagged
isDefault. - If no style is flagged default, fall back to the first entry (
sourceis set to'fallback'so callers can warn).
Parameters
client
overrideId?
number
Returns
Promise<ResolvedBrandTheme>