Unidy Docs

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…OpenWhen a change takes effect
Change colours, logos or the browser iconGeneralSave the changed card.
Add approved markup or scripts, or change link-preview textCustom Code in HTMLSave the changed section.
Add targeted styles with a preview and publishing stepCustom CSSPublish 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.

SurfaceGeneral brandingCustom HTML and CSS blocks
Unidy-hosted sign-in, registration, account and consent pagesBrand colours and images where the page uses themApplied by the customer-page layout; CSS also follows its block settings.
Embedded pages rendered by UnidyBrand colours and images where usedApplied by the customer-page layout.
Admin dashboardBrand variables, including image URLs, and the faviconExcluded.
Pages rendered by your own app, including an SDK sign-in UIConfigure in your appConfigure in your app.
EmailsConfigure in the email editorConfigure 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

  1. Open Customization → General.
  2. Edit Colors or Images. Each card is saved independently.
  3. Choose Save changes on the card you changed. Reset discards unsaved edits in that card.
  4. 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.

The General branding screen

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.

FieldDefaultPurpose
Background color#0055ffMain brand colour for navigation, buttons and other accents. Related shades are derived from it.
Foreground color#ffffffText and icons on the main brand colour.
Text color#20262cBody text on light surfaces.

Images

FieldFormatsFile sizeMaximum dimensionsPurpose
LogoPNG, JPEG, SVGBelow 1 MB500 × 500 pxMain brand logo.
Navbar logoPNG, JPEG, SVGBelow 1 MB500 × 500 pxLogo in navigation.
FaviconPNGBelow 200 KB500 × 500 pxBrowser tab icon, including the dashboard.
Background imagePNG, JPEGBelow 5 MB5120 × 2880 pxPage background/header imagery and the OpenGraph share image.
USP background imagePNG, JPEGBelow 5 MB5120 × 2880 pxBackground 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.

  1. Open Customization → Custom Code in HTML.
  2. Choose the section for your change.
  3. Review the snippet or text, then choose Save changes in that section.
  4. Reload a customer page and verify the result. For scripts, confirm both that they load and that sign-in still works.
SectionUse it forPlacement
Header CodeApproved scripts, metadata or resource hints that belong in the document headInside <head>, before the normal page stylesheets.
Body CodeApproved markup or scripts that belong after the page contentAt the end of <body>.
OpenGraphDefault title and description for shared linksPage metadata; these values are treated as text.

Custom Code in HTML

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.

The Custom CSS list

Customization → Custom CSS — empty on the seeded brand, so the columns are visible without any rows to read · highlight on Add CSS block +.

  1. Open Customization → Custom CSS, then choose Add CSS block.
  2. Give it a descriptive Title, such as “Sign-in link focus indicators”.
  3. 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.
  4. Replace the commented example in Css Code with your own CSS. For example:
css
/* 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;
}
  1. Save. A new block starts disabled; the CSS is saved as a draft.
  2. 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.
  3. Choose Publish draft when the CSS is ready. Publishing copies the draft into Published CSS and clears the draft.
  4. Choose Enable if the block is disabled.
  5. 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

  1. Open the block and choose Edit.
  2. Change only the CSS if you want a draft-only change, then Save.
  3. Preview the draft and verify it on the intended customer pages.
  4. Publish draft to replace the live CSS. If the block is enabled, customers receive the newly published text when their pages reload.
  5. 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

ActionResult
Discard draftRemoves unpublished CSS; Published CSS remains unchanged. Discarded text cannot be recovered through this action.
DisableStops normal delivery of the block while retaining the CSS. A browser previewing it can still see it.
EnableMakes Published CSS eligible for delivery to matching pages. It does not publish a draft.
Stop previewRemoves this block from the current browser's preview. It does not disable the block for customers.
DeleteRemoves 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.

PatternIntended scope
EmptyAll 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

SymptomCheck
Only I see the new CSSStop preview. Check that the draft was published and the block is enabled.
CSS appears on a page it should excludeStop preview, then check Match against the actual path. Check other brand and global blocks.
Customers still see the old CSSCheck for Draft CSS, publish the intended version and reload the page. Verify the brand and environment.
The block is enabled but has no effectCheck 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 CSSThe dashboard excludes those snippets. Test on a hosted customer page.
Colours or images did not updateSave 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 pageRestore the previous content in the corresponding HTML section and save. Verify the restored customer flow before adding it again.

Was this page helpful?