Skip to main content
The UI Kit ships a complete palette for light and dark appearance. This page lists the default values and shows how to override them.

Color Categories


Default Palette

Both toolkits read this one table, so a token is the same colour in SwiftUI and in UIKit. The neutrals invert in dark appearance, so every token defined as a neutral — backgrounds, strokes, text and icons — follows without a dark value of its own.
The defaults are CometChatColorScheme.light and CometChatColorScheme.dark, which a new CometChatTheme() uses. Read a token from the environment in your own views, so they match the Kit:

Override Colors

Derive from a brand colour, then set any token on the value:
Conversations with a brand colour driving the whole derived palette

One brand colour, nothing else set


Derived Colors

The “Defined as” column above is live in both toolkits, with one difference:
.derived(primary:isDark:) resolves every reference when it builds the scheme. Once you have the value, each token is a plain Color: setting neutral300 afterwards does not move background4. Set the dependent tokens too, or derive again.

Next Steps

Theme Introduction

Apply a theme, typography and dark appearance.

Component Styling

Override colours for one component.