Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
refactor(ui): reuse Button for the five hand-rolled mint CTAs (#1421)
Call White44e14206ce6d
diff --git a/ui/src/components/ui/button-variants.ts b/ui/src/components/ui/button-variants.tsindex 97c2daf9b..8300f8a70 100644--- a/ui/src/components/ui/button-variants.ts+++ b/ui/src/components/ui/button-variants.ts@@ -25,14 +25,23 @@ export const buttonVariants = cva(// inverted direction surfaces at build time rather than in review. The glow// shadow no longer brightens with the fill; the fill swap carries the// affordance. See the --primary-hover note in index.css.+ //+ // Glow blur comes from --brand-glow-blur: 16px dark, 20px light (owner decisions+ // 2026-08-14 — 24px read too heavy, then 16px read as nothing in light, where the+ // same neon spreads far less over a white card). It is one token, not four: a+ // per-accent radius would be the same drift this variant exists to remove, and+ // routing it through a variable is what makes it theme-dependent at all — this+ // codebase has no `light:`/`dark:` Tailwind variant, so a per-theme value is+ // always a CSS variable. design.pen has no glow on any Button, so the value is+ // ours to hold, not the design's; keep the four in lockstep.brand:- 'gap-2 bg-mint font-bold text-primary-foreground shadow-[0_0_24px_-4px_rgba(91,255,160,0.6)] hover:bg-mint-hover disabled:shadow-none',+ 'gap-2 bg-mint font-bold text-primary-foreground shadow-[0_0_var(--brand-glow-blur)_-4px_rgba(91,255,160,0.6)] hover:bg-mint-hover disabled:shadow-none','brand-cyan':- 'gap-2 bg-cyan font-bold text-accent-foreground shadow-[0_0_24px_-4px_rgba(63,224,229,0.6)] hover:bg-cyan-hover disabled:shadow-none',+ 'gap-2 bg-cyan font-bold text-accent-foreground shadow-[0_0_var(--brand-glow-blur)_-4px_rgba(63,224,229,0.6)] hover:bg-cyan-hover disabled:shadow-none','brand-gold':- 'gap-2 bg-gold font-bold text-gold-foreground shadow-[0_0_24px_-4px_rgba(255,200,87,0.55)] hover:bg-gold-hover disabled:shadow-none',+ 'gap-2 bg-gold font-bold text-gold-foreground shadow-[0_0_var(--brand-glow-blur)_-4px_rgba(255,200,87,0.55)] hover:bg-gold-hover disabled:shadow-none','brand-violet':- 'gap-2 bg-violet font-bold text-violet-foreground shadow-[0_0_24px_-4px_rgba(124,91,255,0.55)] hover:bg-violet-hover disabled:shadow-none',+ 'gap-2 bg-violet font-bold text-violet-foreground shadow-[0_0_var(--brand-glow-blur)_-4px_rgba(124,91,255,0.55)] hover:bg-violet-hover disabled:shadow-none',secondary: 'gap-1.5 border border-border bg-secondary text-secondary-foreground hover:border-border-strong',// Outline — bg matches page surface so it sits cleanly on glow gradients.outline:diff --git a/ui/src/components/ui/directory-browser.tsx b/ui/src/components/ui/directory-browser.tsxindex 11669dcd9..a88859caf 100644--- a/ui/src/components/ui/directory-browser.tsx+++ b/ui/src/components/ui/directory-browser.tsx@@ -23,6 +23,7 @@ import { useTranslation } from 'react-i18next';import clsx from 'clsx';import { useApi } from '../../context/ApiContext';+import { Button } from './button';import { errorMessage } from '@/lib/errorMessage';interface DirectoryBrowserProps {@@ -594,19 +595,16 @@ export const DirectoryBrowser: React.FC<DirectoryBrowserProps> = ({>{t('directoryBrowser.cancel')}</button>- <button+ <Buttontype="button"+ variant="default"+ size={null}onClick={submitNewFolder}disabled={!newFolderName.trim()}- className={clsx(- 'rounded-md px-2.5 py-0.5 text-[11px] font-semibold transition',- newFolderName.trim()- ? 'bg-mint text-primary-foreground hover:bg-mint-hover'- : 'bg-muted-soft text-muted',- )}+ className="rounded-md px-2.5 py-0.5 text-[11px] font-semibold">{t('directoryBrowser.newFolder')}- </button>+ </Button></div>{createError && <div className="pl-6 text-[11px] text-destructive-ink">{createError}</div>}</div>@@ -635,20 +633,17 @@ export const DirectoryBrowser: React.FC<DirectoryBrowserProps> = ({>{t('directoryBrowser.cancel')}</button>- <button+ <Buttontype="button"+ variant="brand"+ size={null}onClick={() => canConfirm && onSelect(currentPath)}disabled={!canConfirm}- className={clsx(- 'flex items-center gap-1.5 rounded-md px-4 py-1.5 text-[12px] font-semibold transition',- canConfirm- ? 'bg-mint text-primary-foreground shadow-[0_0_14px_-4px_rgba(91,255,160,0.6)] hover:bg-mint-hover'- : 'cursor-not-allowed bg-muted-soft text-muted',- )}+ className="gap-1.5 rounded-md px-4 py-1.5 text-[12px] font-semibold"><Check className="size-3.5" />{t('directoryBrowser.select')}- </button>+ </Button></div></div></div>diff --git a/ui/src/components/workbench/NewAgentDialog.tsx b/ui/src/components/workbench/NewAgentDialog.tsxindex 65c35d14b..940377324 100644--- a/ui/src/components/workbench/NewAgentDialog.tsx+++ b/ui/src/components/workbench/NewAgentDialog.tsx@@ -334,20 +334,17 @@ export const NewAgentDialog: React.FC<NewAgentDialogProps> = ({ open, onClose, o>{t('common.cancel')}</button>- <button+ <Buttontype="button"+ variant="brand"+ size={null}onClick={handleSubmit}disabled={!canSubmit}- className={clsx(- 'inline-flex items-center gap-1.5 rounded-md px-4 py-1.5 text-[12px] font-bold transition',- canSubmit- ? 'bg-mint text-primary-foreground shadow-[0_0_14px_-4px_rgba(91,255,160,0.6)] hover:bg-mint-hover'- : 'cursor-not-allowed bg-muted-soft text-muted',- )}+ className="gap-1.5 rounded-md px-4 py-1.5 text-[12px]">{t('agents.create.submit')}<ArrowRight className="size-3.5" />- </button>+ </Button></div></div></div>diff --git a/ui/src/components/workbench/ShowPageAnnotateControl.tsx b/ui/src/components/workbench/ShowPageAnnotateControl.tsxindex b81f0a831..630756d41 100644--- a/ui/src/components/workbench/ShowPageAnnotateControl.tsx+++ b/ui/src/components/workbench/ShowPageAnnotateControl.tsx@@ -149,16 +149,18 @@ export const ShowPageAnnotateControl: React.FC<ShowPageAnnotateControlProps> = (<div className="hidden items-center md:flex">{enabled ? (<div className="flex h-7 items-center gap-0.5 rounded-lg border border-mint/40 bg-mint/[0.06] p-0.5 shadow-[0_0_16px_-6px_rgba(91,255,160,0.5)]">- <button+ <Buttontype="button"+ variant="default"+ size={null}onClick={onDisable}aria-label={offLabel}title={offLabel}aria-pressed- className="grid size-6 shrink-0 place-items-center rounded-[5px] bg-mint text-primary-foreground transition hover:bg-mint-hover"+ className="size-6 shrink-0 rounded-[5px]"><MessageSquarePlus className="size-3.5" />- </button>+ </Button><divrole="radiogroup"aria-label={t('chat.showPage.annotate.modeTitle')}diff --git a/ui/src/components/workbench/skills/AddSkillDialog.tsx b/ui/src/components/workbench/skills/AddSkillDialog.tsxindex 61637e1d4..5e521e4ac 100644--- a/ui/src/components/workbench/skills/AddSkillDialog.tsx+++ b/ui/src/components/workbench/skills/AddSkillDialog.tsx@@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next';import { useApi } from '../../../context/ApiContext';import type { SkillDiscovered, SkillScope } from '../../../context/ApiContext';import { useToast } from '../../../context/ToastContext';+import { Button } from '../../ui/button';import { SegmentedRadio } from '../../ui/segmented';import { Checkbox } from '../../ui/checkbox';import { BACKEND_CHIP, BACKEND_LABEL, BACKEND_ORDER, type Backend } from '../../../lib/backendAccent';@@ -321,15 +322,17 @@ export function AddSkillDialog({ defaultScope, projectId, projectName, onClose,<button type="button" onClick={onClose} className="rounded-lg border border-border-strong px-3.5 py-2 text-[12px] font-medium text-foreground transition hover:bg-foreground/[0.04]">{t('skills.addDialog.cancel')}</button>- <button+ <Buttontype="button"+ variant="brand"+ size={null}onClick={install}disabled={!discovered || selected.size === 0 || backends.size === 0 || busy === 'install'}- className="flex items-center gap-1.5 rounded-lg bg-mint px-4 py-2 text-[12px] font-semibold text-primary-foreground shadow-[0_4px_16px_-4px_rgba(91,255,160,0.5)] transition hover:bg-mint-hover disabled:opacity-50"+ className="gap-1.5 px-4 py-2 text-[12px] font-semibold">{busy === 'install' ? <Loader2 className="size-3.5 animate-spin" /> : <Download className="size-3.5" />}{busy === 'install' ? t('skills.addDialog.installing') : t('skills.addDialog.install', { count: selected.size })}- </button>+ </Button></div></div></div>diff --git a/ui/src/index.css b/ui/src/index.cssindex 188026990..b433ccad4 100644--- a/ui/src/index.css+++ b/ui/src/index.css@@ -187,6 +187,12 @@--pink-soft: rgba(255, 91, 138, 0.10);--pink-ink: #ff5b8a;+ /* Blur radius of the brand CTA glow, shared by all four `brand*` Button variants+ (see button-variants.ts). One radius, four accents — a per-accent value would be+ the drift that variant exists to remove. It lives here rather than in the class+ because it is the one part of that glow that differs per theme. */+ --brand-glow-blur: 16px;+/* Page-family gradients (mirror design.pen 1:1). Layers ordered top-most first. */--gradient-console:radial-gradient(50% 40% at 5% 5%, rgba(91, 255, 160, 0.20), rgba(91, 255, 160, 0) 100%),@@ -335,6 +341,10 @@/* Light card glow — much softer than dark. */--shadow-mint-card: 0 12px 24px -16px rgba(16, 185, 129, 0.20);--shadow-mint-card-lg: 0 16px 32px -16px rgba(16, 185, 129, 0.22);++ /* Wider CTA glow than dark: the same neon spreads far less over a white card,+ so 16px read as almost nothing here (owner decision 2026-08-14). */+ --brand-glow-blur: 20px;}}@@ -435,6 +445,10 @@/* Light card glow — much softer than dark. */--shadow-mint-card: 0 12px 24px -16px rgba(16, 185, 129, 0.20);--shadow-mint-card-lg: 0 16px 32px -16px rgba(16, 185, 129, 0.22);++ /* Wider CTA glow than dark: the same neon spreads far less over a white card,+ so 16px read as almost nothing here (owner decision 2026-08-14). */+ --brand-glow-blur: 20px;}html,