diff --git a/apps/formbricks-com/app/docs/getting-started/framework-guides/page.mdx b/apps/formbricks-com/app/docs/getting-started/framework-guides/page.mdx index 9e2bf16d4b..8c600fb5aa 100644 --- a/apps/formbricks-com/app/docs/getting-started/framework-guides/page.mdx +++ b/apps/formbricks-com/app/docs/getting-started/framework-guides/page.mdx @@ -1,9 +1,10 @@ import { Libraries } from "@/components/docs/Libraries"; import Image from "next/image"; + import SetupChecklist from "./env-id.webp"; -import WidgetNotConnected from "./widget-not-connected.webp"; -import WidgetConnected from "./widget-connected.webp"; import ReactApp from "./react-in-app-survey-app-popup-form.webp"; +import WidgetConnected from "./widget-connected.webp"; +import WidgetNotConnected from "./widget-not-connected.webp"; export const metadata = { title: "Integrate Formbricks: Comprehensive Framework Guide & Integration Tutorial", @@ -222,9 +223,10 @@ Refer to our [Example NextJS App Directory project](https://github.com/formbrick ```tsx {{ title: 'Typescript' }} // other import -import formbricks from "@formbricks/js"; -import { useEffect } from "react"; import { useRouter } from "next/router"; +import { useEffect } from "react"; + +import formbricks from "@formbricks/js"; if (typeof window !== "undefined") { formbricks.init({ @@ -386,6 +388,43 @@ To this: className="max-w-full rounded-lg sm:max-w-3xl" /> +## Overwrite CSS Styles for In-App Surveys + +You can overwrite the default CSS styles for the in-app surveys by adding the following CSS to your global CSS file (eg. `globals.css`): + +Make sure that you do not change the CSS variable names as they are used by Formbricks to identify the CSS variables. You can change the values to your liking. We have filled in some sample values for you to change according to your desired appearance. + + + + +```css +/* Formbricks CSS */ +--fb-brand-color: red; +--fb-brand-text-color: white; +--fb-border-color: green; +--fb-border-color-highlight: rgb(13, 13, 12); +--fb-focus-color: red; +--fb-heading-color: yellow; +--fb-subheading-color: green; +--fb-info-text-color: orange; +--fb-signature-text-color: blue; +--fb-survey-background-color: black; +--fb-accent-background-color: rgb(13, 13, 12); +--fb-accent-background-color-selected: red; +--fb-placeholder-color: white; +--fb-shadow-color: var(--fb-brand-color); +--fb-rating-fill: rgb(13, 13, 12); +--fb-rating-hover: green; +--fb-back-btn-border: blue; +--fb-submit-btn-border: transparent; +--fb-rating-selected: black; +``` + + + + +We have an example of this in our [Demo project](https://github.com/formbricks/formbricks/blob/main/apps/demo/styles/globals.css.) here. + **Can’t figure it out? [Join our Discord!](https://formbricks.com/discord)** ---