Skip to main content
The UI Kit styles in two layers: the theme, which every component reads, and a component style, which overrides the theme for one component. Each toolkit spells the style in its own currency.

Styling Approaches

  1. Theme — CometChatTheme in the environment, set with .cometChatTheme(_:).
  2. Component style — a struct passed as style:, for example CometChatConversationsStyle. Every property is optional.

How a style resolves

When the view draws, the Kit builds a resolved style from it: every property you set is used, every nil is filled from the current theme and colour scheme. Nothing is frozen at construction, so switching appearance or theme restyles the unset parts.

Font Customization

Set the family once on the theme:
Or one component’s font through its style — a SwiftUI Font:

Theme Color Tokens

A style property left unset falls back to one of these. Full values are on Color Resources.

Colors

Icon Tints

Button Colors


Per-Component Style Properties

Key properties for the busiest components. Each component’s page lists the rest.

Conversations

Message List

Message Composer

Message Header