Theme Configuration

viser.theme provides interfaces for themeing the viser frontend from within Python.

class viser.theme.TitlebarButton[source]

A link-only button that appears in the Titlebar.

text: str | None
icon: Literal['GitHub', 'Description', 'Keyboard'] | None
href: str | None
class viser.theme.TitlebarConfig[source]

Configure the content that appears in the titlebar.

buttons: Tuple[TitlebarButton, ...] | None
image: TitlebarImage | None
class viser.theme.TitlebarImage[source]

An image that appears on the titlebar.

image_url_light: str
image_url_dark: str | None
image_alt: str
href: str | None