# Theme & Appearance

Control the visual appearance of the application. **Applies to: All integrations.**

| Parameter | Type | Default | Applies to | What it does internally |
|-----------|------|---------|------------|-------------------------|
| style | "dark" or "light" | "dark" | All | Theme mode requested from the backend at verification. It switches the whole UI color scheme |
| themeName | string | the `company` value | All | Which theme (managed in the Admin Dashboard) to load. The resolved theme is cached in the WebView and only downloaded again when its version changes |

**Precedence note:** a `?style=dark` or `?style=light` in the launch URL **wins over the `style` value sent by postMessage**. The SDKs send `IStyle` in the launch URL. If you see the wrong mode, check the launch URL first.

**SDK Support:**
- **Swift, Kotlin, Flutter:** the `IStyle` object of the create call (`style`, `themeName`, plus the [loading screen colors](/docs/customization-parameters/loading-screen))
- **React Native, React:** the `style` object in `data`
- **HTML/JS:** top-level keys of the launch object, or the iframe URL (`?style=light`)

**Theme Configuration**

_Swift (iOS)_
```swift
kinestex.createWorkoutView(
    workout: "Fitness Lite",
    user: nil,
    style: IStyle(
        style: "light",
        themeName: "CustomBrand"
    ),
    isLoading: $isLoading,
    onMessageReceived: { message in /* ... */ }
)
```

_Kotlin (Android)_
```kotlin
KinesteXSDK.createWorkoutView(
    context = this,
    workoutName = "Fitness Lite",
    style = IStyle(
        style = "light",
        themeName = "CustomBrand" // theme name from the Admin Dashboard (default: company name)
    ),
    isLoading = viewModel.isLoading,
    onMessageReceived = { message -> handleWebViewMessage(message) },
    permissionHandler = this
)
```

_React Native_
```jsx
const postData: IPostData = {
  key: 'YOUR_API_KEY',
  userId: 'user-123',
  company: 'YOUR_COMPANY',
  style: {
    style: 'light', // 'dark' or 'light'
    themeName: 'CustomBrand',
  },
};
```

_Flutter_
```dart
KinesteXAIFramework.createWorkoutView(
  workoutName: "Fitness Lite",
  style: IStyle(
    style: 'light', // 'dark' or 'light'
    themeName: 'CustomBrand',
  ),
  isShowKinestex: showKinesteX,
  isLoading: isLoading,
  onMessageReceived: handleMessage,
);
```

_HTML / JavaScript_
```html
const postData = {
  userId: "user-123",
  company: "YOUR_COMPANY",
  key: "YOUR_API_KEY",
  style: "light",
  themeName: "CustomBrand",
};
```

_React (TypeScript)_
```tsx
const postData: IPostData = {
  key: 'YOUR_API_KEY',
  userId: 'user-123',
  company: 'YOUR_COMPANY',
  style: {
    style: 'light', // 'dark' or 'light'
    themeName: 'CustomBrand',
  },
};
```

---
Source: https://www.kinestex.com/docs/customization-parameters/theme-appearance · Index: https://www.kinestex.com/llms.txt
