Branding and customization (OFDA)

Add some personal flair to your widget by customizing the logo and adding some custom text to engage your users 🚀.

With Belvo's Connect Widget, you can optionally add the following branding and customization:

  • Your company logo
  • Your company icon
  • Your company name
  • Link to your privacy policy
  • Custom messaging for consent purpose
  • Add a custom overlay color
  • Hide messaging in the institution select screen
  • Add custom colors to the widget
3845

Screens in the widget where you'll see your custom branding

Elements that you can modify the colors of (OFDA-only)

Screens in the widget where your custom colors and messaging will appear

Full customization and branding example

🚧

Add branding when generating access_token

To add branding to your widget, it must be done in the same backend call as your request to generate an access_token. For a full example of how this looks like, see the code example below.

{
  "id": "SECRET_ID",
  "password": "SECRET_PASSWORD",
  "scopes": "read_institutions,write_links",
  "credentials_storage": "365d",
  "stale_in": "300d",
  "fetch_resources": ["ACCOUNTS", "TRANSACTIONS", "OWNERS"],
  "widget": {
    "branding": {
      "company_icon": "https://mysite.com/icon.svg",
      "company_logo": "https://mysite.com/logo.svg",
      "company_name": "ACME",
      "company_terms_url": "https://belvo.com/terms-service/",
      "overlay_background_color": "#F0F2F4",
      "social_proof": true,
    },
    "purpose": "Soluções financeiras personalizadas oferecidas por meio de recomendações sob medida, visando melhores ofertas de produtos financeiros e de crédito.",
    "theme": [
      {
        "css_key": "--color-primary-base",
        "value": "#907AD6"
      },
      {
        "css_key": "--nav-bar-title-color",
        "value": "#4F518C"
      },
      {
        "css_key": "--nav-bar-icon-color",
        "value": "#4F518C"
      }
    ]
  }
}

For more detailed information on each customization, see the relevant sections below.

Add a company icon

You can add your company icon to the widget to make it more aligned with your brand. When you add your company icon, it appears on the following screen:

  • initial start of the widget

Make sure that your icon has square dimensions, in SVG format, has a transparent background, and contains no surrounding whitespace. If your icon does not follow these specifications, the Belvo widget will display the following icon:

150

Standard square icon displayed if your icon is not SVG or square.

Instructions
To add a custom company icon, just add the URL to your SVG image to the company_icon key.

{
  "widget": {
    "branding": {
      ...
      "company_icon": "https://mysite.com/icon.svg",
      ...
        }
     }
}

Add a company logo

You can add your company logo to the widget to make it more aligned with your brand. When you add your company logo, it appears on the following screens:

  • while the account is being linked
  • once an account is successfully linked
  • when a user chooses to cancel the linking process

Make sure that your logo is in SVG format, has a transparent background, and contains no surrounding whitespace. For the best visibility and scaling, we suggest that you use a horizontal logo (see the top-left example in the image below).

4153

Please ensure that your logo contains no whitespace (left-hand example).

Instructions
To add a custom company logo, just add the URL to your SVG image to the company_logo key.

{
  "widget": {
    "branding": {
      ...
      "company_logo": "https://mysite.com/logo.svg",
      ...
        }
     }
}

Add your company name

You can add your company name to be displayed when the widget first starts. By default, it'll just display "Link your account". When you add your company name, the message will follow the format "[company_name] uses Belvo to connect your account".

📘

Please note, only the company name is customizable in the introductory sentence.

Instructions

To add your company name, just add it to the company_name key.

{
  "widget": {
    "branding": {
      ...
      "company_name": "ACME",
      ...
        }
     }
}

Add a link to your privacy policy

You can add a link to your privacy policy (or terms and conditions) on the initial screen of the widget that, when clicked, will redirect your users to the linked webpage. This helps your users better understand what your use case is regarding the data you are requesting. By default the widget will include the URL to Belvo's privacy policy (<https://belvo.com/terms-service/>).

Instructions
To add a link to your privacy policy in the initial connect screen, just add the URL to your policy to the company_terms_url key.

{
  "widget": {
    "branding": {
      ...
      "company_terms_url": "https://belvo.com/terms-service/",
      ...
        }
     }
}

Custom messaging for consent purpose

You can modify the text describing the purpose for requesting your user's data (Propósito do compartilhamento) to better describe your use case.

By default, the displayed text is: Soluções financeiras personalizadas oferecidas por meio de recomendações sob medida, visando melhores ofertas de produtos financeiros e de crédito.

Instructions

To customize the text describing the purpose for requesting access to your user's data, just add your text (maximum 600 characters) to the purpose key.

{
  "widget": {
    "consent": {
       "purpose": "Your custom text here. Max 600 characters",
       ...
    }
  }   
}

Add a custom overlay color

You can add a custom overlay color for when the widget loads in your desktop application. We recommend choosing a neutral color related to your brand to keep environmental context. By default, this overlay is set to grey.

1728

Widget with custom overlay color

📘

Overlay opacity

No matter what color you upload, Belvo will automatically set the opacity to 90%. This is due to the following UX best practices:

  • With lower opacities (less than 70%), the user can experience difficulties focusing on the flow as they will have “visual noise” in the background.

  • Block colors (opacity set at 100%) may cause a drastic change, resulting in a disjointed or unnatural experience.

Instructions

To set the overlay color, just add the full HEX code (# followed by six characters) to the overlay_background_color key.

{
  "widget": {
    "branding": {
      ...
      "overlay_background_color": "#F0F2F4",
      ...
        }
     }
}

Hide messaging in the institution select screen

You can choose to hide the "Mais de 5 milhões de usuários já conectaram com segurança suas contas." message that appears when your user selects their institution in the widget. By default, this message is visible in the widget (true).


Instructions

To hide the message in the institution select screen, just set the social_proof parameter to false.

{
  "widget": {
    "branding": {
      ...
      "social_proof": false,
      ...
        }
     }
}

Add custom colors to the widget

You can further customize the widget by adding your own brand’s colors to several parts of the widget:

  • The primary color for buttons, checkboxes, and the progress bar
  • The color of the navigation icons and text
Default color scheme

Default color scheme (OFDA widget)

Example with custom color configuration

Example with custom color configuration (OFDA widget)

Instructions

To set your brand’s colors:

  1. Add the theme array to the widget object.
  2. For each item you want to modify, add an object that has the keys css_key and value (see the code sample below). The color values can be either in HEX, RGB, or RGBA format.
{
  "widget": {
    "branding": {}, // Your customized branding
    "theme": [
      {
        "css_key": "--color-primary-base",
        "value": "#907AD6"
      },
      {
        "css_key": "--nav-bar-title-color",
        "value": "#4F518C"
      },
      {
        "css_key": "--nav-bar-icon-color",
        "value": "#4F518C"
      }
    ],
  }
}

📘

You do not have to include all the possible css_keys. You can just set the keys (and values) that you want to modify.

Modify the widget navigation bar

You can customize the widget's navigation bar by modifying the colors to suit your brand's needs:

The possible modifications are listed in the table below:

CSS VariableDefaultDescription
--nav-bar-title-color#161a1dSets the color of the navigation bar title.
--nav-bar-title-aligncenterSpecifies the alignment of the navigation bar title. Possible positions are: center, start, and end.
--nav-bar-icon-color#161a1dSets the color of navigation bar icons.
--nav-bar-background-color#ffffffDefines the background color of the navigation bar.
--nav-bar-box-shadownoneAdds a shadow effect to the navigation bar.
--nav-bar-border-color#f0f2f4Specifies the border color of the navigation bar.

To modify the widget's navigation bar:

  1. Add the theme array to the widget object.
  2. For each item you want to modify, add an object that has the keys css_key and value (see the code sample below). The color values can be either in HEX, RGB, or RGBA format.
{
  "widget": {
    "branding": {}, // Your customized branding
    "theme": [
      {
        "css_key": "--nav-bar-title-color",
        "value": "#161a1d"
      },
      {
        "css_key": "--nav-bar-title-align",
        "value": "center"
      },
      {
        "css_key": "--nav-bar-icon-color",
        "value": "#161a1d"
      },
      {
        "css_key": "--nav-bar-background-color",
        "value": "#ffffff"
      },
      {
        "css_key": "--nav-bar-box-shadow",
        "value": "none"
      },
      {
        "css_key": "--nav-bar-border-color",
        "value": "#f0f2f4"
      }, // Add additional theming options here
    ]
  }
}

Modify the widget buttons

You can customize the widget's buttons by modifying the colors and border radiuses to suit your brand's needs:

📘

These modifications apply to all buttons in the widget.

The possible modifications are listed in the table below:

CSS VariableDefaultDescription
--button-font-color#ffffffSets the font color for buttons.
--button-font-color-disabled#ffffffDefines the font color for disabled buttons.
--button-border-radius2pxSpecifies the border radius of buttons.
--button-background-color-disabled#009EE3Defines the background color for disabled buttons.
--button-opacity-disabled0.2Specifies the opacity for disabled buttons.
--button-border-color-disabled#009EE354Sets the border color for disabled buttons.

To make modifications to the widget's buttons:

  1. Add the theme array to the widget object.
  2. For each item you want to modify, add an object that has the keys css_key and value (see the code sample below). The color values can be either in HEX, RGB, or RGBA format.
{
  "widget": {
    "branding": {}, // Your customized branding
    "theme": [
      {
        "css_key": "--button-font-color",
        "value": "#ffffff"
      },
      {
        "css_key": "--button-font-color-disabled",
        "value": "#ffffff"
      },
      {
        "css_key": "--button-border-radius",
        "value": "2px"
      },
      {
        "css_key": "--button-background-color-disabled",
        "value": "#009EE3"
      },
      {
        "css_key": "--button-opacity-disabled",
        "value": "0.2"
      },
      {
        "css_key": "--button-border-color-disabled",
        "value": "#009EE354"
      },
    ]
  }
}

Modify the widget banners (callouts)

You can customize the widget's banners to suit your brand's needs:

The possible modifications are listed in the table below:

CSS VariableDefaultDescription
--banner-border-radius4pxSpecifies the border radius of banners.
--banner-background-color#ffffffSets the background color of banners.
--banner-border-color#e2e6e9Specifies the border color of banners.
--banner-border-color-left-error#f90e06Left border color for error banners.
--banner-border-color-left-success#59c837Left border color for success banners.
--banner-border-color-left-info#0663F9Left border color for info banners.
--banner-border-color-left-warning#f9c806Left border color for warning banners.
--banner-icon-color-error#f90e06Icon color for error banners.
--banner-icon-color-success#59c837Icon color for success banners.
--banner-icon-color-info#0663F9Icon color for info banners.
--banner-icon-color-warning#f9c806Icon color for warning banners.
--banner-title-color#161a1dSets the color of banner titles.
--banner-body-color#414d58Specifies the color of banner body text.
--banner-title-font-weight600Defines the font weight of banner titles.
--banner-body-font-weight600Specifies the font weight of banner body text.
--banner-box-shadow0 2px 4px 0 rgba(0, 0, 0, 0.05)Adds a shadow effect to banners.

To make modifications to the widget's banners:

  1. Add the theme array to the widget object.
  2. For each item you want to modify, add an object that has the keys css_key and value (see the code sample below). The color values can be either in HEX, RGB, or RGBA format.
{
  "widget": {
    "branding": {}, // Your customized branding
    "theme": [
      {
        "css_key": "--banner-border-radius",
        "value": "4px"
      },
      {
        "css_key": "--banner-background-color",
        "value": "#ffffff"
      },
      {
        "css_key": "--banner-border-color",
        "value": "#e2e6e9"
      },
      {
        "css_key": "--banner-border-color-left-error",
        "value": "#f90e06"
      },
      {
        "css_key": "--banner-border-color-left-success",
        "value": "#59c837"
      },
      {
        "css_key": "--banner-border-color-left-info",
        "value": "#0663F9"
      },
      {
        "css_key": "--banner-border-color-left-warning",
        "value": "#f9c806"
      },
      {
        "css_key": "--banner-icon-color-error",
        "value": "#f90e06"
      },
      {
        "css_key": "--banner-icon-color-success",
        "value": "#59c837"
      },
      {
        "css_key": "--banner-icon-color-info",
        "value": "#0663F9"
      },
      {
        "css_key": "--banner-icon-color-warning",
        "value": "#f9c806"
      },
      {
        "css_key": "--banner-title-color",
        "value": "#161a1d"
      },
      {
        "css_key": "--banner-body-color",
        "value": "#414d58"
      },
      {
        "css_key": "--banner-title-font-weight",
        "value": "600"
      },
      {
        "css_key": "--banner-body-font-weight",
        "value": "600"
      },
      {
        "css_key": "--banner-box-shadow",
        "value": "0 2px 4px 0 rgba(0, 0, 0, 0.05)"
      },
    ]
  }
}

Modify the widget input fields

You can customize the widget's input fields to suit your brand's needs:

The possible modifications are listed in the table below:

CSS VariableDefaultDescription
--input-text-border-radius2pxDefines the border radius for input fields.
--input-text-border-color#161a1dSpecifies the border color for input fields.
--input-text-outline-border-color#c4cdd4Defines the outline border color for input fields. (like hover effect)
--input-text-placeholder-color#c4cdd4Defines the color for placeholder text.
--input-text-label-color#414d58Sets the label color for input fields.
--input-text-label-color-error#f90e06Specifies the label color for input fields in error state.
--input-text-label-variationoutlinedSpecifies label variation position. Possible options are: outlined and top.
--input-text-icon-color#000000Sets the color of input icons.

To modify the widget's input fields:

  1. Add the theme array to the widget object.
  2. For each item you want to modify, add an object that has the keys css_key and value (see the code sample below). The color values can be either in HEX, RGB, or RGBA format.
{
  "widget": {
    "branding": {}, // Your customized branding
    "theme": [
      {
        "css_key": "--input-text-border-radius",
        "value": "2px"
      },
      {
        "css_key": "--input-text-border-color",
        "value": "#161a1d"
      },
      {
        "css_key": "--input-text-outline-border-color",
        "value": "#c4cdd4"
      },
      {
        "css_key": "--input-text-placeholder-color",
        "value": "#c4cdd4"
      },
      {
        "css_key": "--input-text-label-color",
        "value": "#414d58"
      },
      {
        "css_key": "--input-text-label-color-error",
        "value": "#f90e06"
      },
      {
        "css_key": "--input-text-label-variation",
        "value": "outlined"
      },
      {
        "css_key": "--input-text-icon-color",
        "value": "#000000"
      }, // Add additional theming options here
    ]
  }
}