> For the complete documentation index, see [llms.txt](https://staylime.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://staylime.com/docs/avante-themes/theme-settings/typography/custom-typography-preset.md). Agents can also search and read this documentation through its [MCP server](https://staylime.com/docs/~gitbook/mcp).

# Custom typography preset

Full control over every individual text style — font, size, weight, and spacing — independently for each heading and body level.

{% hint style="info" %}
**Theme Editor → Theme settings → Custom typography preset**
{% endhint %}

{% hint style="success" icon="lightbulb" %}
This is a group of its own in the Theme settings list, and it sits below Typography. The settings in it only take effect once **Typography preset** is set to **Custom** in [**Theme settings → Typography**](https://staylime.com/docs/avante-themes/theme-settings/typography.md).
{% endhint %}

<figure><img src="https://795663372-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6DraMvJNYYlFJqlho1aV%2Fuploads%2Fp4yzpjbGiLS3BIYyjIdO%2FGroup%2011.jpg?alt=media&amp;token=c59b36cf-4abd-4452-b94f-531ec39a5dad" alt=""><figcaption></figcaption></figure>

The built-in presets cover most brands. Custom preset is for when you need to go further — a different font per heading level, precise letter-spacing for a luxury feel, or responsive sizes that are tuned independently for desktop and mobile.

***

### When to use Custom preset

{% columns %}
{% column %}

> **Mix fonts by heading level**\
> Use Accent for H1, Base for H2–H3 for contrast.

> **Tune letter-spacing**\
> Add spacing for a luxury or editorial feel.
> {% endcolumn %}

{% column %}

> **Set responsive sizes per element**\
> Control desktop and mobile sizes independently.

> **Use uppercase selectively**\
> Apply it only to labels or headings — not everywhere.
> {% endcolumn %}
> {% endcolumns %}

***

### Text styles

<figure><img src="https://795663372-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6DraMvJNYYlFJqlho1aV%2Fuploads%2F5LhV4MJhftmZmEtJn54T%2FGroup%2017.jpg?alt=media&amp;token=0a5a0024-9d8e-450c-bdde-c82fc0c4d09f" alt=""><figcaption></figcaption></figure>

Custom preset exposes 9 individual text styles. For each one you get the same set of controls:

<table data-search="false"><thead><tr><th>Control</th><th>What it does</th></tr></thead><tbody><tr><td><strong>Font</strong></td><td>Which of the three font slots this style uses — Base, Accent or Secondary</td></tr><tr><td><strong>Uppercase</strong></td><td>Checkbox. Renders the style in capitals</td></tr><tr><td><strong>Make font bolder</strong></td><td>Checkbox. Steps the style up to a heavier weight of the same font</td></tr><tr><td><strong>Line height</strong></td><td>Vertical spacing between lines, from 0.8 to 2</td></tr><tr><td><strong>Desktop base size</strong></td><td>Font size on desktop, in pixels</td></tr><tr><td><strong>Mobile base size</strong></td><td>Font size on mobile, set independently</td></tr><tr><td><strong>Letter-spacing</strong></td><td>Horizontal spacing between characters, from -100 to 100</td></tr></tbody></table>

{% hint style="warning" %}
**Uppercase and Make font bolder are checkboxes, not a list of cases or weights.** There is no Capitalize option and no Regular / Medium / Bold dropdown here — each style is either uppercase or not, and either bolder or not.
{% endhint %}

{% hint style="info" %}
**Uppercase only reaches text that is still following the preset.** Sections and blocks have their own size setting, and the one that hands control back to your preset is **Default for typography preset**. Where a section or block has been pointed at a specific style instead, the Uppercase checkbox here will not change it.
{% endhint %}

**Icon weight** sits at the top of the group, above the text styles. It sets how thick the theme's icons are drawn — Regular, Medium or Bold — and it is the Custom preset's equivalent of the Base and Accent icon weights.

The 9 styles and where they apply:

<table data-search="false"><thead><tr><th>Style</th><th>Used for</th></tr></thead><tbody><tr><td><strong>Heading XL</strong></td><td>Page hero titles, large banner headings</td></tr><tr><td><strong>Heading L</strong></td><td>Section headings</td></tr><tr><td><strong>Heading M</strong></td><td>Subsection headings, product titles</td></tr><tr><td><strong>Heading S</strong></td><td>Card titles, smaller headings</td></tr><tr><td><strong>Heading XS</strong></td><td>Labels styled as headings, small titles</td></tr><tr><td><strong>Body L</strong></td><td>Large body text, intros</td></tr><tr><td><strong>Body M</strong></td><td>Standard body text, product descriptions</td></tr><tr><td><strong>Body S</strong></td><td>Small body text, footnotes, captions</td></tr><tr><td><strong>Label</strong></td><td>Badges, tags, UI labels</td></tr></tbody></table>

***

### UI element assignments

Below the 9 text styles, the group ends with four short sections that point specific parts of the interface at one of those styles. Each setting is a dropdown: leave it on **Default** to keep the preset's own choice, or pick the text style you want.

<table data-search="false"><thead><tr><th>Section</th><th>Settings</th></tr></thead><tbody><tr><td><strong>Buttons</strong></td><td>Regular button label, Navigation button label</td></tr><tr><td><strong>Product card</strong></td><td>Title size, Price size, Text size</td></tr><tr><td><strong>Collection card</strong></td><td>Title size</td></tr><tr><td><strong>Navigation</strong></td><td>Items size</td></tr></tbody></table>

Most of these dropdowns offer both a plain and an uppercase version of the same style, so you can set a product card title in Heading S and a button label in Heading M uppercase without touching the styles themselves.

{% hint style="success" icon="lightbulb" %}
**Tip:** The **Secondary** font becomes genuinely useful here. Pick it in [**Theme settings → Typography**](https://staylime.com/docs/avante-themes/theme-settings/typography.md), assign it to a single text style such as Label, then point buttons or product card text at that style.
{% 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://staylime.com/docs/avante-themes/theme-settings/typography/custom-typography-preset.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
