Web 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:

PropertyDescription
--fl-background-colorThe default background color.
Default: --fl-color-light
--fl-border-colorThe border color for buttons, hints, and QR components.
Default: 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.
Default: 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.
Default: var(--fl-color-success)
--fl-color-dangerThe color for warnings about invalid client input.
Default: # E02020 red
--fl-color-darkThe default heading color.
Default: # 333333
--fl-color-dark-lightThe default text color.
Default: # 666666
--fl-color-dark-lighterThe default alternative and less emphasis text color.
Default: # 999999
--fl-color-hintThe color for hints.
Default: # FFF9D5 yellow
--fl-color-infoThe primary color for informative highlighting.
Default: # 0091FF blue
--fl-color-lightThe default background color.
Default: # FFFFFF
--fl-color-successThe color for successful events or actions.
Default: # 00E062 green
--fl-color-warningThe color for errors.
Default: # FA6400 orange
--fl-decorative-line-colorThe color of decorative lines.
Default: --fl-border-color
--fl-heading-colorThe color for headings.
Default: --fl-color-dark
--fl-hint-colorThe text color for hints.
Default: --fl-heading-color
--fl-hint-background-colorThe background color for hints.
Default: --fl-color-hint
--fl-illustration-colorThe illustration color.
Default: --fl-color-primary
--fl-illustration-background-colorThe illustration background color.
Default: rgba(0, 0, 0, 0.05);
--fl-illustration-success-colorThe illustration success color override.
Default: --fl-color-success
--fl-label-colorThe color for form field labels.
Default: --fl-color-gray
--fl-link-colorThe color for links.
Default: --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.
Default: --fl-color-primary
--fl-permission-colorThe text color for permissions requests.
Default: --fl-color-light
--fl-qr-borderThe color of the QR code border.
Default: --fl-color-info
--fl-strong-colorThe strong tag color.
Default: --fl-heading-color
--fl-tab-colorThe color for the redirect options tabs.
Default: --fl-heading-color
--fl-text-colorThe color for text.
Default: --fl-color-dark-light
--fl-text-light-colorThe color for text with less emphasis.
Default: --fl-color-dark-lighter
--fl-title-colorThe color for titles.
Default: --fl-heading-color
--fl-warning-face-colorThe skin color of the warning face on error screens.
Default: --fl-color-warning
--fl-warning-face-eyes-colorThe color of the eyes and mouth of the warning face on error screens.
Default: --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

Illustration colors

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

Input background colors



Themes

You can set light mode and dark mode themes for the UI, and are responsible for adding the theme class and hosting the styles.

Example code:

.dark-theme fl-flow-onboarding {
  /* Add your custom CSS variables for dark theme */
}

.light-theme fl-flow-onboarding {
  /* Add your custom CSS variables for light theme */
}

Top of page


Related pages