Skip to content
Eskais UI

Foundations

Tone

The Tone type: neutral, info, success, warning and destructive, the one status vocabulary of Badge, Alert, StatusPill, Progress, Meter and Toast, plus violet, a category tone that is not a status.

Example

  • neutralneutralNo judgement
  • infoinfoIn progress
  • successsuccessDone, healthy
  • warningwarningNeeds attention
  • destructivedestructiveFailed, blocked
  • violetvioletA category

Installation

npx shadcn@latest add @eskais/tone

Usage

Import
import { Tone, tones } from "@/lib/tone"

Import Tone wherever a component takes a status, instead of loose strings or component-specific words.

API reference

This item exports functions and types rather than components.

Other exports

Tonetones

Accessibility

  • Every tone's soft foreground reaches 4.5:1 on its soft fill, in both modes and every palette.

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.