_ButtonDestructive
Composition primitive, consumed by leaf keys via composes.
Source: client/lib/theme/vueda-tailwind/controls/index.js
The
--destructivefill: solid destructive background in light mode, 60%-mix in dark so the chip stays legible against--backgroundat rest, destructive-foreground text, and a destructive-tinted focus outline. Hover and active swap to the--destructive-hover/--destructive-activelightness 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 | 3 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. |
root
The
--destructivefill: solid destructive background in light mode, 60%-mix in dark so the chip stays legible against--backgroundat rest, destructive-foreground text, and a destructive-tinted focus outline. Hover and active swap to the--destructive-hover/--destructive-activelightness 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:
bg-destructive text-destructive-foreground
hover:bg-destructive-hover active:bg-destructive-active focus-visible:outline-destructive
dark:bg-destructive/60Source: client/lib/theme/vueda-tailwind/controls/_ButtonPrimitives.theme.js:66