Skip to content

Brand the login pages

The hosted login pages, the account page, and the admin console take your colours, fonts, logo, and wording. This page shows how to choose a layout, create a theme, upload a logo, give an issuer its appearance, and give one application a look of its own.

Three resources shape what a person sees when they sign in:

ResourceScopeWhat it holds
ThemeTenantA layout, a stylesheet, the stylesheet’s variables with their default values, and the page content: logo URLs and every piece of wording. The layout is fixed when the theme is created.
Appearance profileIssuerA theme, plus overrides for any of its variables and content keys. The profile wins over the theme key by key. Each issuer has one default profile.
AssetTenantA file the pages serve, such as a logo or a background image, with a path and a MIME type.

At sign-in, the issuer renders the first of these that exists:

  1. The appearance profile the client names.
  2. The appearance profile the client’s audience names.
  3. The issuer’s default appearance profile.

If an issuer has no profile, its pages render the deployment’s default layout with the layout’s built-in defaults. Pages that start without a client, such as a mailed password reset or magic link, use the issuer’s default profile.

  • Identity server 1.56 or later, awctl 0.25 or later, and Terraform provider 0.19 or later.
  • A tenant administrator seat, or a service account holding tenant.admin or identity.brandingAdmin. See Service accounts.
  • Asset storage on the install. The operator’s asset.mode must be FileSystem or ObjectStorage. See Install on Kubernetes.

A deployment hosts up to three login page layouts. A theme is authored against one of them and cannot move to another.

LayoutShapeChoose it when
CenterOne card, centred on a flat or image background.You want the smallest page, or your install embeds the login UI.
LandscapeOne wide card: logo, heading, and an illustration on one side, the form on the other. The sides can swap.You have a heading and an illustration, and sign-in opens on a desktop.
FullThe page is the canvas: a full-height image panel with its own heading and copy beside the form panel.You have a strong photograph or brand image to show.

To see which layouts your install hosts, call the issuer’s layout catalog. Replace ISSUER_HOST with the issuer’s hostname:

Terminal window
curl -s https://ISSUER_HOST/api/v1/ui/layouts | jq '.default, [.layouts[] | {key, available}]'
"center"
[
{ "key": "center", "available": true },
{ "key": "full", "available": true },
{ "key": "landscape", "available": true }
]

The catalog also carries each layout’s starter theme: its stylesheet template, the variables with their defaults, and the content keys. The console and the commands below create themes from it.

In the console:

  1. Go to Branding > Themes and click New theme.
  2. In Display name, enter a name, such as Corporate.
  3. In Layout, select the layout. The layout is fixed once the theme exists.
  4. Click Create theme. The theme starts from the layout’s starter.
  5. Click Open editor. The editor shows the real login page in preview mode beside three tabs:
    • Variables: colours, fonts, radii, and shadows. Colours are six hex digits without #.
    • Content: the logo, the heading, the footer links, and every label the pages show. An empty value shows the layout’s English default.
    • Stylesheet: the CSS template itself, for changes the variables cannot express.
  6. Click Save. Edits are a draft until you save.

With awctl, take the starter from the layout catalog and create the theme from its parts. The stylesheet is a template over CSS: each {{ .name }} is one variable, and the schemas describe the variables and content keys to the console’s editor.

Terminal window
curl -s https://ISSUER_HOST/api/v1/ui/layouts \
| jq -r '.layouts[] | select(.key == "center")' > center.json
jq -r .starter.stylesheet center.json > center.css
jq '.starter.stylesheetAttributes + {primary_main: "0B6E4F", control_radius: "999px"}' center.json > attrs.json
jq '.starter.content + {heading: "Welcome to Example", main_logo: "/assets/logo.svg"}' center.json > content.json
awctl identity themes create --tenant-id TENANT_ID \
--display-name "Corporate" --layout center \
--stylesheet "$(cat center.css)" \
--stylesheet-attributes "$(cat attrs.json)" \
--content "$(cat content.json)" \
--stylesheet-attributes-schema "$(jq .stylesheetAttributesSchema center.json)" \
--content-schema "$(jq .contentSchema center.json)"
Created tenants/t-01/themes/th-g2gdtyuizi0y

Replace TENANT_ID with the tenant’s ID, such as t-01. The last segment of the name is the theme ID.

With Terraform, save the layout entry next to your configuration and take the stylesheet, the schemas, and the starter values from it. The merge keeps every key the template reads and lets your values win:

Terminal window
curl -s https://ISSUER_HOST/api/v1/ui/layouts \
| jq '.layouts[] | select(.key == "center")' > center.json
locals {
center = jsondecode(file("${path.module}/center.json"))
}
resource "authwise_theme" "corporate" {
display_name = "Corporate"
layout = "center"
stylesheet = local.center.starter.stylesheet
stylesheet_attributes_schema = jsonencode(local.center.stylesheetAttributesSchema)
content_schema = jsonencode(local.center.contentSchema)
stylesheet_attributes = jsonencode(merge(local.center.starter.stylesheetAttributes, {
primary_main = "0B6E4F"
link_color = "0B6E4F"
control_radius = "999px"
}))
content = jsonencode(merge(local.center.starter.content, {
heading = "Welcome to Example"
main_logo = "/assets${authwise_asset.logo.path}"
}))
}

authwise_asset.logo is the logo from Upload a logo. Naming it by reference keeps the theme and the asset’s path from drifting apart.

See the authwise_theme resource for every attribute.

An asset is a file with a path. The issuer serves it to the public at https://ISSUER_HOST/assets/PATH, and a theme or profile names it by that path, such as /assets/logo.svg. Images and fonts are accepted: PNG, SVG, JPEG, WebP, GIF, ICO, and WOFF, WOFF2, TTF, and OTF, up to 8 MiB each.

In the console:

  1. Go to Branding > Assets and click New asset.
  2. Choose the file. Path takes the file’s name, and Mime type is read from the file. Change the path if the pages should serve it under another name.
  3. Click Create asset. The console creates the asset and uploads the file.

In the theme editor, every image field has a picker that lists your assets and can upload a new one.

With awctl, create the asset, upload the file, and check that the issuer serves it:

Terminal window
awctl identity assets create --tenant-id TENANT_ID \
--display-name "Logo" --path /logo.svg --mime-type image/svg+xml
awctl identity assets upload ASSET_ID --tenant-id TENANT_ID --file logo.svg
curl -s -o /dev/null -D - https://ISSUER_HOST/assets/logo.svg | grep -i "^HTTP\|content-type"
Created tenants/t-01/assets/as-g2gdtyuizi1l
Uploaded 259 bytes to tenants/t-01/assets/as-g2gdtyuizi1l
HTTP/2 200
content-type: image/svg+xml

Replace ASSET_ID with the ID the create command printed. Uploading again replaces the file. awctl identity assets download ASSET_ID --out logo.svg fetches it back.

With Terraform, the asset and its file are two resources. Editing the file plans an in-place update that uploads it again:

resource "authwise_asset" "logo" {
display_name = "Logo"
path = "/logo.svg"
mime_type = "image/svg+xml"
}
resource "authwise_asset_content" "logo" {
asset_id = authwise_asset.logo.asset_id
source = "${path.module}/logo.svg"
}

An appearance profile binds a theme to an issuer and can override any variable or content key of the theme. The first profile an issuer gets becomes its default. An issuer with several profiles has exactly one default, and the server keeps it that way:

  • make-default is the only way to move the default.
  • A write that would set a second default, or clear the current one, is refused.
  • The default cannot be deleted while the issuer has other profiles.

In the console:

  1. Open the issuer and go to the Appearance tab.
  2. Click New, enter a Display name, and select the Theme.
  3. Click Open editor. Every variable and content key shows the theme’s value as its placeholder. Enter a value to override it, or reset a field to fall back to the theme.
  4. Click Save. If this is the issuer’s first profile, it is now the default. Otherwise, click Make default in the list when you are ready to switch.

With awctl:

Terminal window
awctl identity appearance-profiles create --tenant-id TENANT_ID --issuer-id ISSUER_ID \
--display-name "Corporate" --theme-id THEME_ID \
--content '{"subheading": "Use your Example account to continue."}'
awctl identity appearance-profiles list --tenant-id TENANT_ID --issuer-id ISSUER_ID
Created tenants/t-01/issuers/i-01/appearance-profiles/ap-g2gdtyuizi12
ID DISPLAY_NAME THEME_ID IS_DEFAULT
ap-01 Default th-fzrdm4c8su80 true
ap-g2gdtyuizi12 Corporate th-g2gdtyuizi0y false

To move the default to the new profile:

Terminal window
awctl identity appearance-profiles make-default ap-g2gdtyuizi12 --tenant-id TENANT_ID --issuer-id ISSUER_ID
tenants/t-01/issuers/i-01/appearance-profiles/ap-g2gdtyuizi12 is now the default (was tenants/t-01/issuers/i-01/appearance-profiles/ap-01)

Deleting the default while the issuer has another profile is refused:

error: rpc error: code = FailedPrecondition desc = appearance profile ap-01 is its issuer's default: make another profile the default with MakeDefaultAppearanceProfile before deleting it

With Terraform, set is_default on the one profile that should be the default and leave it out on the others. To move the default, set it on the new profile and remove it from the old one in the same apply:

resource "authwise_appearance_profile" "corporate" {
issuer_id = authwise_issuer.login.issuer_id
display_name = "Corporate"
theme_id = authwise_theme.corporate.theme_id
is_default = true
content = jsonencode({
subheading = "Use your Example account to continue."
})
}

A client or an audience can name an appearance profile of its own. The client’s profile wins over the audience’s, and both win over the issuer’s default. Use it for a partner portal or a second brand that signs in at the same issuer.

In the console, open the audience and enter the profile’s ID in Appearance profile. A client’s profile is set with awctl or Terraform.

With awctl:

Terminal window
awctl identity clients update CLIENT_ID --tenant-id TENANT_ID --issuer-id ISSUER_ID \
--appearance-profile-id ap-g2gdtyuizi12
awctl identity clients describe CLIENT_ID --tenant-id TENANT_ID --issuer-id ISSUER_ID \
--fields name,display_name,appearance_profile_id
Updated tenants/t-01/issuers/i-01/clients/c-g2gdtyuizi18
NAME DISPLAY_NAME APPEARANCE_PROFILE_ID
tenants/t-01/issuers/i-01/clients/c-g2gdtyuizi18 Docs example app ap-g2gdtyuizi12

The same flag exists on awctl identity audiences update.

With Terraform, set appearance_profile_id on the authwise_client or authwise_audience resource:

resource "authwise_client" "partner_portal" {
# ...
appearance_profile_id = authwise_appearance_profile.partner.appearance_profile_id
}

The admin console shows your logo in place of the Authwise emblem and product name, for everyone who opens the tenant. The logo is an image asset of the tenant, and the tenant’s configuration names it.

In the console:

  1. Go to Settings and find the Branding card.
  2. In Logo, click Choose and pick an image asset, or upload one.
  3. Optionally, set Logo for the dark scheme.
  4. Click Save.

With Terraform, name the assets in the tenant’s configuration:

data "authwise_tenant_config" "this" {
branding = {
logo_asset_id = authwise_asset_content.logo.asset_id
logo_dark_asset_id = authwise_asset_content.logo_dark.asset_id
}
}
resource "authwise_tenant_config" "this" {
config = data.authwise_tenant_config.this.json
}

While the tenant’s configuration names an asset, deleting that asset is refused. Change the branding first.

Invitations, magic links, and password resets carry a brand name, a primary colour, and a logo. They come from the appearance profile of the sign-in that sent the mail, or the issuer’s default profile:

In the mailTaken fromFalls back to
Brand nameThe profile’s Display nameThe tenant’s display name, then the issuer’s hostname
Primary colourThe profile’s primary_main overrideAuthwise blue
LogoThe profile’s main_logo overrideThe tenant’s console logo, then no logo

Only the profile’s own overrides count. A colour or logo set on the theme does not reach mail, so set primary_main and main_logo on the issuer’s default profile when mail should match the pages. The message editor’s preview shows which source it used.

The keys below come from the layout catalog, so your install’s catalog is the source of truth. To print every content key with its default, run:

Terminal window
curl -s https://ISSUER_HOST/api/v1/ui/layouts | jq '.layouts[] | select(.key == "center") | .starter.content'

Stylesheet variables shared by every layout

Section titled “Stylesheet variables shared by every layout”

Colours are six hex digits without #. Lengths are CSS lengths.

VariableDefaultControls
primary_main15054AButtons and the focus ring. The full layout’s image panel when it has no image.
secondary_main5B4B8ACheckboxes and secondary actions.
text_primaryFFFFFFText on primary buttons.
text_secondary333333Labels, headings, and body copy.
text_muted6B6B76Hints, the footer, and secondary copy.
link_color15054ASign-up, forgot-password, and footer links.
error_colorB3261EError text.
backgroundF4F4F6Page background. Landscape defaults to E9E8F0.
card_backgroundFFFFFFThe card or form panel.
card_borderE4E4EACard border colour, when card_border_width is not 0.
input_backgroundFFFFFFInput fill.
input_borderC9C9D2Text fields, selects, and outlined buttons.
input_text1F1F24Input text.
font_familyInter, system-ui, -apple-system, Segoe UI, Roboto, sans-serifThe font stack, without quotes. For a web font, add an @import at the top of the stylesheet.
font_size15pxThe base size. Everything scales from it.
heading_weight600Heading weight: 400, 500, 600, or 700.
card_radius12pxCard corner radius. Full defaults to 0.
card_border_width0Card border width.
card_shadowsoftCard shadow: none, soft, or strong. Full defaults to none.
control_radius6pxButton and input radius. 999px gives pills.
button_weight600Button text weight: 500, 600, or 700.
logo_height56pxLogo height. Proportions are kept.
logo_aligncenterLogo and heading alignment: center or left. Landscape defaults to left.
LayoutVariableDefaultControls
Landscapebrand_order1Which side the logo and heading take: 1 left, 2 right.
Landscapebrand_width2frThe brand column’s width, such as 40% or 320px.
Landscapebrand_backgroundtransparentA tint behind the brand column, as a CSS colour.
Fullform_order2Which side the form takes: 1 left, 2 right. The image takes the other.
Fullpanel_width30remThe form panel’s width.
Fullpanel_textFFFFFFText colour over the image.
Fullimage_positioncenterWhich part of the image survives the crop, such as top or 30% 40%.
Fulloverlayrgba(21, 5, 74, 0.35)A colour laid over the image. transparent for none.
Fullcopy_positionbottomWhere the copy sits over the image: bottom, center, or top.
Fullimage_mobilebandOn a phone: band shows a strip of the image above the form, none hides it.

Image keys take a URL. A path that starts with / is served from the issuer, so /assets/logo.svg is the asset at that path. An empty optional value shows nothing.

KeyLayoutsDefaultWhere it appears
main_logoAll/assets/logo.pngThe logo at the top of the brand block.
faviconAllEmptyThe browser tab icon. Empty keeps the bundled icon.
page_background_imageCenter, landscapeEmptyA full-window image behind the card.
brand_imageLandscapeEmptyAn illustration under the heading in the brand column.
background_imageFull/assets/background.jpgThe image panel.
page_titleAllSign inThe browser tab title.
headingAllSign in; empty on fullThe heading in the brand block. On landscape, the two columns appear only when it is set.
subheadingAllEmpty; landscape Use your work account to continue.Under the heading.
help_textAllEmptyOne line under the form.
footer_textAllEmptyOne line in the page footer.
privacy_label, privacy_urlAllPrivacy, emptyA footer link. An empty URL hides it.
terms_label, terms_urlAllTerms, emptyA footer link. An empty URL hides it.
help_label, help_urlAllHelp, emptyA footer link. An empty URL hides it.
panel_headingFullWelcome backThe heading over the image.
panel_bodyFullSign in to continue to your account.The text over the image. Hidden on a phone.

There is no brand-name key. The brand on the page is the logo and the heading.

Every label, prompt, and message the pages show is a content key, grouped by screen: the identifier and password form, social sign-in buttons, sign-up and sign-in links, password reset, waiting times, address confirmation and invitations, magic links, passkeys, the second step and remembered devices, security keys, recovery codes, and consent. Each has an English default, and an empty value falls back to it. The console’s Content tab lists them all with their defaults. Keys such as retry_seconds and recovery_request_throttled carry a {n} or {time} placeholder that the page fills in.

The account page at ISSUER_HOST/account/ takes the same variables and reads main_logo, favicon, page_title, and the footer keys.