Web SDK UI Customization

Integrations guide

This page sets out how to customize the Web SDK UI to match the look and feel of your brand.

Colors

You can define colors in any acceptable CSS way. See Mozilla Developer – color.

For defined base colors, you can leave them or replace them with another shade of the same color.

Custom properties:

PropertyDescriptionDefault
--fl-background-colorThe default background color.--fl-color-light
--fl-border-colorThe border color for buttons, hints, and QR components.rgba(0, 0, 0, 0.1)
--fl-color-primaryThe color alias used for illustrations and highlighted elements, e.g. buttons, inputs.
Notes:
• Illustrations and animations use the same primary color as the dominant color.
• Set to a base color or use a new color.
var(--fl-color-info)
--fl-color-accentThe color alias used for choice elements, e.g. tabs, radio buttons.
Note: Set to a base color or use a new color.
var(--fl-color-success)
--fl-color-dangerThe color for warnings about invalid client input.# E02020 red
--fl-color-darkThe default heading color.# 333333
--fl-color-dark-lightThe default text color.# 666666
--fl-color-dark-lighterThe default alternative and less emphasis text color.# 999999
--fl-color-hintThe color for hints.# FFF9D5 yellow
--fl-color-infoThe primary color for informative highlighting.# 0091FF blue
--fl-color-lightThe default background color.# FFFFFF
--fl-color-successThe color for successful events or actions.# 00E062 green
--fl-color-warningThe color for errors.# FA6400 orange
--fl-decorative-line-colorThe color of decorative lines.--fl-border-color
--fl-heading-colorThe color for headings.--fl-color-dark
--fl-hint-colorThe text color for hints.--fl-heading-color
--fl-hint-background-colorThe background color for hints.--fl-color-hint
--fl-illustration-colorThe illustration color.--fl-color-primary
--fl-illustration-background-colorThe illustration background color.rgba(0, 0, 0, 0.05);
--fl-illustration-success-colorThe illustration success color override.--fl-color-success
--fl-label-colorThe color for form field labels.--fl-color-gray
--fl-link-colorThe color for links.--fl-color-info
--fl-permission-background-colorThe color of the background screen for permissions requests.
Note: The background of illustrations is always a darker shade of the page background.
--fl-color-primary
--fl-permission-colorThe text color for permissions requests.--fl-color-light
--fl-qr-borderThe color of the QR code border.--fl-color-info
--fl-strong-colorThe strong tag color.--fl-heading-color
--fl-tab-colorThe color for the redirect options tabs.--fl-heading-color
--fl-text-colorThe color for text.--fl-color-dark-light
--fl-text-light-colorThe color for text with less emphasis.--fl-color-dark-lighter
--fl-title-colorThe color for titles.--fl-heading-color
--fl-warning-face-colorThe skin color of the warning face on error screens.--fl-color-warning
--fl-warning-face-eyes-colorThe color of the eyes and mouth of the warning face on error screens.--fl-color-light

Example code:

{...}  
  --fl-color-primary: var(--my-primary-color);
  --fl-color-info: #0091FF;     /* blue */
  --fl-color-success: #00E062;  /* green */
  --fl-color-hint: #FFF9D5;     /* yellow */
  --fl-color-warning: #FA6400;  /* orange */
  --fl-color-danger: #E02020;   /* red */
  --fl-color-primary: var(--fl-color-info);
  --fl-color-accent: var(--fl-color-success);
  --fl-permission-background-color: green;

Example screens:

Default accent color on the left, custom accent color on the right

Left: Default illustration color | Right: Custom

Default permission background color on the left, custom color on the right

Left: Default input background color | Right: Custom


Top of page


Related pages