setTheme(theme)
Prebuilt
Custom
Sets the color theme for an active Daily Prebuilt call. All colors must be in hex format (e.g. "#286DA8"). You can provide a global theme or separate light and dark variants — if you provide one of light/dark, you must provide both.
Daily Prebuilt determines the color mode using @media (prefers-color-scheme: dark | light), following the user’s browser or OS setting.
Fires a theme-updated event when the theme changes.
Parameters
A global theme object
{ colors }, or a { light, dark } object with separate themes for each mode. All color fields are optional — omitted fields fall back to Prebuilt defaults.Return value
Returns aPromise that resolves to the full DailyThemeConfig that was set.