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

# General

To customize the look and feel of Vueless and modify the default library configuration, use the `vueless.config.{js,ts}` file, which should be placed in the root of your project.

***

## Colors

Components are based on a `primary` color and `neutral` color.

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

```js
export default {
  primary: "blue",
  neutral: "stone",
};
```

{% endcode %}

Vueless uses Tailwind CSS under the hood, so you can use any of the [Tailwind CSS colors](https://tailwindcss.com/docs/customizing-colors#color-palette-reference) or your own custom colors. See [Colors](https://docs.vueless.com/global-customization/colors.md) chapter for more details.

***

## Rounding

Use the `rounding` key to simultaneously apply a border radius to all components.

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

```js
export default {
  rounding: 6, /* px */
};
```

{% endcode %}

See [Rounding](https://docs.vueless.com/global-customization/rounding.md) chapter for more details.

***

## Focus Outline

Use the `outline` key to simultaneously apply a focus outline ring to all components.

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

```js
export default {
  outline: 4, /* px */
};
```

{% endcode %}

See [Focus Outline](#focus-outline) chapter for more details.

***

## Font Size

Use the `fontSize` key to simultaneously apply a font size to all components.

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

```js
export default {
  fontSize: 16, /* px */
};
```

{% endcode %}

See [Font Size](https://docs.vueless.com/global-customization/font-size.md) chapter for more details.

***

## Letter Spacing

Use the `letterSpacing` key to simultaneously apply letter spacing to all components.

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

```js
export default {
  letterSpacing: 0.025, /* em */
};
```

{% endcode %}

See [Letter Spacing](https://docs.vueless.com/global-customization/letter-spacing.md) chapter for more details.

## Disabled Opacity

You can set the components disabled state opacity globally for related Vueless components.

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

```js
export default {
  disabledOpacity: 40, /* percent, % */
};
```

{% endcode %}

See [Disabled Opacity ](https://docs.vueless.com/global-customization/disabled-opacity.md)chapter for more details.

***

## Dark mode

Use the `colorMode` key to define dark / light modes for all components.

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

```js
export default {
  colorMode: "dark", /* dark | light | auto */
};
```

{% endcode %}

See [Dark mode](https://docs.vueless.com/global-customization/dark-mode.md) chapter for more details.

***

## Cookie Prefix

Theme values are stored in cookies for SSR. Browsers scope cookies by host but not by port, so apps served from the same host (for example, several apps on `localhost`) would share them. To keep them separate, Vueless prefixes theme cookie names with your `package.json` name (`@acme/back-office` becomes `acme-back-office-vl-color-mode`). No configuration is needed.

Use the `cookiePrefix` key to override the prefix, or set it to an empty string to disable prefixing.

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

```js
export default {
  cookiePrefix: "app-a",
};
```

{% endcode %}

Local storage keys are never prefixed, because local storage is already separate per origin. On the client Vueless reads theme values from local storage; the cookies exist so SSR apps can read them and pass them to `getTheme()`.
