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.
How branding fits together
Section titled “How branding fits together”Three resources shape what a person sees when they sign in:
| Resource | Scope | What it holds |
|---|---|---|
| Theme | Tenant | A 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 profile | Issuer | A 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. |
| Asset | Tenant | A 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:
- The appearance profile the client names.
- The appearance profile the client’s audience names.
- 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.
Before you begin
Section titled “Before you begin”- Identity server 1.56 or later,
awctl0.25 or later, and Terraform provider 0.19 or later. - A tenant administrator seat, or a service account holding
tenant.adminoridentity.brandingAdmin. See Service accounts. - Asset storage on the install. The operator’s
asset.modemust beFileSystemorObjectStorage. See Install on Kubernetes.
Choose a layout
Section titled “Choose a layout”A deployment hosts up to three login page layouts. A theme is authored against one of them and cannot move to another.
| Layout | Shape | Choose it when |
|---|---|---|
| Center | One card, centred on a flat or image background. | You want the smallest page, or your install embeds the login UI. |
| Landscape | One 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. |
| Full | The 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:
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.
Create a theme
Section titled “Create a theme”In the console:
- Go to Branding > Themes and click New theme.
- In Display name, enter a name, such as
Corporate. - In Layout, select the layout. The layout is fixed once the theme exists.
- Click Create theme. The theme starts from the layout’s starter.
- 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.
- Variables: colours, fonts, radii, and shadows. Colours are six hex
digits without
- 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.
curl -s https://ISSUER_HOST/api/v1/ui/layouts \ | jq -r '.layouts[] | select(.key == "center")' > center.jsonjq -r .starter.stylesheet center.json > center.cssjq '.starter.stylesheetAttributes + {primary_main: "0B6E4F", control_radius: "999px"}' center.json > attrs.jsonjq '.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-g2gdtyuizi0yReplace 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:
curl -s https://ISSUER_HOST/api/v1/ui/layouts \ | jq '.layouts[] | select(.key == "center")' > center.jsonlocals { 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.
Upload a logo
Section titled “Upload a logo”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:
- Go to Branding > Assets and click New asset.
- 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.
- 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:
awctl identity assets create --tenant-id TENANT_ID \ --display-name "Logo" --path /logo.svg --mime-type image/svg+xmlawctl identity assets upload ASSET_ID --tenant-id TENANT_ID --file logo.svgcurl -s -o /dev/null -D - https://ISSUER_HOST/assets/logo.svg | grep -i "^HTTP\|content-type"Created tenants/t-01/assets/as-g2gdtyuizi1lUploaded 259 bytes to tenants/t-01/assets/as-g2gdtyuizi1lHTTP/2 200content-type: image/svg+xmlReplace 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"}Give an issuer its appearance
Section titled “Give an issuer its appearance”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-defaultis 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:
- Open the issuer and go to the Appearance tab.
- Click New, enter a Display name, and select the Theme.
- 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.
- 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:
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_IDCreated tenants/t-01/issuers/i-01/appearance-profiles/ap-g2gdtyuizi12ID DISPLAY_NAME THEME_ID IS_DEFAULTap-01 Default th-fzrdm4c8su80 trueap-g2gdtyuizi12 Corporate th-g2gdtyuizi0y falseTo move the default to the new profile:
awctl identity appearance-profiles make-default ap-g2gdtyuizi12 --tenant-id TENANT_ID --issuer-id ISSUER_IDtenants/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 itWith 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." })}Give one application its own look
Section titled “Give one application its own look”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:
awctl identity clients update CLIENT_ID --tenant-id TENANT_ID --issuer-id ISSUER_ID \ --appearance-profile-id ap-g2gdtyuizi12awctl identity clients describe CLIENT_ID --tenant-id TENANT_ID --issuer-id ISSUER_ID \ --fields name,display_name,appearance_profile_idUpdated tenants/t-01/issuers/i-01/clients/c-g2gdtyuizi18NAME DISPLAY_NAME APPEARANCE_PROFILE_IDtenants/t-01/issuers/i-01/clients/c-g2gdtyuizi18 Docs example app ap-g2gdtyuizi12The 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}Brand the admin console
Section titled “Brand the admin console”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:
- Go to Settings and find the Branding card.
- In Logo, click Choose and pick an image asset, or upload one.
- Optionally, set Logo for the dark scheme.
- 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.
Where mail gets its brand
Section titled “Where mail gets its brand”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 mail | Taken from | Falls back to |
|---|---|---|
| Brand name | The profile’s Display name | The tenant’s display name, then the issuer’s hostname |
| Primary colour | The profile’s primary_main override | Authwise blue |
| Logo | The profile’s main_logo override | The 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.
Theme reference
Section titled “Theme reference”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:
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.
| Variable | Default | Controls |
|---|---|---|
primary_main | 15054A | Buttons and the focus ring. The full layout’s image panel when it has no image. |
secondary_main | 5B4B8A | Checkboxes and secondary actions. |
text_primary | FFFFFF | Text on primary buttons. |
text_secondary | 333333 | Labels, headings, and body copy. |
text_muted | 6B6B76 | Hints, the footer, and secondary copy. |
link_color | 15054A | Sign-up, forgot-password, and footer links. |
error_color | B3261E | Error text. |
background | F4F4F6 | Page background. Landscape defaults to E9E8F0. |
card_background | FFFFFF | The card or form panel. |
card_border | E4E4EA | Card border colour, when card_border_width is not 0. |
input_background | FFFFFF | Input fill. |
input_border | C9C9D2 | Text fields, selects, and outlined buttons. |
input_text | 1F1F24 | Input text. |
font_family | Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif | The font stack, without quotes. For a web font, add an @import at the top of the stylesheet. |
font_size | 15px | The base size. Everything scales from it. |
heading_weight | 600 | Heading weight: 400, 500, 600, or 700. |
card_radius | 12px | Card corner radius. Full defaults to 0. |
card_border_width | 0 | Card border width. |
card_shadow | soft | Card shadow: none, soft, or strong. Full defaults to none. |
control_radius | 6px | Button and input radius. 999px gives pills. |
button_weight | 600 | Button text weight: 500, 600, or 700. |
logo_height | 56px | Logo height. Proportions are kept. |
logo_align | center | Logo and heading alignment: center or left. Landscape defaults to left. |
Variables for one layout
Section titled “Variables for one layout”| Layout | Variable | Default | Controls |
|---|---|---|---|
| Landscape | brand_order | 1 | Which side the logo and heading take: 1 left, 2 right. |
| Landscape | brand_width | 2fr | The brand column’s width, such as 40% or 320px. |
| Landscape | brand_background | transparent | A tint behind the brand column, as a CSS colour. |
| Full | form_order | 2 | Which side the form takes: 1 left, 2 right. The image takes the other. |
| Full | panel_width | 30rem | The form panel’s width. |
| Full | panel_text | FFFFFF | Text colour over the image. |
| Full | image_position | center | Which part of the image survives the crop, such as top or 30% 40%. |
| Full | overlay | rgba(21, 5, 74, 0.35) | A colour laid over the image. transparent for none. |
| Full | copy_position | bottom | Where the copy sits over the image: bottom, center, or top. |
| Full | image_mobile | band | On a phone: band shows a strip of the image above the form, none hides it. |
Content keys for images and page copy
Section titled “Content keys for images and page copy”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.
| Key | Layouts | Default | Where it appears |
|---|---|---|---|
main_logo | All | /assets/logo.png | The logo at the top of the brand block. |
favicon | All | Empty | The browser tab icon. Empty keeps the bundled icon. |
page_background_image | Center, landscape | Empty | A full-window image behind the card. |
brand_image | Landscape | Empty | An illustration under the heading in the brand column. |
background_image | Full | /assets/background.jpg | The image panel. |
page_title | All | Sign in | The browser tab title. |
heading | All | Sign in; empty on full | The heading in the brand block. On landscape, the two columns appear only when it is set. |
subheading | All | Empty; landscape Use your work account to continue. | Under the heading. |
help_text | All | Empty | One line under the form. |
footer_text | All | Empty | One line in the page footer. |
privacy_label, privacy_url | All | Privacy, empty | A footer link. An empty URL hides it. |
terms_label, terms_url | All | Terms, empty | A footer link. An empty URL hides it. |
help_label, help_url | All | Help, empty | A footer link. An empty URL hides it. |
panel_heading | Full | Welcome back | The heading over the image. |
panel_body | Full | Sign 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.
Content keys for wording
Section titled “Content keys for wording”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.
What’s next
Section titled “What’s next”- Sign in with a magic link and Realms for the sign-in methods the branded pages offer.
- Use your own domain to serve the pages at your own hostname.
- The CLI and Terraform provider pages for the full command and resource lists.