Web SDK - Mobile supports UI style customization. You can customize colors, icons, and frame styles on the guide page, document capture page, OCR result editing page, and liveness detection page.
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.
Configuration method
Pass a JSON string with your custom styles to the StyleConfig field of the server-side Initialize method.
Configuration rules and recommendations:
Default inheritance: If a configuration item or its style property is not specified, the system uses the default value.
Incremental configuration: To reduce the request body size, pass only the configuration items that you need to modify. Unspecified items use their default values.
The JSON string must not contain regular expression special characters.
Guide page (guidePage)
The guide page is the first page users see, displaying the verification steps and instructions. This page is available only in the Web SDK flow.
Property | Type | Default | Description |
| CSS color |
| Page background color |
| CSS color |
| Button background color |
| CSS color |
| Button text color |
| Button shadow | ||
| Image URL |
| Step 1 icon on the eKYC guide page (60 x 60 px) |
| Image URL |
| Step 2 icon on the eKYC guide page (60 x 60 px) |
| Image URL |
| Step connector bar on the left side of the eKYC guide page (6 x 414 px) |
| Image URL |
| Facial recognition illustration (393 x 393 px) |
| Image URL |
| Document scan illustration (396 x 393 px) |
| Image URL |
| Occlusion avoidance illustration (210 x 210 px) |
| Image URL |
| Sufficient lighting illustration (210 x 210 px) |
| Image URL |
| Phone positioning illustration (210 x 210 px) |
Document capture page (ocrPage)
Users photograph their identity documents (ID cards, passports, and similar documents) on this page. You can customize the background, overlay, viewfinder frame, and icons.
Property | Type | Default | Description |
|
| Page background color and opacity | |
| CSS color |
| Text color over the overlay |
|
| Overlay color and opacity | |
| Image URL |
| Exit icon (30 x 54 px) |
| Image URL |
| Submit icon (240 x 240 px) |
| Image URL |
| Document viewfinder frame (996 x 594 px). Replace this to adapt the frame to different shapes and colors of ID cards and passports. |
| Image URL |
| Album icon (144 x 144 px) |
OCR result editing page (ocrResultPage)
This page displays the extracted document data and allows users to review and correct the results.
Property | Type | Default | Description |
| CSS color |
| Page background color |
| CSS color |
| Top tip background color |
| CSS color |
| Top tip text color |
| CSS color |
| OCR information text color |
| CSS color |
| Input field background color |
| CSS color |
| Button background color |
| CSS color |
| Button text color |
|
| Overlay color and opacity | |
| Image URL |
| Exit icon (30 x 54 px) |
Liveness detection page (facePage)
The liveness detection page guides users through the face verification process.
Property | Type | Default | Description |
| CSS color |
| Page background color |
| CSS color |
| Title text color (for the instruction prompt, such as "Pick up your phone and blink") |
| Array of 3 CSS colors |
| Progress bar colors around the viewfinder, from light to dark |
|
| Overlay color and opacity | |
| CSS color |
| Text color over the overlay |
| Image 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.
Property | Page | Dimensions (px) | Description |
| Guide | 60 x 60 | Step 1 icon |
| Guide | 60 x 60 | Step 2 icon |
| Guide | 6 x 414 | Step connector bar |
| Guide | 393 x 393 | Facial recognition illustration |
| Guide | 396 x 393 | Document scan illustration |
| Guide | 210 x 210 | Occlusion avoidance illustration |
| Guide | 210 x 210 | Sufficient lighting illustration |
| Guide | 210 x 210 | Phone positioning illustration |
| Document capture | 996 x 594 | Document viewfinder frame |
| Document capture | 144 x 144 | Album icon |
| Document capture | 240 x 240 | Submit icon |
| Document capture, OCR result editing, Liveness detection | 30 x 54 | Exit 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": ""
}
}