All Products
Search
Document Center

ID Verification:Web SDK - Mobile UI custom configuration instructions

Last Updated:Feb 28, 2026

The Web SDK - Mobile supports UI style customization. You can customize colors, icons, and frame styles across four pages: the guide page, document capture page, OCR result editing page, and liveness detection page.

Important

UI customization for the Web SDK - Mobile is available only in the mobile integration mode. For PC customization, see Web SDK - PC UI Custom Configuration Instructions.

How it works

To apply custom styles, pass a JSON configuration string to the StyleConfig field of the Initialize API. Only include the properties you want to change -- any property you omit will use its default value.

const styleConfig = {
  guidePage: {
    btnBgColor: "#1A73E8",
    btnTextColor: "#FFFFFF",
    backgroundColor: "#F5F5F5"
  }
};

// Pass JSON.stringify(styleConfig) to the Initialize API's StyleConfig field
Note

The JSON string must not contain special characters that are used in regular expressions.

You can customize three types of elements:

  • Colors: Pass CSS color values to change backgrounds, text, buttons, and overlays.

  • Icons and images: Pass publicly accessible image URLs to replace the default icons and illustrations. The size and position of each image remain unchanged.

  • Frames: Pass image URLs to replace the default document viewfinder frame. The size and position of the frame remain unchanged.

Guide page (guidePage)

The guide page is the first page users see. It shows the verification steps and instructions. This page is available only in the Web SDK flow.

PropertyTypeDefaultDescription
backgroundColorCSS color"white"Page background color
btnBgColorCSS color"#fb5d01"Button background color
btnTextColorCSS color"white"Button text color
btnShadowCSS box-shadow"0 16px 32px 0 rgba(251, 115, 38, 0.3)"Button shadow
circle1ImgImage URL""Step 1 icon on the eKYC guide page (60 x 60 px)
circle2ImgImage URL""Step 2 icon on the eKYC guide page (60 x 60 px)
leftBorderImgImage URL""Step connector bar on the left side of the eKYC guide page (6 x 414 px)
faceImgImage URL""Facial recognition illustration (393 x 393 px)
ocrImgImage URL""Document scan illustration (396 x 393 px)
shelterFromImgImage URL""Occlusion avoidance illustration (210 x 210 px)
lightImgImage URL""Sufficient lighting illustration (210 x 210 px)
phoneImgImage URL""Phone positioning illustration (210 x 210 px)

Document capture page (ocrPage)

The document capture page is where users photograph their identity documents (ID cards, passports, and similar documents). You can customize the background, overlay, viewfinder frame, and icons.

PropertyTypeDefaultDescription
ocrBgColorCSS rgba"rgba(2, 2, 2, 0.8)"Page background color and opacity
tipColorCSS color"white"Text color over the overlay
maskColorCSS rgba"rgba(2, 2, 2, 0.7)"Overlay color and opacity
backIconImgImage URL""Exit icon (30 x 54 px)
submitIconImgImage URL""Submit icon (240 x 240 px)
ocrPhotoBorderImgImage URL""Document viewfinder frame (996 x 594 px). Replace this to adapt the frame to different shapes and colors of ID cards and passports.
albumIconImgImage URL""Album icon (144 x 144 px)

OCR result editing page (ocrResultPage)

The OCR result editing page displays the extracted document data and allows users to review and correct the results.

PropertyTypeDefaultDescription
backgroundColorCSS color"white"Page background color
topTipBgColorCSS color"white"Top tip background color
topTipTextColorCSS color"black"Top tip text color
ocrTextColorCSS color"#333333"OCR information text color
inputBgColorCSS color"#f7f7f7"Input field background color
btnBgColorCSS color"#fb5d01"Button background color
btnTextColorCSS color"white"Button text color
maskColorCSS rgba"rgba(2, 2, 2, 0.7)"Overlay color and opacity
backIconImgImage URL""Exit icon (30 x 54 px)

Liveness detection page (facePage)

The liveness detection page guides users through the face verification process.

PropertyTypeDefaultDescription
backgroundColorCSS color"white"Page background color
topTipColorCSS color"#333333"Title text color (for the instruction prompt, such as "Pick up your phone and blink")
processBarColorArray of 3 CSS colors["#FFA500", "#FF8C00", "rgba(237,119,49,1)"]Progress bar colors around the viewfinder, from light to dark
maskColorCSS rgba"rgba(0, 0, 0, 0.6)"Overlay color and opacity
maskTipColorCSS color"white"Text color over the overlay
backIconImgImage URL""Exit icon (30 x 54 px)

Image asset specifications

All image properties accept publicly accessible URLs. Your replacement images should match the dimensions listed below.

PropertyPageDimensions (px)Description
circle1ImgGuide60 x 60Step 1 icon
circle2ImgGuide60 x 60Step 2 icon
leftBorderImgGuide6 x 414Step connector bar
faceImgGuide393 x 393Facial recognition illustration
ocrImgGuide396 x 393Document scan illustration
shelterFromImgGuide210 x 210Occlusion avoidance illustration
lightImgGuide210 x 210Sufficient lighting illustration
phoneImgGuide210 x 210Phone positioning illustration
ocrPhotoBorderImgDocument capture996 x 594Document viewfinder frame
albumIconImgDocument capture144 x 144Album icon
submitIconImgDocument capture240 x 240Submit icon
backIconImgDocument capture, OCR result editing, Liveness detection30 x 54Exit icon

Configuration template

Copy the following template and modify only the properties you want to customize.

const styleConfig = {
  guidePage: {
    backgroundColor: "white",
    btnBgColor: "#fb5d01",
    btnTextColor: "white",
    btnShadow: "0 16px 32px 0 rgba(251, 115, 38, 0.3)",
    circle1Img: "",
    circle2Img: "",
    leftBorderImg: "",
    faceImg: "",
    ocrImg: "",
    shelterFromImg: "",
    lightImg: "",
    phoneImg: ""
  },
  ocrPage: {
    ocrBgColor: "rgba(2, 2, 2, 0.8)",
    tipColor: "white",
    maskColor: "rgba(2, 2, 2, 0.7)",
    backIconImg: "",
    submitIconImg: "",
    ocrPhotoBorderImg: "",
    albumIconImg: ""
  },
  ocrResultPage: {
    backgroundColor: "white",
    topTipBgColor: "white",
    topTipTextColor: "black",
    ocrTextColor: "#333333",
    inputBgColor: "#f7f7f7",
    btnBgColor: "#fb5d01",
    btnTextColor: "white",
    maskColor: "rgba(2, 2, 2, 0.7)",
    backIconImg: ""
  },
  facePage: {
    backgroundColor: "white",
    topTipColor: "#333333",
    processBarColor: ["#FFA500", "#FF8C00", "rgba(237,119,49,1)"],
    maskColor: "rgba(0, 0, 0, 0.6)",
    maskTipColor: "white",
    backIconImg: ""
  }
};
{
  "guidePage": {
    "backgroundColor": "white",
    "btnBgColor": "#fb5d01",
    "btnTextColor": "white",
    "btnShadow": "0 16px 32px 0 rgba(251, 115, 38, 0.3)",
    "circle1Img": "",
    "circle2Img": "",
    "leftBorderImg": "",
    "faceImg": "",
    "ocrImg": "",
    "shelterFromImg": "",
    "lightImg": "",
    "phoneImg": ""
  },
  "ocrPage": {
    "ocrBgColor": "rgba(2, 2, 2, 0.8)",
    "tipColor": "white",
    "maskColor": "rgba(2, 2, 2, 0.7)",
    "backIconImg": "",
    "submitIconImg": "",
    "ocrPhotoBorderImg": "",
    "albumIconImg": ""
  },
  "ocrResultPage": {
    "backgroundColor": "white",
    "topTipBgColor": "white",
    "topTipTextColor": "black",
    "ocrTextColor": "#333333",
    "inputBgColor": "#f7f7f7",
    "btnBgColor": "#fb5d01",
    "btnTextColor": "white",
    "maskColor": "rgba(2, 2, 2, 0.7)",
    "backIconImg": ""
  },
  "facePage": {
    "backgroundColor": "white",
    "topTipColor": "#333333",
    "processBarColor": [
      "#FFA500",
      "#FF8C00",
      "rgba(237,119,49,1)"
    ],
    "maskColor": "rgba(0, 0, 0, 0.6)",
    "maskTipColor": "white",
    "backIconImg": ""
  }
}

You can also download the template file: custom_style_template.json