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

![](/files/rP4Gaev0xlv9Hci3ax5f)

### **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`**

![](/files/VS2dDteHp1AqimZUuEh0)

### **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`**

![](/files/DEdbU6NLEJ2cdzGrxs0k)

### **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>

![](/files/vjZdv3smihYgpRTPmLTC)

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

![](/files/LmXsPCwz0VeG0Eap0Wo4)

<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 current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
