> For the complete documentation index, see [llms.txt](https://docs.febucci.com/text-animator-unity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.febucci.com/text-animator-unity/2.x/effects/add-effects-to-your-texts/styles.md).

# Styles

**Styles quickly replace parts of the text with something else**, for example to create a combo of effects, typewriter actions and events, which would otherwise require you a lot of typing for recurring tags.

{% hint style="danger" %}
If you're using TMPro, please use Text Animator Styles and not TMPro ones for this, as the latter (TMPro's) can't recognize Text Animator tags and will result in them being added to the text.
{% endhint %}

***

Simply open the stylesheet scriptable object of your choice (you can create one in the Project Folder, via the Create menu -> Text Animator-> StyleSheet), either specific to your Text Animator component or global for all of them (adding it in the Settings, like the image below)

![](/files/6S8sXeLeUnOtuRylaD4K)

Then you can add as many styles as you want, which will include a style tag, the opening text and the closing one.

![](/files/oaPVIrUrn4cjblFGi1Rc)

From the example above, whenever you write the style tag “`<style1>`” in the text, it will be replaced with “`<wave><play=5><rainb><shake>`” - and closing it with “`</style1>`” will be replaced with “`</wave></rainb></shake><?ended>`”.

{% hint style="info" %}
Styles tags are case insensitive (writing "\<style1>" and "\<Style1>" will produce the same result).
{% endhint %}


---

# 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.febucci.com/text-animator-unity/2.x/effects/add-effects-to-your-texts/styles.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.
