> For the complete documentation index, see [llms.txt](https://docs.aeonxd.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aeonxd.xyz/expansions/gradient2/usage.md).

# Usage

### 🔲 Placeholders

<pre><code>%gradient2_random_&#x3C;amount>_&#x3C;format>_&#x3C;text>%
%gradient2_randomstyle:&#x3C;style>_&#x3C;amount>_&#x3C;format>_&#x3C;text>%
%gradient2_autoformat_&#x3C;hex1>,&#x3C;hex2>_..._&#x3C;format>_&#x3C;text>%
%gradient2_autoformatstyle:&#x3C;style>_&#x3C;hex1>,&#x3C;hex2>_..._&#x3C;format>_&#x3C;text>%
%gradient2_preset:&#x3C;id>_&#x3C;text>%
%gradient2_style:&#x3C;style>_&#x3C;hex1>,&#x3C;hex2>,..._&#x3C;text>%
<strong>%gradient2_&#x3C;hex1>,&#x3C;hex2>,..._&#x3C;text>
</strong></code></pre>

{% hint style="info" %}
You can find the preset **\<id>** in the **config.yml** file at **.../plugins/PlaceholderAPI/**\
This is the name of the preset, for example **monochrome** or **rainbow**
{% endhint %}

{% hint style="info" %}
Valid <**style**> arguments:

* k (aliases: **\&k**, **obfuscated**)
* l (aliases: **\&l**, **bold**)
* m (aliases: **\&m**, **strikethrough**)
* n (aliases: **\&n**, **underline**)
* o (aliases: **\&o**, **italic**)

The values are separated by a comma (**,**)\
e.g.: **%gradient2\_style:l,o,n\_\&#ACE1AF,\&#00CC99\_This will work beautifully!%**
{% endhint %}

{% hint style="info" %}
Valid <**hex**> arguments:

* \&#RRGGBB (e.g. **\&#ACE1AF**)
* \#RRGGBB (e.g. **#ACE1AF**)
* <#RRGGBB> (e.g. **<#ACE1AF>**)
* \&x\&R\&R\&G\&G\&B\&B (e.g. **\&x\&A\&C\&E&1\&A\&F**)
* RRGGBB (e.g. **ACE1AF**)

The hex codes have to be consistent in a single placeholder, no mixing allowed

e.g.: **%gradient2\_\&#ACE1AF,#00CC99\_This won't work :(%**
{% endhint %}

{% hint style="info" %}
Valid <**format**> arguments:

* DEFAULT (\&#RRGGBB)

* DEFAULT2 (#RRGGBB)

* COMPONENT (<#RRGGBB>)

* LEGACY (\&x\&R\&R\&G\&G\&B\&B)

* SECTION (§x§R§R§G§G§B§B)

* RAW (RRGGBB)
  {% endhint %}

* **Preset Example**\
  %gradient2\_preset:pastel\_Hello!%\
  ![](/files/FlCmaKnTGq4fBq8WZ1Vp)

* **Inner placeholder support**\
  %gradient2\_preset:pastel\_{player\_name} is cool!%\
  ![](/files/Zfv8D73r2aINaKqC9RHA)

* **Multiple inner placeholder support** %utils\_parse\_gradient2\_preset:pastel\_{customfont\_mini\_{player\_name} is double cool!}%\ <img src="/files/xQzFuAuqJatDWhHn2CMQ" alt="" data-size="line">
  * Like this text style? Find more about the CustomFont [expansion ](/expansions/customfont.md)and [plugin](/plugins/customfont.md)

{% hint style="info" %}
You need the **Utils** expansion for multiple inner placeholders\
\
Expansion download command: **/papi ecloud download Utils**
{% endhint %}
