Theming
Customize the appearance of chat elements with a theme. On web, pass atheme through the Elements appearance options. On Swift, create a WhopTheme and apply it with .whopTheme().
- React
- Vanilla JS
- Swift
Theme properties
| Purpose | Web option | Swift option | Description |
|---|---|---|---|
| Appearance | appearance | — | Light or dark mode ("light", "dark") on web. Swift follows the app’s color scheme. |
| Accent | accentColor | accent | Primary interactive elements, links, and selection highlights |
| Neutral | grayColor | neutral | Text, borders, and backgrounds |
| Danger | dangerColor | danger | Destructive actions and error states |
| Warning | warningColor | warning | Warning states |
| Success | successColor | success | Success states |
| Info | infoColor | info | Informational highlights |
Available colors
All color properties accept these tints. Use strings on web, such as"blue", and enum values on Swift, such as .blue.
amber · blue · bronze · brown · crimson · cyan · gold · grass · gray · green · indigo · iris · jade · lemon · lime · magenta · mint · orange · pink · plum · purple · red · ruby · sky · teal · tomato · violet · yellow
Chat styles
Choose between Discord-style or iMessage-style chat. iMessage style (bubble chat) is the default if not provided.- React
- Vanilla JS
- Swift

