---
title: "SDK Compatibility"
description: "Which SDK versions support dark mode and Custom CSS, how each platform resolves the survey appearance, and what respondents see when versions are mixed."
icon: "code-compare"
---

## Compatibility commitment

Patch and minor Formbricks releases preserve supported SDK and stable API integrations within the same
major version. See the [compatibility policy](/self-hosting/advanced/release-maintenance-policy#integration-compatibility)
for scope and security exceptions. This commitment applies to releases published after this policy is
adopted; the historical [6.1 compatibility exceptions](/self-hosting/upgrade/versions/6.1#integration-changes-requiring-action)
still require action when crossing that version.

Upgrade the server first, then adopt SDK features supported by that server. App, API and SDK versions
are independent. A server release does not mean every mobile package has been published.

<span id="minimum-versions" />

## Styling feature availability

| Component | Dark mode (`setAppearance`) | Custom CSS |
| --- | --- | --- |
| Formbricks server / server-served JavaScript | 6.1 | 6.1 |
| npm `@formbricks/js` | Not exported by published 5.1.0; verify a later package before use | Loaded from a compatible server |
| React Native `@formbricks/react-native` | 3.3.0 | 3.3.0 |
| iOS `FormbricksSDK` | Published minimum not yet verified | Published minimum not yet verified |
| Android `com.formbricks:android` | Published minimum not yet verified | Published minimum not yet verified |
| Flutter `formbricks` | Published minimum not yet verified | Published minimum not yet verified |

Publication checked on 26 October 2026. The React Native 3.3.0 package includes these features; 3.2.0
does not. For platforms without a verified minimum, confirm the installed package's release notes
before adopting the feature. Source code alone is not publication evidence.

## Embedded Data on mobile

`setEmbeddedData` and `clearEmbeddedData` are present in the published React Native **3.2.0** package
(and 3.3.0). This verifies availability in those versions, not the earliest release.
Minimum published iOS, Android and Flutter versions remain unverified here. Check your package before
using the [mobile examples](/surveys/embedded-data/mobile-sdks).

## Appearance

SDK implementations with appearance support use this contract:

- Choose `"light"`, `"dark"` or `"system"`, either as the `appearance` setup option or with `setAppearance` at any time.
- Without a choice, surveys render **light**.
- `setAppearance` works before setup. The latest explicit choice wins: a later setup value or `setAppearance` call replaces an earlier one, and a setup without `appearance` keeps a choice made before it.
- The choice is kept in memory for the current app or page session. It survives logout and identity reset, and is forgotten when the app restarts or the page reloads. It is not stored as a contact attribute and sends no request to Formbricks.
- The appearance is applied before the survey first appears. Changing it while a survey is open switches the colors in place and keeps the respondent's answers, progress and focus.

```javascript Appearance on a server-served SDK with support
formbricks.setup({
  workspaceId: "<workspace-id>",
  appUrl: "<app-url>",
  appearance: "system", // "light" (default), "dark" or "system"
});

// When the user switches your app's theme:
formbricks.setAppearance("dark");
```

The mobile SDKs expose the same `setAppearance` method and setup option, using each platform's usual enum or type. Their READMEs show the exact syntax.

### What "system" Follows

`"system"` means the appearance your app is currently showing, which is not always the phone's setting:

| Platform | `"system"` follows |
| --- | --- |
| Website & app (JavaScript) | The browser's `prefers-color-scheme`, updated live |
| iOS | The presenting view's effective interface style, including an appearance your app or window overrides |
| Android | The host Activity's `uiMode`, including an app-level night mode override |
| React Native | `Appearance.getColorScheme()`; an unknown value counts as light |
| Flutter | `Theme.of(context).brightness` where the survey is shown; the platform brightness when there is no theme |

If your app keeps its theme only in its own code, such as a React context or an in-app toggle, `"system"` cannot see it. Call `setAppearance("light")` or `setAppearance("dark")` from that toggle instead.

### Older Versions Without setAppearance

Check that the method exists before calling it, so older SDK versions keep working:

```javascript Feature-detecting setAppearance
if (typeof formbricks.setAppearance === "function") {
  formbricks.setAppearance("dark");
}
```

An SDK that has `setAppearance` but talks to an older self-hosted server accepts the call without an error. The survey stays light until the server is upgraded.

## Custom CSS In Apps

- **Link surveys** and **website & app surveys** get Custom CSS from the server. Nothing to change in your code.
- **Mobile apps** need an SDK version with Custom CSS support. It passes both the workspace CSS and the survey CSS to the survey, in light and dark mode, whether or not the survey overrides the workspace theme.
- **Older mobile SDKs** show surveys without any Custom CSS. They never apply only part of it, such as the survey CSS without the workspace CSS it builds on.

Saved changes depend on separate [configuration and renderer caches](#when-changes-reach-respondents). A survey that is already open keeps the styling it opened with until the respondent finishes it.

## Mixed Versions

| Situation | What respondents see |
| --- | --- |
| New server, older mobile SDK | Surveys work as before: light, without Custom CSS |
| New server, older `@formbricks/js` | Custom CSS applies. `setAppearance` is not available yet, so surveys stay light |
| Older self-hosted server, new SDK | Surveys work and stay light, without Custom CSS. `setAppearance` is accepted and has no effect |
| No Custom CSS saved | The theme styling only, unchanged |
| Configuration cached before Custom CSS was saved | No Custom CSS until the SDK refreshes its configuration, according to its refresh schedule |

## Browser And WebView Support

| Where | Supported | Renders, may look off |
| --- | --- | --- |
| Link surveys, website & app surveys | Chrome and Edge 111+, Safari 16.4+, Firefox 128+ | Chrome 99, Safari 15.4, Firefox 97 and later |
| iOS apps | iOS 16.4+ (WKWebView) | iOS 16.0 to 16.3 |
| Android apps | Android System WebView 111+ | WebView 99 to 110 |
| React Native and Flutter apps | As iOS and Android above | As iOS and Android above |

These are the browser versions the survey styles are built for. The SDKs keep their existing minimum OS versions. On a device below the supported range, surveys still open but colors and layout can be off.

## When changes reach respondents

| Layer | What refreshes it |
| --- | --- |
| Server/CDN configuration response | Normally cached for one minute; stale revalidation may extend this. |
| SDK-held survey configuration | Uses its expiry, commonly one hour; behavior depends on SDK and session state. |
| Static renderer and js-core assets | Browser/CDN policy; self-hosted operators must invalidate changed mutable URLs. |

A one-minute response cache does not force an already-open SDK session to refresh.
Test a fresh session after saving changes. A survey already open keeps its initial styling.
For stale assets after an upgrade, use [CDN configuration](/self-hosting/configuration/cdn).
