> For the complete documentation index, see [llms.txt](https://brixxbox.gitbook.io/brixxbox-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/settextcolor.md).

# setTextColor

Sets the text color for a control to one of the predefined colors

### Parameters

1. controlId - the id of the control to change the color
2. colorName - one of these colors: "default", "primary", "secondary", "success", "danger", "warning"

### Example Usages

*Set Color to "warning"*

```javascript
   brixxApi.setTextColor("myControl", "warning");
```

*Set Color to default*

```javascript
   brixxApi.setTextColor("myControl");
```
