# Status and capsules · Divan

> A state is a coloured dot and a plain word. Capsules are for labels and counts, never for warnings.

Part of Divan, the DivanWorks design system. Web page: https://brand.divanworks.com/status · All topics: https://brand.divanworks.com/llms.txt

## Rules

- <Status tone="success|progress|attention|stopped|neutral|off">: success = on/done/live, progress = happening now (the lapis dot, bg-progress: never copper, which stays for actions), attention = waiting for someone, stopped = did not happen (say what to do beside it), neutral = nothing to do yet, off = ignored on purpose.
- <Badge> variants: default (neutral), tinted (copper), success.
- A task in a text that reads (renderMarkdown: Dabir’s answers, a proposal’s text) is a state too, never a checkbox (the browser’s, or a Checkbox disabled for good): a turquoise check when done and the neutral dot when not yet, in its bullet’s place, with the state in the page’s words for screen readers (taskMark, src/lib/studio/task-mark.ts).
- Backoffice comment states: received → neutral, scheduled → neutral, sending → progress, replied → success, handoff → attention “Needs a person”, error → stopped “Not sent”, skipped → off.

## Components

### Status

A state: coloured dot + plain word.

```ts
import { Status } from '#lib/components/ui/status/index.js';
```

```svelte
<Status tone="success">Connected</Status>
<Status tone="attention">Needs a person</Status>
<Status tone="stopped">Not sent</Status>
```

### Badge

Labels and counts (capsules). Never warnings.

```ts
import { Badge } from '#lib/components/ui/badge/index.js';
```

```svelte
<Badge>Round 3</Badge>
<Badge variant="success">Live</Badge>
<Badge>12 supporters</Badge>
```
