Ghost mascotPro
A floating ghost whose scalloped hem ripples as it hovers: it blinks at rest, comes forward to listen, rises and turns translucent under a swirl while thinking, writes with a tiny pen, smiles when done and wobbles on an error.
oxyn add ghost-mascotThe preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- A soft floating assistant for calm, friendly surfaces: Oxyn's own ghost with a scalloped, rippling hem.
When not to use
- Replays a multi-agent run on one clock: use Agent timeline instead.
- One model at a glance: use Model card instead.
- A small automation on a single rail: use AI workflow instead.
Installation
Ghost mascot is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add ghost-mascotUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Loop
Plays every status in turn.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Listening ink
Listening, ink (Oxyn extra).
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Sizes
Thinking with a size ladder (Oxyn extra).
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
GhostMascot
| Prop | Type | Default | Description |
|---|---|---|---|
nowrequired | ClockMs | — | Host clock. |
status | String | Default::default() | Status; empty plays the loop. |
size | f32 | 96.0 | Size, px. |
tone | String | "soft" | `ink`, `soft` or `violet`. |
ground | bool | true | The floating shadow. |
paused | bool | Default::default() | Freeze. |
name | String | "Assistant" | Name in the label. |
announce | bool | Default::default() | Announce status changes. |
picker | bool | Default::default() | Status chips and Pause (Oxyn extra). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| — | A status image: it takes no focus. |
Accessibility
- The drawing is role img labelled with the name and status, updated with every change.
- With announce on, status changes are read in a polite live region outside the image; use it on one character per view.
- Each status also changes the expression (eyes widen, lift, drop, squint with joy, brows knit), so meaning never rests on movement or colour.
- Reduced motion keeps each status's face and drops the loops.
From the spec
role img labelled with name and status; optional polite announcements; status changes the face and marks. Every action returns the line the polite live region announces. The focus outline shows only for keyboard focus.
Motion & interaction
The hem is two travelling waves over three scallops; the shadow shrinks as the ghost rises; listening opens a small mouth; writing draws a line with a tiny pen.
Timing
Everything on screen is derived from the host clock now (no timers in the component), so playback, tests and the GPUI view agree.
| Transition | Duration | Easing |
|---|---|---|
| Status blend | 420 ms (BLEND_MS) | ease-in-out |
| Loop step | 2800 ms per status (STEP_MS) | — |
| Blink | 140 ms every 3.6 s | linear |
| Error shake | 700 ms, decaying | sine |
Reduced motion: loops and travel stop; each state shows its end pose and its words.
Responsive behaviour
- A fixed square that never reflows; the shadow shrinks as the ghost rises.
- Under 56 px a tighter framing keeps the eyes readable.
Edge cases (spec)
A fixed square; under 56 px a tighter framing. Tones: soft (raised sheet with a hairline), ink, violet. Checked at 1440, 768 and 390 px in light and dark with no text overlap. Chrome is monochrome grey; colour is semantic only (success, warning, danger, info) plus the official coloured brand and model marks.
Notes for AI
- Import
GhostMascotfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
AiKitViewinoxyn_gpui. - Props to set first:
now. - It reads a clock (
now) for live timers; pass one clock for the whole page rather than one per component. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.