Branding, HTML, and CSS
Configure visual identity and custom frontend code.
Branding, HTML, and CSS
Use the Styles group under Customization to change the appearance of Unidy's hosted sign-in and account pages. Start with the setting that matches your task; these screens are independent.
| I want to… | Open | When a change takes effect |
|---|---|---|
| Change colours, logos or the browser icon | General | Save the changed card. |
| Add approved markup or scripts, or change link-preview text | Custom Code in HTML | Save the changed section. |
| Add targeted styles with a preview and publishing step | Custom CSS | Publish CSS and enable its block. Other block settings can take effect on save. |
General settings and HTML are specific to the selected brand. CSS blocks can belong to one brand or be global; a global block applies across brands. Brand administrators manage their own brand's blocks. Global CSS is managed by Unidy staff.
Access and scope
Select the correct brand and environment before editing. With role-based access control enabled, you need read permission to open the relevant resource and write permission to change it; actions such as deleting or managing a CSS block have their own permissions. See Roles and feature availability. On installations using legacy admin roles, General requires superadmin access, while the HTML and CSS screens require admin access.
| Surface | General branding | Custom HTML and CSS blocks |
|---|---|---|
| Unidy-hosted sign-in, registration, account and consent pages | Brand colours and images where the page uses them | Applied by the customer-page layout; CSS also follows its block settings. |
| Embedded pages rendered by Unidy | Brand colours and images where used | Applied by the customer-page layout. |
| Admin dashboard | Brand variables, including image URLs, and the favicon | Excluded. |
| Pages rendered by your own app, including an SDK sign-in UI | Configure in your app | Configure in your app. |
| Emails | Configure in the email editor | Configure in the email editor. |
For email appearance, use Email templates and delivery. For menu items and legal pages, use Pages, navigation, and legal content.
Change colours or images
- Open Customization → General.
- Edit Colors or Images. Each card is saved independently.
- Choose Save changes on the card you changed. Reset discards unsaved edits in that card.
- Reload a hosted customer page and check the result on a narrow and a wide screen. Check text contrast, focus indicators and the readability of buttons and links.
These saves are live; there is no private draft for General settings. Newly rendered pages request the updated branding. A browser tab that was already open may need a reload.

Customization → General — the seeded brand has never been saved, so every value is the product default and neither card shows a Save changes button.
Colours
Use complete hex values with a leading #, such as #0055ff. This avoids relying on how individual page styles handle abbreviated or hashless input.
| Field | Default | Purpose |
|---|---|---|
| Background color | #0055ff | Main brand colour for navigation, buttons and other accents. Related shades are derived from it. |
| Foreground color | #ffffff | Text and icons on the main brand colour. |
| Text color | #20262c | Body text on light surfaces. |
Images
| Field | Formats | File size | Maximum dimensions | Purpose |
|---|---|---|---|---|
| Logo | PNG, JPEG, SVG | Below 1 MB | 500 × 500 px | Main brand logo. |
| Navbar logo | PNG, JPEG, SVG | Below 1 MB | 500 × 500 px | Logo in navigation. |
| Favicon | PNG | Below 200 KB | 500 × 500 px | Browser tab icon, including the dashboard. |
| Background image | PNG, JPEG | Below 5 MB | 5120 × 2880 px | Page background/header imagery and the OpenGraph share image. |
| USP background image | PNG, JPEG | Below 5 MB | 5120 × 2880 px | Background for the split sign-in page's supporting panel. |
Images are optional; missing images use the product's defaults. Upload a replacement or use the field's removal control, then save the Images card. There is no separate OpenGraph image field: check that the Background image also works when your sign-in page is shared as a link.
Add HTML or link-preview metadata
- Open Customization → Custom Code in HTML.
- Choose the section for your change.
- Review the snippet or text, then choose Save changes in that section.
- Reload a customer page and verify the result. For scripts, confirm both that they load and that sign-in still works.
| Section | Use it for | Placement |
|---|---|---|
| Header Code | Approved scripts, metadata or resource hints that belong in the document head | Inside <head>, before the normal page stylesheets. |
| Body Code | Approved markup or scripts that belong after the page content | At the end of <body>. |
| OpenGraph | Default title and description for shared links | Page metadata; these values are treated as text. |

Customization → Custom Code in HTML — three sections, each independently saved · highlight on the change-history icon.
HTML saves are live
Header Code and Body Code are inserted as raw markup without a syntax check or sanitisation. A script can access the customer page, including sign-in forms, and malformed markup can disrupt it. Use reviewed code and a test brand or environment before applying a new snippet to live customer pages. Keep a copy of the previous content so you can restore it if necessary.
For a tag manager, follow the vendor's placement instructions; some integrations need both head and body snippets. Use Custom CSS for style rules so you can preview and publish them separately. Stylesheet order alone does not determine which rule wins: specificity, importance and other CSS cascade rules also apply.
Other uses include approved chat widgets, support tools, and cookie-consent banners. Check their effect on page performance, customer privacy choices, and sign-in before launch.
Create and publish a CSS block
A CSS block has Published CSS, optional Draft CSS, an Enabled switch and an optional Match pattern. The draft lets you test CSS without replacing the published text.

Customization → Custom CSS — empty on the seeded brand, so the columns are visible without any rows to read · highlight on Add CSS block +.
- Open Customization → Custom CSS, then choose Add CSS block.
- Give it a descriptive Title, such as “Sign-in link focus indicators”.
- Set Match to the URL path you want to style. For exactly the sign-in page at
/logins, use^/logins$. Leave it empty only if the styles should apply to every eligible customer page. - Replace the commented example in Css Code with your own CSS. For example:
/* For the hosted page at /logins. Check the actual path in your browser. */
body[class~="path-/logins"] a:focus-visible {
outline: 3px solid var(--brand-background-color);
outline-offset: 3px;
}- Save. A new block starts disabled; the CSS is saved as a draft.
- Open the block and choose Preview for myself. Open a hosted customer page for this brand in the same browser and check the appearance and keyboard interaction.
- Choose Publish draft when the CSS is ready. Publishing copies the draft into Published CSS and clears the draft.
- Choose Enable if the block is disabled.
- Choose Stop preview or Clear all previews. Then reload a page the Match pattern should include and one it should exclude. A separate browser without the preview cookie also works for this check.
Preview does not test the Match pattern
Preview uses the draft, or the published CSS when there is no draft, even if the block is disabled or its Match pattern does not match. It is limited to customer-rendered pages for the block's brand or a global block; it does not enable custom CSS in the dashboard. Publishing does not end preview. Stop preview before checking what customers receive.
Preview is stored in this browser for up to 24 hours. The preview toolbar lets you remove individual blocks or clear all previews. It does not enable preview in another browser.
Edit a live block
- Open the block and choose Edit.
- Change only the CSS if you want a draft-only change, then Save.
- Preview the draft and verify it on the intended customer pages.
- Publish draft to replace the live CSS. If the block is enabled, customers receive the newly published text when their pages reload.
- Stop preview and verify the live result and URL scope.
A draft protects the CSS text, not every setting
Changing a live block's Match or brand assignment takes effect on save. These fields are not held with Draft CSS. Changing the enabled state also changes delivery immediately. If you need to change the scope, plan the live effect separately or first test a new disabled block.
Discard, disable or delete
| Action | Result |
|---|---|
| Discard draft | Removes unpublished CSS; Published CSS remains unchanged. Discarded text cannot be recovered through this action. |
| Disable | Stops normal delivery of the block while retaining the CSS. A browser previewing it can still see it. |
| Enable | Makes Published CSS eligible for delivery to matching pages. It does not publish a draft. |
| Stop preview | Removes this block from the current browser's preview. It does not disable the block for customers. |
| Delete | Removes the block. Save a copy of any CSS you may need later; use Disable when you only need to stop it temporarily. |
CSS reference
Match and brand scope
Match is a regular expression checked against the URL path, without the hostname or query string. Keep it simple. Invalid patterns and patterns longer than 500 characters are rejected.
| Pattern | Intended scope |
|---|---|
| Empty | All eligible customer pages. |
^/logins$ | Exactly /logins. |
| `^/profile(?:/ | $)` |
^/(logins|registrations) | Paths starting with /logins or /registrations; check the actual registration path used by your flow. |
Match selects pages, not elements. A broad rule such as a { ... } affects every matching link on each selected page; add suitable selectors in the CSS itself.
Typical uses include hiding a background image, changing page-specific colours, removing irrelevant visual elements, and adjusting spacing or typography. The Title is an internal label, not customer content. Hiding an element with CSS does not remove the underlying feature or data access.
For normal delivery, the block must be enabled, belong to the current brand or be global, and match the requested path. Global blocks are loaded before this brand's blocks; within each group, older blocks load first. Later rules win only when the other cascade conditions permit it. A brand block does not automatically override every global rule.
A global block can affect your pages even though it is absent from a brand administrator's list. If no block you can see explains a style, ask your Unidy contact to check global CSS.
Selectors and validation
Inspect the rendered page before choosing a selector. Current page layouts include a path-<path> body class; use an attribute selector, as in the example, to avoid escaping slashes. Brand colour variables such as --brand-background-color and --tw-brand-background-color let custom rules follow the brand palette.
Page markup can change across releases. Check custom CSS during release testing, especially rules targeting component classes. Do not use the signedin-body class as an authentication check: layouts can set it independently of whether a customer is signed in.
The CSS editor rejects selected unsafe patterns, including closing style tags, script tags, legacy CSS expressions and unsafe imports. It is not a complete CSS syntax validator. Check valid CSS syntax, selector matches and computed styles in your browser when a rule does not work.
Troubleshoot a change
| Symptom | Check |
|---|---|
| Only I see the new CSS | Stop preview. Check that the draft was published and the block is enabled. |
| CSS appears on a page it should exclude | Stop preview, then check Match against the actual path. Check other brand and global blocks. |
| Customers still see the old CSS | Check for Draft CSS, publish the intended version and reload the page. Verify the brand and environment. |
| The block is enabled but has no effect | Check Published CSS is present, Match matches, and the page is rendered by Unidy with custom CSS enabled. Then inspect syntax, selector matches, media queries and competing styles. |
| The dashboard does not reflect my custom HTML or CSS | The dashboard excludes those snippets. Test on a hosted customer page. |
| Colours or images did not update | Save the card you changed, confirm the correct brand, then reload. Use full #rrggbb colour values and check image validation errors. |
| A new HTML snippet breaks the customer page | Restore the previous content in the corresponding HTML section and save. Verify the restored customer flow before adding it again. |