T

Theme

A theme's semantic and raw colour definitions plus optional background.

type Theme = { … }

Members

background?{ blur?: number; opacity?: number; url: string }

The chat background the theme recommends: an image url, a blur radius and an opacity from 0 to 1; dropped when url is not a string.

rawRecord<PropertyKey, string>

Overrides for Discord's raw palette colours, keyed by raw colour name.

semanticRecord<PropertyKey, ThemeSemanticColor>

Overrides for Discord's semantic colours, keyed by name such as BACKGROUND_BASE_LOWER; malformed entries are dropped.

type"light" | "dark" | "darker" | "midnight"

The Discord base theme the bundle builds on: light, dark (Ash), darker (Dark) or midnight (Onyx); parsed as darker when absent or unknown.