> 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/focus-outline.md).

# Focus Outline

You can set the focus outline width globally for all Vueless components.

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

```js
export default {
  outline: 4, /* default -> 2 (pixels) */
};
```

{% endcode %}

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

| small (outline.sm) | medium (outline / outline.md) | large (outline.lg) |
| ------------------ | ----------------------------- | ------------------ |
| 0                  | **0**                         | 0                  |
| 0                  | **1**                         | 2                  |
| 1                  | **2**                         | 3                  |
| 2                  | **3**                         | 4                  |
| 3                  | **4**                         | 5                  |
| 4                  | **5**                         | 6                  |
| 5                  | **6**                         | 7                  |

If you want to use custom values for `small` and `large` outlines, you can define them manually.

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

```js
export default {
  outline: {
    sm: 2,
    md: 4,
    lg: 6,
  }
};
```

{% endcode %}

## Custom tailwind class

To implement global focus ring 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 |
| ---------------- | -------------------------------- |
| `outline-small`  | `outline-(--vl-outline-sm)`      |
| `outline-medium` | `outline-(--vl-outline)`         |
| `outline-large`  | `outline-(--vl-outline-lg)`      |
