Skip to content

_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.

SlotDefault classesDescription
root4 classesThe --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 --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