> For the complete documentation index, see [llms.txt](https://docs.vueless.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vueless.com/global-customization/font-size.md).

# Font Size

You can set the components font size globally for all Vueless components.

{% code title="vueless.config.{js,ts}" %}

```js
export default {
  text: 16, /* default -> 14 (pixels) */
};
```

{% endcode %}

If you define only the `text` (`medium`) value, `tiny`, `small` and `large` sizes will be automatically calculated. The expected values are listed in the table below:

| tiny (text.xs) | small (text.sm) | medium (text / text.md) | large (text.lg) |
| -------------- | --------------- | ----------------------- | --------------- |
| 8              | 10              | **12**                  | 14              |
| 9              | 11              | **13**                  | 15              |
| 10             | 12              | **14**                  | 16              |
| 11             | 13              | **15**                  | 17              |
| 12             | 14              | **16**                  | 18              |

If you want to use custom values for `tiny`, `small` and `large` font-sizes, you can define them manually.

{% code title="vueless.config.{js,ts}" %}

```js
export default {
  text: {
    xs: 12,
    sm: 13,
    md: 14,
    lg: 15,
  }
};
```

{% endcode %}

## Custom tailwind class

To implement global font size stylings, Vueless provides custom Tailwind CSS classes and corresponding CSS variables. Feel free to use these classes in your components whenever you need consistent rounding across your project.

You can also use the corresponding CSS variables directly:

| Custom classes | CSS variables in a utility class |
| -------------- | -------------------------------- |
| `text-tiny`    | `text-(--vl-text-xs)`            |
| `text-small`   | `text-(--vl-text-sm)`            |
| `text-medium`  | `text-(--vl-text)`               |
| `text-large`   | `text-(--vl-text-lg)`            |
