Use this file to discover all available pages before exploring further.
Auth0 Universal Components for Native Applications SDKs share a design token model.Every visual property, such as colors, typography, spacing, corner radii, and component sizes are expressed as a named token where you can override one value without rewriting layouts.The default theme renders the standard Auth0 style without any configuration, you only need to supply your own theme to match your brand.
The iOS SDK uses a SwiftUI @Environment based theme. You can wrap any SDK view using the .auth0Theme(_:), so that every component using that modifier renders the injected Auth0Theme automatically.
You can configure for full brand alignment, by providing your own brand theme that implements the three color category protocols and wire them into an Auth0ColorTokens container:
struct BrandBackground: Auth0BackgroundColorTokens { var primary: Color { Color("Background/Primary", bundle: .main) } var primarySubtle: Color { Color("Background/Primary", bundle: .main).opacity(0.35) } var inverse: Color { Color("Background/Inverse", bundle: .main) } var accent: Color { Color("Background/Accent", bundle: .main) } var layerTop: Color { Color("Background/LayerTop", bundle: .main) } var layerMedium: Color { Color("Background/LayerMedium", bundle: .main) } var layerBase: Color { Color("Background/LayerBase", bundle: .main) } var error: Color { Color("Background/Error", bundle: .main) } var errorSubtle: Color { Color("Background/ErrorSubtle", bundle: .main) } var success: Color { Color("Background/Success", bundle: .main) } var successSubtle: Color { Color("Background/SuccessSubtle", bundle: .main) }}struct BrandColors: Auth0ColorTokens { var background: any Auth0BackgroundColorTokens { BrandBackground() } var text: any Auth0TextColorTokens { DefaultAuth0TextColorTokens() } var border: any Auth0BorderColorTokens { DefaultAuth0BorderColorTokens() }}MyAccountAuthMethodsView() .auth0Theme(Auth0Theme(colors: BrandColors()))
Colors are split across three focused protocols, Auth0BackgroundColorTokens, Auth0TextColorTokens, and Auth0BorderColorTokens and aggregated into Auth0ColorTokens.All color assets are adaptive, so light and dark modes are handled automatically by the asset catalog.
Each token is an Auth0TextStyle bundling font, tracking, and lineSpacing. You can apply them using the .auth0TextStyle(_:) view modifier.
Token
Typeface
Size
Weight
Line height
Tracking
Usage
displayLarge
Inter
34 pt
SemiBold
41 pt
−0.20 pt
Hero headings, passkey enrollment
displayMedium
Inter
28 pt
SemiBold
34 pt
−0.10 pt
Major screen titles, error headings
display
Inter
22 pt
SemiBold
28 pt
−0.05 pt
Section-level headings
titleLarge
Inter
20 pt
SemiBold
25 pt
0 pt
Screen titles, subheading cards
title
Inter
17 pt
SemiBold
24 pt
0 pt
In-content titles
body
Inter
17 pt
Regular
24 pt
0 pt
Descriptions, body copy
bodySmall
Inter
15 pt
Regular
20 pt
+0.10 pt
Secondary body copy, footnotes
label
Inter
16 pt
Medium
21 pt
+0.10 pt
Button labels, form field labels
helper
Inter
13 pt
Regular
18 pt
+0.20 pt
Captions, helper text
overline
Inter
11 pt
Regular
16 pt
+0.77 pt
Overline and category labels
If typeface Inter is not bundled in the host app, SwiftUI uses the SF Pro typeface automatically.
Spacing — Auth0SpacingTokens
Spacing defaults to 4 pt grid. Use the token name in design hand-offs to customize spacing, not the raw pixel value.
Token
Default
Description
xxs
4 pt
Minimal gap between tightly coupled elements
xs
8 pt
Small gap between grouped elements
sm
12 pt
Medium internal padding
md
16 pt
Standard component and container padding
lg
24 pt
Larger padding for major sections
xl
32 pt
Extra-large padding
xxl
48 pt
Double-extra-large padding
xxxl
56 pt
Triple-extra-large padding
Radius — Auth0RadiusTokens
Token
Default
Usage
small
8 pt
Single character-input cells (OTP, PIN digits)
medium
12 pt
Banner and feedback cards
inputField
14 pt
Text inputs, code display containers
button
16 pt
CTA buttons, auth-method cards
pill
24 pt
Pill-shaped outline buttons
Sizes — Auth0SizeTokens
Token
Default
Usage
buttonHeight
48 pt
All primary and secondary action buttons
inputHeight
60 pt
Text and phone-number input fields
size4xlDimen
48 pt
Width of a single character-input cell
size5xlDimen
56 pt
Height of a single character-input cell
containerSizeLargeDimen
52 pt
Height of a read-only code display container
iconSmall
16 pt
Small icons — chevrons, info indicators, checkmarks
iconMedium
24 pt
Standard icons — authentication-method images
iconLarge
28 pt
Large icons — three-dots menu
The Android SDK uses a Jetpack Compose theme that mirrors Material 3’s MaterialTheme pattern.You can wrap SDK content using Auth0Theme { ... } to provide tokens, or pass themeConfiguration directly to AuthenticatorSettingsComponent.You can read tokens inside any composable using Auth0Theme.colors, Auth0Theme.typography, Auth0Theme.shapes, Auth0Theme.dimensions, and Auth0Theme.sizes.
To customize typography use the compose token TextStyle. You can override it with Auth0Typography.default().copy(...).
Token
Usage
displayMedium, display
Hero / major screen headings
titleLarge, title
Screen titles, in-content titles
body, bodySmall
Descriptions, body copy, footnotes
label
Button labels, form field labels
helper, overline
Captions, helper text, category labels
Shapes — Auth0Shapes
Token
Usage
none
No rounding
extraSmall, small, medium, large, extraLarge
Standard rounding scale
full
Fully rounded (pill)
Dimensions — Auth0Dimensions
You can use Auth0Theme.dimensions.* to configure spacing values on a 4 dp grid: spacingXxs, spacingXs, spacingSm, spacingMd, spacingLg, spacingXl, spacingXxl, spacingXxxl.
Sizes — Auth0Sizes
You can use Auth0Theme.sizes.* to configure component dimensions: buttonHeight, inputHeight, icon sizes, OTP cell dimensions.