class SharedClientThemeBuilder

export declare class SharedClientThemeBuilder implements JSONEncodable<APIMessageSharedClientTheme>

A builder that creates API-compatible JSON data for shared client themes.

Constructors

Creates a new shared client theme builder.

clearBaseTheme() : this

Clears the base theme of this theme.

setBaseMix(
baseMix: number
) : this

Sets the base mix (intensity) of this theme.

setBaseTheme(
baseTheme: BaseThemeType
) : this

Sets the base theme (mode) of this theme.

setColors(
...colors: RestOrArray<string>
) : this

Sets the colors of this theme.

setGradientAngle(
angle: number
) : this

Sets the gradient angle of this theme.

toJSON(
validationOverride?: boolean
) : APIMessageSharedClientTheme

Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.