---
url: "https://vueda.dev/v3/reference/theming/keys/_ButtonDestructive.md"
title: "_ButtonDestructive"
---

# _ButtonDestructive

_Composition primitive, consumed by leaf keys via `composes`._

Source: `client/lib/theme/vueda-tailwind/controls/index.js`

> The `--destructive` fill: solid destructive background in light mode, 60%-mix in dark so the chip stays legible against `--background` at rest, destructive-foreground text, and a destructive-tinted focus outline. Hover and active swap to the `--destructive-hover` / `--destructive-active` lightness steps (darker in light mode, lighter in dark). Reserve for actions that delete user data or are otherwise irreversible; menu / list destructive items use a colour-only recipe.

| Slot | Default classes | Description |
| --- | --- | --- |
| [root](/v3/reference/theming/keys/_ButtonDestructive.md#theme-key-_ButtonDestructive-root) | 4 classes | The `--destructive` fill: solid destructive background in light mode, 60%-mix in dark so the chip stays legible against `--background` at rest, destructive-foreground text, and a destructive-tinted focus outline. Hover and active swap to the `--destructive-hover` / `--destructive-active` lightness steps (darker in light mode, lighter in dark). Reserve for actions that delete user data or are otherwise irreversible; menu / list destructive items use a colour-only recipe. |

<a id="theme-key-_ButtonDestructive-root"></a>

## root

> The `--destructive` fill: solid destructive background in light mode, 60%-mix in dark so the chip stays legible against `--background` at rest, destructive-foreground text, and a destructive-tinted focus outline. Hover and active swap to the `--destructive-hover` / `--destructive-active` lightness steps (darker in light mode, lighter in dark). Reserve for actions that delete user data or are otherwise irreversible; menu / list destructive items use a colour-only recipe.

Default classes:

```text
bg-destructive text-destructive-foreground
hover:bg-destructive-hover active:bg-destructive-active focus-visible:outline-destructive
dark:bg-destructive/60
disabled:bg-disabled disabled:text-disabled-foreground disabled:shadow-none dark:disabled:bg-disabled
```

Source: `client/lib/theme/vueda-tailwind/controls/_ButtonPrimitives.theme.js:76`
