Theme

public protocol Theme

Protocol defining the color theme for the Kindly Chat UI. Implement this protocol to provide a fully custom theme, or use CustomTheme for partial overrides.

Colors defined in API/server settings

  • Background color of the chat interface.

    Declaration

    Swift

    var background: UIColor? { get }
  • Background color for bot message bubbles.

    Declaration

    Swift

    var botMessageBackground: UIColor? { get }
  • Text color for bot messages.

    Declaration

    Swift

    var botMessageText: UIColor? { get }
  • Background color for buttons.

    Declaration

    Swift

    var buttonBackground: UIColor? { get }
  • Outline color for buttons.

    Declaration

    Swift

    var buttonOutline: UIColor? { get }
  • Text color for buttons.

    Declaration

    Swift

    var buttonText: UIColor? { get }
  • Color for chat log elements like timestamps and dividers.

    Declaration

    Swift

    var chatLogElements: UIColor? { get }
  • Background color for the navigation bar (maps to header_background in API).

    Declaration

    Swift

    var navBarBackground: UIColor? { get }
  • Text color for the navigation bar (maps to header_text in API).

    Declaration

    Swift

    var navBarText: UIColor? { get }
  • Background color for the input field.

    Declaration

    Swift

    var inputBackground: UIColor? { get }
  • Text color for the input field.

    Declaration

    Swift

    var inputText: UIColor? { get }
  • Background color for user message bubbles.

    Declaration

    Swift

    var userMessageBackground: UIColor? { get }
  • Text color for user messages.

    Declaration

    Swift

    var userMessageText: UIColor? { get }

Manually defined colors (not from API)

  • Background color for selected/active buttons.

    Declaration

    Swift

    var buttonSelectedBackground: UIColor? { get }
  • Default shadow color used throughout the UI.

    Declaration

    Swift

    var defaultShadow: UIColor? { get }
  • Color for the text input cursor.

    Declaration

    Swift

    var inputCursor: UIColor? { get }
  • Background color for the maintenance mode header banner.

    Declaration

    Swift

    var maintenanceHeaderBackground: UIColor? { get }