Stack Auth
GuidesSDKComponents
API Reference
Components Overview
Authentication
<SignIn /><SignUp /><CredentialSignIn /><CredentialSignUp /><MagicLinkSignIn /><ForgotPassword /><PasswordReset />
OAuth
<OAuthButton /><OAuthButtonGroup />
User Interface
<UserButton /><AccountSettings /><SelectedTeamSwitcher />
Layout & Providers
<StackProvider /><StackHandler /><StackTheme />
Stack Auth Docs

<StackTheme />

A component that applies a theme to its children.

For more information, please refer to the color and styles guide.

Props

PropTypeDefaultDescription
themeoptional
ThemeConfig—Custom theme configuration to override the default theme.
childrenoptional
React.ReactNode—Child components to be rendered within the themed context.

Example

const theme = {
  light: {
    primary: 'red',
  },
  dark: {
    primary: '#00FF00',
  },
  radius: '8px',
}

// ...

<StackTheme theme={theme}>
  {/* children */}
</StackTheme>
Previous Page<StackHandler />

On this page

PropsExample

Stack Auth AI

Experimental: AI responses may not always be accurate—please verify important details.

For the most accurate information, please join our Discord or email us.

How can I help?

Ask me about Stack Auth while you browse the docs.