Skip to content

Rule.io SDK


Rule.io SDK / client/src / CreateBrandStylePayload

Interface: CreateBrandStylePayload

Defined in: client/src/resources/brand-styles/brand-styles.types.ts:253

Payload for BrandStylesClient.createManually.

Example ​

typescript
const style = await client.brandStyles.createManually({
  name: 'Acme Brand',
  colours: [
    { type: 'brand',  hex: '#0066CC', brightness: 40 },
    { type: 'accent', hex: '#FF5500', brightness: 60 },
  ],
  links: [
    { type: 'website',  link: 'https://example.com' },
    { type: 'linkedin', link: 'https://linkedin.com/company/example' },
  ],
  fonts: [
    { type: 'title', name: 'Helvetica', origin: 'system' },
    { type: 'body',  name: 'Arial',     origin: 'system' },
  ],
});

Properties ​

colours? ​

optional colours?: BrandStyleColourEntry[] | null

Defined in: client/src/resources/brand-styles/brand-styles.types.ts:261


description? ​

optional description?: string | null

Defined in: client/src/resources/brand-styles/brand-styles.types.ts:256


domain? ​

optional domain?: string | null

Defined in: client/src/resources/brand-styles/brand-styles.types.ts:258

Domain to associate with the style.


fonts? ​

optional fonts?: BrandStyleFontEntry[] | null

Defined in: client/src/resources/brand-styles/brand-styles.types.ts:263


images? ​

optional images?: BrandStyleImageEntry[] | null

Defined in: client/src/resources/brand-styles/brand-styles.types.ts:264


isDefault? ​

optional isDefault?: boolean | null

Defined in: client/src/resources/brand-styles/brand-styles.types.ts:260

Set this style as the account default.


optional links?: BrandStyleLinkEntry[] | null

Defined in: client/src/resources/brand-styles/brand-styles.types.ts:262


name ​

name: string

Defined in: client/src/resources/brand-styles/brand-styles.types.ts:255

Brand style name. Required.