Skip to main content

Advanced Branding with Themes

Customize SecureAuth identity experiences per workspace by creating and binding custom themes. Themes allow advanced control over HTML structure, messages, and components.

Use advanced branding to build tenant-specific or organization-specific login flows, messages, and layouts using templates and reusable components.


What Can Be Customized

  • Login, Consent, MFA, and Error Pages
  • Messages (email/SMS)
  • Reusable Components (e.g., headers, footers)
  • Full HTML layout, structure, and behavior via Golang templates

Create a Theme

Steps to Create

  1. Go to Tenant Settings > Appearance, and open the Themes tab.
  2. Click + CREATE THEME.
  3. Enter a unique theme name.
  4. (Optional) Add a logo/icon URL to identify this theme in the UI.
  5. Click Create.

Result: Your new theme appears in the list.

Want to Duplicate?

Use the three-dot menu next to any theme > Duplicate Theme to reuse or iterate from an existing one.


Edit Templates

  1. Select the theme you want to customize.
  2. Navigate the three template categories:
Template TypeDescription
PagesUI pages (Login, Consent, MFA, Error)
MessagesOutgoing email or SMS messages
ComponentsCommon HTML blocks reused across templates

Use the live preview panel to test page and message templates as you edit.

Tip: You can insert OTPs or variables using [[OTP]], [[User.Email]], etc.


Bind a Theme to a Workspace

Themes are scoped per workspace.

  1. From the Themes list, click the three dots next to your theme.
  2. Select Bind to Workspace.
  3. Choose the workspace and click Save.

Each workspace can have only one active theme at a time.


CI/CD Integration

For production use, you can:

  • Store and manage themes in source control
  • Use the CI/CD repo integration to promote changes across environments

Preview Themes

  • View live updates inside the preview editor.
  • Switch between page types (Login, Consent, MFA, etc.)
  • Visual validation before publishing.

Summary of Advanced Branding Options

AreaWhat You Control
PagesHTML layout and styles
MessagesEmail/SMS content and branding
ComponentsShared UI parts across templates
Workspace BindingAssign different themes per org
CI/CDAutomate and version-control themes

Troubleshooting

IssueCauseSolution
Save disabledTemplate errorOpen browser console for syntax issues
Preview brokenMalformed HTML or tokensValidate placeholders and layout
Changes not appliedTheme not boundEnsure workspace has correct theme