mirror of
https://github.com/awizemann/scarf.git
synced 2026-05-08 02:14:37 +00:00
8a2d89654b
Add a typed design-system package (Packages/ScarfDesign) with rust-tone color tokens, type scale, spacing/radius tokens, ScarfPageHeader and component primitives (ScarfCard, ScarfBadge, ScarfTextField, ScarfSectionHeader, ScarfDivider, four button styles). Both Mac and iOS targets `import ScarfDesign`. Sidebar redesigned per design/static-site/ui-kit/Sidebar.jsx — glassy translucent background, 224 px width, app-icon header with server pill, custom tokenized rows with rust accent-tint when active, footer with live Hermes-running indicator (wired to ServerLiveStatusRegistry). 14 mockup-backed feature screens redesigned: Settings, Dashboard, Sessions, Memory, Chat (visual sweep), Activity, Cron, Insights, MCPServers, Health, Logs, Tools (full); Projects light-touch. Non-mockup features inherit rust through AccentColor.colorset repoint. Mac AppIcon.appiconset replaced with the rust set. AccentColor.colorset repointed to BrandRust hex (light + dark variants). Visual sweep: every multi-button page-header / action-bar cluster now wraps in .fixedSize(horizontal: true, vertical: false) so labels can't wrap letter-by-letter at narrow widths (regression seen on the MCP detail pane with 4 buttons). Follow-ups landed: - Sidebar Hermes-running probe wired to per-window ServerLiveStatusRegistry (no more placeholder green). - Sessions: today filter predicate (isDateInToday(startedAt)); pill count reflects real count. Starred stays a no-op pending an upstream pinned/starred field on HermesSession. - Dashboard: Recent activity column rendered alongside Recent sessions in a ViewThatFits 2-col grid. Populated from HermesDataService.fetchRecentToolCalls(limit:) flattened to ActivityEntry. ActivityEntry gains a public memberwise init. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
32 lines
1.6 KiB
HTML
32 lines
1.6 KiB
HTML
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Buttons</title>
|
|
<link rel="stylesheet" href="_preview.css">
|
|
<style>
|
|
.btn { font-family:var(--font-sans); font-size:14px; font-weight:500; padding:7px 14px; border-radius:8px; border:1px solid transparent; cursor:pointer; transition:all 120ms var(--ease-smooth); }
|
|
.btn-primary { background:var(--accent); color:#fff; }
|
|
.btn-primary:hover { background:var(--accent-hover); }
|
|
.btn-secondary { background:var(--bg-card); color:var(--fg); border-color:var(--border-strong); }
|
|
.btn-secondary:hover { border-color:var(--accent); color:var(--accent-hover); }
|
|
.btn-ghost { background:transparent; color:var(--fg); }
|
|
.btn-ghost:hover { background:var(--bg-quaternary); }
|
|
.btn-danger { background:#fff; color:var(--red-600); border-color:var(--red-500); }
|
|
.btn-link { background:transparent; color:var(--accent); padding:6px 0; border:none; }
|
|
.btn-sm { font-size:12px; padding:4px 10px; }
|
|
</style></head>
|
|
<body>
|
|
<div class="card-root">
|
|
<div class="label">Buttons</div>
|
|
<div class="row">
|
|
<button class="btn btn-primary">Install Template</button>
|
|
<button class="btn btn-secondary">Run Diagnostics…</button>
|
|
<button class="btn btn-ghost">Cancel</button>
|
|
<button class="btn btn-danger">Delete</button>
|
|
<button class="btn btn-link">View All →</button>
|
|
</div>
|
|
<div class="row" style="margin-top:4px">
|
|
<button class="btn btn-primary btn-sm">Add</button>
|
|
<button class="btn btn-secondary btn-sm">Export</button>
|
|
<button class="btn btn-secondary btn-sm" disabled style="opacity:.4">Configure</button>
|
|
</div>
|
|
</div>
|
|
</body></html>
|