Skip to main content
Auth0 Universal Components is currently in Early Access. By using it, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. To learn more, read Product Release Stages.
Auth0 Universal Components are built on a flexible design system utilizes Tailwind CSS and Radix UI primitives. Styling is orchestrated through the Auth0ComponentProvider to allow you to choose between high-level presets or fine-grained CSS variable overrides. This architecture ensures that your identity flows look and feel like native parts of your application.

Get started

  1. Import the stylesheet.
Tailwind v4 users: Add @import "@auth0/universal-components-react/tailwind" to your CSS file.
  1. Add your brand color.
Done. All buttons, links, and active states now use your brand.

Theme presets

Pass themeSettings to Auth0ComponentProvider to switch between built-in themes.
App.tsx
PresetDescription
defaultStandard Auth0 look with balanced shadows and borders
minimalReduced visual weight with fewer shadows and lighter borders
roundedIncreased border radii for a softer appearance

Review CSS variables

All visual properties are driven by CSS custom properties. Override them in your stylesheet or via the themeSettings.variables prop.

Style components

Every component accepts a styling prop for targeted overrides without affecting global styles.
When to use:
  • variables - CSS custom property overrides scoped to the component
  • classes - Tailwind or custom classes applied to specific component parts
Each component exposes class targets for its major sections:SsoProviderCreate
  • SsoProviderCreate-header, SsoProviderCreate-wizard
  • ProviderSelect-root, ProviderDetails-root, ProviderConfigure-root
SsoProviderTable
  • SsoProviderTable-header, SsoProviderTable-table, SsoProviderTable-row
SsoProviderEdit
  • SsoProviderEdit-header, SsoProviderEdit-tabs
  • SsoProviderEdit-ssoTab, SsoProviderEdit-provisioningTab, SsoProviderEdit-domainsTab
DomainTable
  • DomainTable-header, DomainTable-table
  • DomainTable-createModal, DomainTable-configureModal, DomainTable-deleteModal
OrganizationDetailsEdit
  • OrganizationDetailsEdit-header, OrganizationDetailsEdit-form, OrganizationDetailsEdit-actions

Common customizations

Brand colors (Hex)

Convert your brand hex color to the format used in CSS:

Soft corners

For a more rounded aesthetic across all components:

Compact typography

For denser UIs:

Dark mode

The components automatically respond to the mode setting in themeSettings. To sync with your app’s dark mode:
Or use system preference: