Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
Desktop styles
How the desktop renderer (apps/desktop/src/renderer/) styles its views. Views hold no styling of their own: text, layout and visuals come from the shared primitives and tokens below, and an inline style is left only for values computed at runtime.
Tokens (styles/theme.css)
- Color:
--text,--secondary,--tertiary,--danger,--attention(status text),--accent, surfaces (--background,--surface,--panel,--bubble-*,--chat-*,--chrome-fill,--composer-fill), strokes (--border,--chrome-stroke,--stroke-strong,--outlinefor the 1px edge of floating layers: the composer, sheets, dialogs and menus), fills with their ink (--accent-fill/--on-accent,--danger-fill/--on-danger,--warning/--on-warning),--added/--removed,--code-background,--scrim, the chosen option of a segmented choice or chip (--chip-on,--chip-shadow). Sheets and dialogs sit on--sheet(a step above the page in dark mode) with grouped rows on--groupand text fields on--field, tints that stack; inside.modal-contentthe page tokens point at them (--background→--sheet,--surfaceand--bubble-agent→--group,--bubble-user→--field), so a view styled with the page tokens fits a sheet unchanged. Every color has a light and a dark value. Views use the tokens, orrgba(var(--text-rgb), a)for a tint of the text color; a literal only where the color must not follow the theme (white behind a QR code or a favicon). - Type ramp:
--text-large-title26,--text-title22,--text-title217,--text-title315,--text-body13,--text-callout12,--text-caption11 (points, scaled by the text size preference).lib/fonts.tsmaps the macOS style names onto it (headlineandbody→ body,compactBody→ callout,subheadline,footnote,caption,caption2,compactSecondary→ caption). - Radius:
--radius-xs6,--radius-s10,--radius-m12,--radius-l16,--radius-xl22,--radius-pill. Shadow:--shadow-s(resting),--shadow-m(floating chrome),--shadow-l(menus, panels),--shadow-xl(sheets, dialogs). - Motion:
--hover,--fade,--press,--morph,--layout,--ease,--ease-out,--spring. The island has its own (--island-spring,--island-fold) inviews/island/island.css.
Primitives (components/)
| Need | Use |
|---|---|
| Text in a type style and color | <Text size="caption" tone="secondary" weight="semibold" mono as="div"> (Text.tsx). With size the weight defaults to regular (bold for headline); without it, size and weight come from around it. truncate ends one line with an ellipsis, lines={n} clamps to n lines, grow takes a stack's free space, tabular lines digits up |
| A row / a column | <HStack gap={8}> (centered vertically; align="stretch" or "baseline" otherwise) / <VStack gap={8}> (Stack.tsx); grow takes the free space, shrink lets it shrink so text inside can truncate; justify, wrap, as |
| Space between stack items | <Spacer />, <Spacer min={8} /> |
| A fixed-width column that centers an icon, so labels line up | <IconSlot width={18} tone="secondary"> |
| A row's title with a note under it | RowLabel (Controls.tsx) |
| Reorder by dragging | pointerDrag (lib/pointer-drag.ts), not native drag and drop: the pointer holds a closed hand, and a roster row lifts as a smaller, translucent copy that settles into its slot |
| A sheet's content | <SheetPage> with a ModalHeader (Overlay.tsx); ModalHeader takes an icon (an SF Symbol name on a tile, or a logo element), a title that wraps to two lines, a subtitle (up to two lines, the rest in its tooltip), and onClose when it heads a panel instead of a modal. A Sheet without height fits its content up to maxHeight (and the window); FormSheet does that unless fixed (content that fills the card or slides in pages that do: a terminal, an agent sheet) |
One line with an ellipsis on an element that isn't Text |
.truncate |
| Controls | Controls.tsx, Overlay.tsx, Menu.tsx, Icon.tsx; Hairline, Pill, Switch and ProgressBar take a className for a view's own sizing, and a panel beside an anchor is placed with anchorPlacement |
Where a style goes
- Text styling is
Textprops; layout isHStack/VStack/Spacer. - Anything else static (padding, background, radius, size, position, borders) is a class in the view's CSS file, named after the view (
.bot-row,.unread-badge), written with the tokens above. - No static inline styles. Inline
styleonly for values computed at runtime: a size or color from props or data, a measured width, a transform that follows state. Keep the static part of that element in its class. - A pattern repeated across views becomes a primitive or a shared class here; don't copy it.
- Anything clickable shows the pointing hand (a
:whererule intheme.css, so a view's owncursorwins); text fields show the text cursor.