/cometchat-skills:cometchat-flutter-v6-customizationfrom cometchat-skills
Themes and brands the CometChat Flutter v6 UI Kit using ThemeExtension tokens (color palette, typography, spacing) and per-widget style objects. Handles light/dark mode, brand color matching, and message bubble style overrides.
Ships in cometchat-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Ground truth: theming is Flutter's own
ThemeExtensionmechanism —CometChatColorPalette,CometChatTypography,CometChatSpacing, all catalog-verified against 6.1.0 and still present in 6.2.0. The exhaustive token list is FETCHED from the docs (theme-introduction·color-resources·component-styling·message-bubble-stylingvia../cometchat-flutter-v6-core/references/docs-map.md) — do NOT bake it.
cometchat-flutter-v6-core — install, credentials, init→login→render. This skill ASSUMES it.cometchat-flutter-v6-components — the widget catalog whose style objects and slots this skill sets.Branding or theming: colors, fonts, light/dark, or per-widget style overrides.
Cloning a named app, or mixing kit components with your own UI? Measure the target's colors, type, spacing and radii into ONE token source, theme the kit from it, and style every custom component from the same tokens so kit and custom parts look like one design; host a kit component in your own dialog/panel when only its placement differs. Flow: cometchat-onboarding → references/clone-mode.md (Design sync, build levels L0–L6).
Covered by core. No new package.
Three tiers, in the order you should reach for them:
1. App-wide theme — ThemeExtension on your ThemeData. This is the main lever; it restyles every CometChat widget at once.
import 'package:cometchat_chat_uikit/cometchat_chat_uikit.dart';
import 'package:flutter/material.dart';
final cometchatLight = ThemeData(
fontFamily: 'Inter',
extensions: [
CometChatColorPalette(primary: const Color(0xFFF76808)),
CometChatTypography(),
CometChatSpacing(),
],
);
2. Light / dark — Flutter's own switching, nothing CometChat-specific. Supply both themes and let themeMode decide; ThemeMode.system follows the OS, which is the right default for a fresh app.
import 'package:cometchat_chat_uikit/cometchat_chat_uikit.dart';
import 'package:flutter/material.dart';
Widget app(Widget home) => MaterialApp(
theme: ThemeData(extensions: [CometChatColorPalette(primary: const Color(0xFFF76808))]),
darkTheme: ThemeData.dark().copyWith(
extensions: [CometChatColorPalette(primary: const Color(0xFFF76808))],
),
themeMode: ThemeMode.system, // follow the device setting
home: home,
);
Unlike the web kit (a
themeprop + CSS variables), Flutter has no CometChat-specific mode switch — do not invent one. Register the palette on BOTH themes or dark mode falls back to defaults.
3. Per-widget style objects — scope one surface only. Every widget takes a *Style object: CometChatConversationsStyle · CometChatMessageHeaderStyle · CometChatMessageListStyle · CometChatMessageComposerStyle · CometChatThreadedHeaderStyle · CometChatSearchStyle · CometChatIncomingMessageBubbleStyle / CometChatOutgoingMessageBubbleStyle · CometChatCallLogsStyle.
import 'package:cometchat_chat_uikit/cometchat_chat_uikit.dart';
import 'package:flutter/material.dart';
Widget themedHeader(User user) => CometChatMessageHeader(
user: user,
messageHeaderStyle: const CometChatMessageHeaderStyle(
backgroundColor: Color(0xFFFFFFFF),
titleTextColor: Color(0xFF141414),
subtitleTextColor: Color(0xFF727272),
onlineStatusColor: Color(0xFF09C26F),
),
);
Style parameter names are per-widget and NOT guessable — the header uses
titleTextColor/onlineStatusColor, the threaded header usesbubbleContainerBackGroundColor/countTextColor, search usessearchBackgroundColor/searchBorderRadius. Fetch the widget's.mdtwin before writing a style block. Message bubbles are themed app-wide throughCometChatIncomingMessageBubbleStyle/CometChatOutgoingMessageBubbleStyleregistered as theme extensions — seemessage-bubble-styling.
CometChatThemeHelper.getColorPalette(context) (and the typography/spacing equivalents) returns the resolved palette, so custom UI in a slot matches the kit instead of hard-coding hexes.
customization-view-slots); custom UI goes IN the slot.loadingStateView / emptyStateView / errorStateView (customization-state-views).CometChatMessageOption and the template's options (customization-menu-options). The callback is onItemClick(message, state).CometChatMentionsFormatter and custom CometChatTextFormatter subclasses (customization-text-formatters, custom-text-formatter-guide). A subclass must implement init, getMessageInputTextStyle, handlePreMessageSend, onChange and onScrollToBottom — the class is abstract.message-template, → -components).SoundManager, UN-prefixed (there is no CometChatSoundManager), a singleton: SoundManager().play(sound: Sound.incomingMessage, customSound: "assets/ping.mp3") / .stop(). Compiler-verified vs 6.1.0. It is absent from the catalog only because that tracks CometChat* symbols — same as User/Group. Page: sound-manager.Translations (Flutter has no CometChatLocalize, through 6.2.0): MaterialApp(localizationsDelegates: Translations.localizationsDelegates, supportedLocales: Translations.supportedLocales, ...), read strings with Translations.of(context), override a language by extending its class (e.g. TranslationsEn) with your own delegate. Verified vs 6.2.0 source (shared_ui/l10n/translations.dart). The live localize page's intro says CometChatLocalize but its code uses Translations; follow the code.The kit shows them only on others' messages in groups. From 6.2.0 alignment: ChatAlignment.leftAligned puts every bubble on the left, but it adds no avatar or name. When the target shows them (Slack, Discord, Teams), set leftAligned, wrap the default templates' contentView with an avatar + name row and set avatarVisibility: false, without asking first. This covers own and others' messages in 1:1 and group chats. Code and limits: references/message-chrome.md.
ThemeData + themeMode; register the palette on both themes.CometChatThemeHelper.CometChatTheme is now only a mergeThemeExtensions helper, not a palette holder; the v5 CometChatThemeData/DataSource styling path is gone (→ -migration).The brand colour appears on the surfaces you expect, light and dark both render (toggle the OS setting), custom slot UI matches the kit's palette, and no widget silently kept its default because the palette was registered on only one theme.
What SKILL.md sets; muted values are Claude Code's defaults
98 skills in this plugin
/cometchatEntry point for any CometChat task on any platform. Detects the framework + UI Kit version (React, Angular, iOS, Android, React Native, Flutter), then routes to that family's skills — for a NEW integration or a change to an existing one. Triggers: 'add chat', 'add cometchat', 'add chat to my app', 'add calling', 'change something in my chat', 'my chat is already set up', 'add a feature to the chat', 'add chat to my android app', 'integrate cometchat android', 'add chat to my ios app', 'integrate cometchat ios', 'add chat to my swift app', 'migrate my app to cometchat', 'migrate from sendbird', 'migrate from getstream / stream', 'replace sendbird / stream chat with cometchat', 'build a <app> clone', 'make a chat app like <app>', 'make it look and work like <app>'./cometchat-a11yKeep a CometChat integration accessible — the UI Kit is designed targeting WCAG 2.1 AA with keyboard navigation (verify per component in its docs; full conformance still needs manual testing), and this skill makes sure the HOST app doesn't break that, covering contrast, focus, screen-reader context, reduced motion, RTL, and calls accessibility. Cross-family. Triggers: 'is cometchat accessible', 'WCAG / 508 / ADA compliance', 'screen reader support', 'keyboard navigation', 'a11y audit', 'accessible chat', 'contrast/focus issues in chat'.npx claudepluginhub cometchat/cometchat-skills --plugin cometchat-skillsOther plugins' skills for the same job