> For the complete documentation index, see [llms.txt](https://docs.caf.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.caf.io/caf-sdk/web-javascript/getting-started/document-detector/customization.md).

# Customization

Using CSS classes, it is possible to customize the capture step of Web SDKs.

On this page, you will find documentation regarding the nomenclature of these classes, as well as some customization examples.

## Classes and components <a href="#id-1hu9bqx2asy3" id="id-1hu9bqx2asy3"></a>

![](https://728704278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvnCLbngSdfkIVoF3ziNX%2Fuploads%2Fgit-blob-2d6b40f326a4e4c6548abfc548680a0709e47cbb%2F0%20\(1\)?alt=media)

### **1. Capture Title**

Class name: **`caf-sdk-video-title`**

### **2. Camera Switch Button** <a href="#x7ndy80au" id="x7ndy80au"></a>

Class name: **`caf-sdk-video-switch-camera-button`**

### **3. Capture Mask** <a href="#xxfnuxrizljr" id="xxfnuxrizljr"></a>

Class name: **`caf-sdk-video-`mask**

### **4. Capture button (manual capture only)** <a href="#id-3zmhclz8ix8j" id="id-3zmhclz8ix8j"></a>

Class name: **`caf-sdk-button-take-picture`**

![](https://728704278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvnCLbngSdfkIVoF3ziNX%2Fuploads%2Fgit-blob-84ec04e1cdd2d6d720ffb0eb1b817e0bf74c4d21%2F1%20\(1\)?alt=media)

### **5. Progress Spinner** <a href="#id-51mg2yeab6d3" id="id-51mg2yeab6d3"></a>

Class name: **`caf-sdk-spinner-container`**

Child classes: **`caf-sdk-spinner-icon`**, **`caf-sdk-spinner-circle`**

### **6. Message** <a href="#id-6inklz14wnmu" id="id-6inklz14wnmu"></a>

Class name: **`caf-sdk-video-message-container`**

Child class: **`caf-sdk-video-message-text`**

Related classes: **`caf-sdk-message-success`**, **`caf-sdk-message-info`**, **`caf-sdk-message-warning`**, **`caf-sdk-message-error`**

![](https://728704278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvnCLbngSdfkIVoF3ziNX%2Fuploads%2Fgit-blob-04ee78c48f9c06ab03c169eb0c9c086ca6f18906%2F2?alt=media)

### **7. Action** <a href="#id-8spfdg53e906" id="id-8spfdg53e906"></a>

Class name: **`caf-sdk-video-action-container`**

Child classes: **`caf-sdk-video-action-text`**

Related classes: **`caf-sdk-message-success`**, **`caf-sdk-message-info`**, **`caf-sdk-message-warning`**, **`caf-sdk-message-error`**

## **Examples** <a href="#id-4wcairwk2hac" id="id-4wcairwk2hac"></a>

### **Layout original** <a href="#jaljjtfz3ny3" id="jaljjtfz3ny3"></a>

![](https://728704278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvnCLbngSdfkIVoF3ziNX%2Fuploads%2Fgit-blob-92a563ad36096463a47b2b51d6d76b87604678b6%2F3?alt=media)

### Example 1 <a href="#hvvkr8hzs7g7" id="hvvkr8hzs7g7"></a>

![](https://728704278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvnCLbngSdfkIVoF3ziNX%2Fuploads%2Fgit-blob-3cf99ef13780c2d9027ffb4c09cf7bf9ae2f7176%2F4?alt=media)

<pre class="language-css"><code class="lang-css">.caf-sdk-video-action-container {
<strong>    border-radius: 5px;
</strong>    background-color: white;
    border: 1px solid gray;
    padding: 10px;
    width: 95%;
    min-height: 75px;
    
    justify-content: center;
    align-items: center;
    display: none;
}

.caf-sdk-video-action-text {
    color: black !important;
    font-weight: 500 !important;
    
    position: relative;
}

.caf-sdk-video-action-text.caf-sdk-message-warning::before {
    position: absolute;
    display: block;
    
    content: '';
    background: url('https://cdn3.iconfinder.com/data/icons/interface-fat-line-vol-2/16/face-recognistion-focus-center-512.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    left: -30px;
    top: 5px;
    height: 30px;
    width: 30px;
    z-index: 100;
}
</code></pre>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.caf.io/caf-sdk/web-javascript/getting-started/document-detector/customization.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
