Skip to main content

Disable use of shadow DOM

We use Shadow DOM to prevent CSS clashes between your CSS and the ones we provide. This guarantees that all our UI will render as expected.

However, this means that you cannot override our CSS using your CSS (though you can use JS to do that).

If you want to disable use of shadow dom, you can do so like:

import SuperTokens from "supertokens-auth-react";
import Passwordless from "supertokens-auth-react/recipe/passwordless";
import Session from "supertokens-auth-react/recipe/session";

appInfo: {
apiDomain: "...",
appName: "...",
websiteDomain: "..."
recipeList: [
contactMethod: "EMAIL_OR_PHONE", // This example will work with any contactMethod.
useShadowDom: false

If disabled, please be sure to check that our components render correctly - because your CSS might affect our components' UI (the other way around won't happen).

Which frontend SDK do you use?
supertokens-web-js / mobile