> Documentation index: https://developers.google.com/workspace/chat/llms.txt

- [JSON representation](https://developers.google.com/workspace/chat/api/reference/rest/v1/StyledText.md.txt#SCHEMA_REPRESENTATION)
- [Style](https://developers.google.com/workspace/chat/api/reference/rest/v1/StyledText.md.txt#Style)
- [FontWeight](https://developers.google.com/workspace/chat/api/reference/rest/v1/StyledText.md.txt#FontWeight)

Text element with styles such as bold, italic and color.

| JSON representation |
|---|
| ``` { "styles": [ enum (`Style`) ], "textThemeColor": enum (`ThemeColor`), "text": string, "fontWeight": enum (`FontWeight`) } ``` |

| Fields ||
|---|---|
| `styles[]` | ``enum (`Style`)`` Styles is a collection of styles that can be applied to text. |
| `textThemeColor` | ``enum (`ThemeColor`)`` Optional. Color of the text, chosen from the product's theme. The color adapts to the user's light or dark theme. Available only for [Google Chat apps](https://developers.google.com/workspace/chat). |
| `text` | `string` The main content or message to be displayed. |
| `fontWeight` | ``enum (`FontWeight`)`` FontWeight specifies the weight of the font, such as bold or light. |

## Style

Enum for different text styles such as bold, italic, etc.

| Enums ||
|---|---|
| `STYLE_UNSPECIFIED` | No style applied. |
| `ITALIC` | Italic style. |
| `UNDERLINE` | Underline style. |
| `STRIKETHROUGH` | Strikethrough style. |
| `BR` | Line break. |
| `UPPERCASE` | Uppercase style. |

## FontWeight

Enum for different font weights.

| Enums ||
|---|---|
| `FONT_WEIGHT_UNSPECIFIED` | No font weight specified. |
| `LIGHT` | Lighter weight with reduced thickness. |
| `MEDIUM` | Intermediate weight between light and bold. |
| `BOLD` | Heavier weight with increased thickness. |
| `REGULAR` | Standard weight with normal thickness. |