AI Integration Quick Reference
AI Integration Quick Reference
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.
- SwiftUI
- UIKit
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
- SwiftUI
- UIKit
Derive from a brand colour, then set any token on the value:

One brand colour, nothing else set
Derived Colors
The “Defined as” column above is live in both toolkits, with one difference:- SwiftUI
- UIKit
.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.