Skip to content
BuildBase

Make the sign-in page yours

Give the hosted sign-in page your name, logos, colours, font, layout, links, languages and words, for all your apps or one, and check it in the preview.

The hosted sign-in page is the first screen of your product many customers see, so it should look like yours. Everything on it is set on one page in the BuildBase console, Branding: your name and logos, colours, font, layout, links, languages and the sentences at the top of each screen. A preview beside the settings follows every change before you save, and one button opens the real page. Your app's code changes for none of it.

Before you start

  • Your logo as an image file (PNG, JPG, GIF or SVG), ideally a second version for dark mode, and a small square favicon.
  • For Hide BuildBase badge and Custom CSS: a plan with white-label. For your own address, such as auth.acme.example: a plan with custom auth domains (Your own domain).

Open the Branding page

In the BuildBase console, press Users in the left-hand bar (the User management area), then Branding under Access. (It was the Sign-in page tab under Authentication; an old link to that tab opens this page.) The settings are in cards on the left, the Preview on the right. Nothing reaches your users until you press Save changes in the bar at the bottom. Discard puts back what was saved.

The preview has its own controls:

ControlWhat it does
Sign in, Step 2, Sign up, Forgot passwordThe screen shown. Step 2 is the password step of email first, offered when the flow has one. The other screens use the same card with their own title and line
Light, DarkPreview either theme
Desktop, PhoneThe width
Sample, Every method, Password onlyThe sample methods drawn: a typical setup, the most a page can hold, or the least
App, LanguageThe app and the language the preview shows, following the ones picked under Words on the page
Show where each sentence comes fromLabels each sentence: ours, your words, from all apps, not translated or may be out of date
Open the live page for Acme AnalyticsOpens the real hosted page for that app in a new tab, with what is saved

Under the controls, a line says whether the page fits a 1280 x 720 laptop (or, with Phone, a 360 x 740 phone) without scrolling, and what would make it fit. The preview draws sample methods, not your app's, and uses the console's own font. The live page shows your real methods, your font and your stylesheet.

Name, logos and favicon

In the Identity card:

  1. Name: your app's name, here Acme. It is the {app} in "Sign in to Acme", the name in people's authenticator apps and on their backup codes. Empty uses your organization's name.
  2. Small name: the browser tab, after the screen's title ("Forgot your password? · Acme"). Empty uses Name.
  3. Logo: press Choose, pick an image on the Assets tab or add one on the Upload tab, then Apply selection. It sits above the title on every screen, at most 32, 48 or 80 pixels tall (see Logo size under Layout). A see-through PNG or SVG at least twice that tall stays sharp on phones.
  4. Logo for dark mode: a light version, such as white lettering, for when the page is dark. Without one, the normal logo sits on a light patch.
  5. Favicon: the tiny icon in the browser tab. A simple square works best. Empty uses the logo.
  6. Website link: where the logo links, here https://acme.example. Empty and the logo is not a link.

The Choose the logo dialog: the Assets tab showing the organization's images as tiles, the Acme logo selected, an Upload tab, and Apply selection

The Identity card of the Branding page: Name Acme (marked 1), Small name Acme, the Acme logo with its Change button (marked 3), a white version for dark mode, the favicon and the website link https://acme.example, beside the preview showing the logo and Sign in to Acme

Colours, background and font

In the Theme card:

FieldExampleWhat it sets
Brand colour#4F46E5Buttons, links and focus rings. Button text is black or white, whichever reads better
Page backgroundEmptyThe colour behind the card. Empty follows the light or dark theme
Background imageThe Acme backdropAn image behind the card, or in the brand panel beside the form. Image fit: Fill the page or Repeat as a pattern
CornersRoundedSquare, slightly rounded, rounded or very rounded: the card, fields and buttons
Light or darkFollow the deviceFollow the device, always light, or always dark
FontPoppinsInter (the page's own), the device's own font, a Google font from the list, or your own font file (.woff2)

Under the brand colour, a line gives its contrast against the light and the dark page. Where it is under 4.5:1, links and focus rings on that page use a shade of your colour that reads; buttons keep the colour as you set it. Named fonts are served by the sign-in page itself, so a visitor's browser makes no request to Google or any other font service.

The Theme card: Brand colour #4F46E5 with its contrast line, the Acme background image set to Fill the page, Corners Rounded, Light or dark set to Follow the device and the font Poppins, beside the preview in that colour

Saved, the live page in light mode:

The live Acme sign-in page in light mode: the soft Acme background behind a rounded card with the Acme logo, Sign in to Acme in Poppins, and an indigo Sign in button

and on a device set to dark mode, with the logo for dark mode:

The same page on a device set to dark mode: a dark card with the white version of the Acme logo, light text and the brand colour on the button

Layout and brand panel

Every screen is a card between two bars: the language picker at the top, the badge and your links at the bottom. In the Layout card, three choices combine:

ChoiceChoicesDefault
FrameCard, FramelessCard
Brand panelNone, Left, RightNone
Sign-in flowAutomatic, All on one screen, Email firstAutomatic
  1. Sign-in flow: Automatic keeps every way in on one screen until it would be crowded, and asks for the email first when enterprise SSO is on or there are more than 3 other ways in. Email first always asks for the email, then the password, link or code; the second step looks the same for every address.
  2. Shown beside "Other ways to sign in": with more than 3 other ways in (an emailed link or code, a passkey, single sign-on, a phone code, a wallet), press up to 2 to keep under the main button; the rest open from Other ways to sign in. Pressing a third replaces the oldest.
  3. More layout options opens the rest:
SettingChoicesDefault
Card positionLeft, Centre, Right (wide screens only)Centre
Card styleShadow, Border, Flat (with a card)Shadow
Logo positionCentre, Left, Top bar, HiddenCentre
Logo sizeSmall (32px), Medium (48px), Large (80px)Medium
Social buttons placementAbove the form, Below the formAbove the form
Social buttons styleAutomatic, Buttons with names, Icons onlyAutomatic
Header alignmentCentre, LeftCentre

Brand panel Left or Right puts your background image in a panel beside the form from 1024 pixels wide, with the form and both bars centred in the other half (left and right swap in right-to-left languages). On phones hides the image, or shows it as a 160-pixel banner above the form with the headline. Without a background image, the panel is your brand colour. The panel's headline and line are written under Words on the page.

The language picker is switched on or off in the Language card.

The Layout card: Frame Card, Brand panel Left with On phones set to Show it as a banner, Sign-in flow (marked 1), the ways shown beside Other ways to sign in (marked 2) and More layout options (marked 3), beside the preview with the brand panel

The live page with a brand panel on a wide screen: the Acme panel image on the left with the headline Every metric, one place and its line, and the sign-in card centred in the right half

The brand panel on a phone: a strip of the panel image with the headline Every metric, one place above the card, then the sign-in form

In the Links card, fill in Help or support (a web page, or an inbox as mailto:[email protected]), Terms of service and Privacy policy. Each shows in the bar at the bottom of every screen when set, and sign-up names your terms and policy. The help link is also where the page sends someone who lost their two-step device or whose account is blocked. BuildBase's own terms and policy are never shown to your users.

The Links card: Help or support https://acme.example/help, Terms of service https://acme.example/terms and Privacy policy https://acme.example/privacy

The live sign-up screen: the line By continuing, you agree to our Terms of Service and Privacy Policy under Create account, and the Help, Terms and Privacy links in the bar at the bottom of the page

Languages

The sign-in page speaks 8 languages: English, Spanish, French, German, Japanese, Chinese, Hindi, Arabic. Each visitor gets the language your app asks for, then the one they pick in the page's footer, then their browser's, then the Default language in the Language card. Buttons, field labels and errors are always translated. Emails go out in English.

The Language card: the sign-in pages speak 8 languages, the order a visitor's language is chosen in, and the Default language English

To open the page in your app's language, set locale on the provider (or auth.locale for the sign-in page alone). This needs @buildbase/sdk 0.0.90 or later:

// app/providers.tsx
import type { ReactNode } from 'react';
import { SaaSOSProvider } from '@buildbase/sdk/react';

export function Providers({ children }: { children: ReactNode }) {
  return (
    <SaaSOSProvider
      serverUrl="https://api.console.buildbase.app"
      version="v1"
      orgId={process.env.NEXT_PUBLIC_BUILDBASE_ORG_ID!}
      locale="ar"
      auth={{
        clientId: process.env.NEXT_PUBLIC_BUILDBASE_CLIENT_ID!,
        redirectUrl: '/callback',
        callbacks: {
          /* your session callbacks */
        },
      }}
    >
      {children}
    </SaaSOSProvider>
  );
}

Arabic is laid out right to left, the brand panel included:

The live page in Arabic, laid out right to left: the brand panel moves to the right, the card and its labels read from the right, and the language picker shows Arabic

Words on the page

Words on the page holds every sentence you can write: each screen's title and the line under it, the waitlist's two screens, the sign-up consent checkbox, and the brand panel's headline and line. Ours name your app and are already in every language, so most apps never change them. Write {app} where the app's name goes.

  1. Under Screens, type your sentence in a box. Here the Sign in title becomes Welcome back to {app} and its description Sign in to see your team's dashboards., marked Your words. A box left empty shows ours, greyed in the box. Start from ours copies ours in to edit.

Words on the page, Sign in screen: the Title Welcome back to app and the Description Sign in to see your team's dashboards, marked as your words, beside the preview showing Welcome back to Acme

  1. In another language. Pick a language beside Editing ... in, such as French, and write your words in it. Each box shows the English above it. Nothing is machine translated: every sentence in another language is one you wrote.

  2. Out of date. A translation remembers the English it was written from. When the English changes, the translation is marked May be out of date, with Translated from beside the English now. The page keeps showing it until you edit it or press Mark as checked.

Words on the page in French: the Sign in description is marked May be out of date, with the English it was translated from beside the English now, and a Mark as checked button; the preview shows the page in French

  1. For one app. Pick an app beside Editing, such as Acme Analytics, to give it words of its own, for example when a staff app sits beside a customer app. A box left empty keeps the organization's words. The app's words are saved with its client, by the same Save changes.

Editing Acme Analytics in English: the app picker beside the language, and the line saying that where a box for Acme Analytics is empty, the organization's words show

  1. Where your words show (press Show table) lists every sentence in every language and what it reads: yours, ours, ours translated, not translated, or may be out of date. Choose a cell to edit that sentence.

Where your words show, opened: a table of each sentence in each language, saying whether it reads your words, ours, ours translated or your translation

  1. When a language has no version of your words, choose what its visitors read: Show your words as written (the default, so nothing changes until you choose), or Show our default in their language, so the whole page speaks theirs. Each choice shows what a visitor would read.

When a language has no version of your words, shown for German: Show your words as written, with the English sentence a German visitor would read, or Show our default in their language, chosen here, with our German sentence

For each visitor, each sentence is the first of: the app's words in their language, the app's words, the organization's words in their language, the organization's words, then ours in their language.

One app with its own look

Each client can have its own display name, logo, dark logo, favicon and brand colour. In the One app's own look card, under the theme, pick the app in App, fill in what should differ, and press Save changes: they are saved with its client. Anything left empty uses the organization's settings above. The words editor and the preview follow the same app, so its own words and look are edited and checked in one place. Switching to another app with changes unsaved asks first.

The app's Edit sheet, on the Settings tab of Authentication, says in its Sign-in page section what the app's look and words are, with a link here.

A sign-in started by that app shows its look, and so do the consent and device screens that name it, and the sign-in emails it sends:

The live page for the Acme Analytics app: its own logo and teal brand colour, the organization's title with the app's name, Welcome back to Acme Analytics, the app's own line Your product data, ready when you are, and the organization's brand panel

Your own address

By default the page lives on BuildBase's address. To put it on yours, such as auth.acme.example, for every app or one at a time, follow Put the sign-in page on your own domain: connect the domain on the Domains tab, add its DNS records, press Verify, and pick the apps that sign in there. The look you set here goes with the page.

Badge and custom CSS

The Advanced card holds two white-label settings. Hide BuildBase badge removes "Secured by BuildBase" from the bar at the bottom of every screen. Custom CSS adds your own stylesheet, up to 20,000 characters, on top of the theme. It cannot load files: url(), image(), @import and @font-face are refused, because the page holds a password; images and fonts have their own fields. Target the stable class names (bb-card, bb-title, bb-logo and the others under Class names you can style). The preview does not apply your stylesheet: open the live page to check it. On a plan without white-label, both are locked and say why.

The Advanced card on a plan without white-label: Hide BuildBase badge switched off and Custom CSS locked, each saying it comes with white-label, with the 20,000 character limit and what the stylesheet cannot load

/* Custom CSS */
.bb-card {
  border-width: 2px;
}
[data-bb-screen='register'] .bb-title {
  letter-spacing: -0.02em;
}

Check it works

  • The preview shows your logo, colour and words before you save.
  • After Save changes, Open the live page for Acme Analytics shows the same, in light and dark.
  • With ?lang=ar, or Arabic picked in the footer, the page reads right to left.
  • An app with its own look shows it on its live page, and the others keep the organization's.

Things to watch out for

  • Your own address moves passkeys, One Tap and bot protection with it. Read Things to watch out for in the domain guide before you move it.
  • The preview is not the page. It uses the console's font, two sample social buttons and none of your custom CSS. Check the live page.
  • Emails go out in English, whatever language the page shows.

If something goes wrong

What you seeWhyWhat to do
The live page still shows the old lookThe changes are not savedPress Save changes, then open the live page again
The preview has your font or stylesheet missingThe preview uses the console's font and never applies custom CSSCheck on the live page
A box shows "May be out of date"The English changed after the translation was writtenEdit the translation, or press Mark as checked
Visitors in another language see your EnglishThe sentence has no version in their languageWrite one, or choose Show our default in their language
Hide BuildBase badge and Custom CSS are lockedYour plan has no white-labelUpgrade, or keep the badge
"Small name must be at least 2 characters" under the boxSmall name is one character longUse 2 characters or more, or leave it empty
The dark page shows your logo on a light patchNo Logo for dark mode is setChoose a light version of the logo

Next steps