2.6.0

CustomTheme

Package: flyte.ai.chat

Declarative color theme for the Agent Chat UI.

All colors should be CSS hex strings (e.g. "#E6A71F").

Parameters

class CustomTheme(
    accent_color: str = '#6F2AEF',
    accent_hover_color: str = '#8B52F2',
    button_text_color: str = '#f3f4f6',
)
Parameter Type Description
accent_color str Primary brand color used for links, highlights, active indicators, and solid-background buttons. Defaults to the built-in purple ("#6F2AEF").
accent_hover_color str Lighter variant shown on hover states for accent-colored elements. Defaults to "#8B52F2".
button_text_color str Text color rendered on top of accent-colored buttons. Should contrast well with accent_color. Defaults to "#f3f4f6" (near-white).

Methods

Method Description
to_css() Generate a CSS override string from the theme colors.

to_css()

def to_css()

Generate a CSS override string from the theme colors.