Minimum Versions
Formbricks Cloud always runs the current server. The JavaScript SDK loads its survey code from the server, so website and app surveys get Custom CSS as soon as the server supports it. Mobile SDKs have to pass Custom CSS to the survey themselves, so they need the release listed above.
Appearance
Every SDK shares one appearance contract:- Choose
"light","dark"or"system", either as theappearancesetup option or withsetAppearanceat any time. - Without a choice, surveys render light.
setAppearanceworks before setup. The latest explicit choice wins: a later setup value orsetAppearancecall replaces an earlier one, and a setup withoutappearancekeeps 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.
Setting the appearance with the JavaScript SDK
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:
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:Feature-detecting setAppearance
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.
Mixed Versions
Browser And WebView Support
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.