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>
383 lines
12 KiB
HTML
383 lines
12 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Scarf Design System</title>
|
|
<link rel="stylesheet" href="colors_and_type.css">
|
|
<link rel="icon" type="image/png" href="assets/scarf-app-icon-256.png">
|
|
<style>
|
|
* { box-sizing: border-box; }
|
|
html, body { margin: 0; padding: 0; }
|
|
body {
|
|
min-height: 100vh;
|
|
background:
|
|
radial-gradient(ellipse 100% 60% at 50% -10%, rgba(232, 147, 96, 0.18), transparent 60%),
|
|
var(--bg);
|
|
color: var(--fg);
|
|
font-family: var(--font-sans);
|
|
}
|
|
.wrap { max-width: 1080px; margin: 0 auto; padding: 80px 32px 120px; }
|
|
|
|
header { display: flex; align-items: center; gap: 20px; margin-bottom: 56px; }
|
|
.icon-tile {
|
|
width: 88px; height: 88px;
|
|
border-radius: 22px;
|
|
background-image: url('assets/scarf-app-icon-256.png');
|
|
background-size: cover;
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
h1 {
|
|
font-family: var(--font-display);
|
|
font-size: 44px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.02em;
|
|
margin: 0 0 6px;
|
|
line-height: 1.1;
|
|
}
|
|
.tagline {
|
|
font-size: 17px;
|
|
color: var(--fg-muted);
|
|
line-height: 1.5;
|
|
max-width: 56ch;
|
|
margin: 0;
|
|
}
|
|
|
|
.section-label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--fg-faint);
|
|
margin: 64px 0 20px;
|
|
}
|
|
|
|
/* Big feature card */
|
|
.hero-card {
|
|
display: grid;
|
|
grid-template-columns: 1.1fr 1fr;
|
|
gap: 0;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 18px;
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-md);
|
|
margin-bottom: 40px;
|
|
}
|
|
.hero-card .text {
|
|
padding: 36px 36px 32px;
|
|
display: flex; flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
.hero-card .preview {
|
|
background: var(--gradient-brand);
|
|
position: relative;
|
|
min-height: 320px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
}
|
|
.hero-card .preview img {
|
|
width: 60%; max-width: 240px;
|
|
filter: drop-shadow(0 14px 40px rgba(60, 18, 6, 0.35));
|
|
}
|
|
.hero-card h2 {
|
|
font-family: var(--font-display);
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.015em;
|
|
margin: 0 0 10px;
|
|
}
|
|
.hero-card p {
|
|
font-size: 15px;
|
|
color: var(--fg-muted);
|
|
line-height: 1.55;
|
|
margin: 0 0 24px;
|
|
}
|
|
.hero-card .cta {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 18px;
|
|
background: var(--accent);
|
|
color: var(--on-accent);
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
align-self: flex-start;
|
|
transition: background 120ms ease;
|
|
}
|
|
.hero-card .cta:hover { background: var(--accent-hover); }
|
|
.hero-card .cta svg { width: 16px; height: 16px; }
|
|
|
|
/* Token grid */
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
.tile {
|
|
display: block;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 18px 20px;
|
|
transition: transform 160ms var(--ease-smooth), border-color 160ms ease, box-shadow 160ms ease;
|
|
}
|
|
.tile:hover {
|
|
transform: translateY(-2px);
|
|
border-color: var(--border-strong);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
.tile .kicker {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--fg-faint);
|
|
margin-bottom: 6px;
|
|
}
|
|
.tile h3 {
|
|
margin: 0 0 4px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--fg);
|
|
}
|
|
.tile p {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: var(--fg-muted);
|
|
line-height: 1.45;
|
|
}
|
|
.swatches {
|
|
display: flex; gap: 4px; margin-top: 14px;
|
|
}
|
|
.sw {
|
|
flex: 1; height: 22px; border-radius: 4px;
|
|
border: 1px solid rgba(0,0,0,0.05);
|
|
}
|
|
|
|
/* Group titles */
|
|
.group-title {
|
|
font-family: var(--font-display);
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.01em;
|
|
margin: 0 0 16px;
|
|
}
|
|
.group-blurb {
|
|
font-size: 14px;
|
|
color: var(--fg-muted);
|
|
margin: 0 0 24px;
|
|
line-height: 1.5;
|
|
max-width: 60ch;
|
|
}
|
|
|
|
footer {
|
|
margin-top: 80px;
|
|
padding-top: 28px;
|
|
border-top: 1px solid var(--border);
|
|
font-size: 13px;
|
|
color: var(--fg-faint);
|
|
display: flex; justify-content: space-between; align-items: center;
|
|
}
|
|
footer a { color: var(--fg-muted); text-decoration: none; }
|
|
footer a:hover { color: var(--accent); }
|
|
|
|
@media (max-width: 760px) {
|
|
.hero-card { grid-template-columns: 1fr; }
|
|
.hero-card .preview { min-height: 200px; order: -1; }
|
|
h1 { font-size: 36px; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="wrap">
|
|
|
|
<header>
|
|
<div class="icon-tile" role="img" aria-label="Scarf app icon"></div>
|
|
<div>
|
|
<h1>Scarf Design System</h1>
|
|
<p class="tagline">A native macOS & iOS companion for the Hermes AI agent — calm, confident, and rust-warm. This site documents the palette, type, components, and screens.</p>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- UI Kit hero -->
|
|
<div class="section-label">UI Kit</div>
|
|
<a href="ui-kit/index.html" class="hero-card" style="text-decoration: none; color: inherit;">
|
|
<div class="text">
|
|
<h2>Interactive macOS app</h2>
|
|
<p>Click through every screen — Dashboard, Sessions, Insights, Projects, Chat, Settings, Tools, MCP servers, Cron, Logs, Memory, Activity, Health and more. Faithful to the real Scarf macOS app, with a working sidebar and the rust palette throughout.</p>
|
|
<span class="cta">
|
|
Open the kit
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 5l7 7-7 7"/></svg>
|
|
</span>
|
|
</div>
|
|
<div class="preview">
|
|
<img src="assets/scarf-app-icon-1024.png" alt="">
|
|
</div>
|
|
</a>
|
|
|
|
<!-- Tokens & components -->
|
|
<div class="section-label">Tokens & components</div>
|
|
<h2 class="group-title">Foundations</h2>
|
|
<p class="group-blurb">Each tile opens a single design-system card. They're sized for ~700px wide and render one concept at a time.</p>
|
|
|
|
<div class="grid">
|
|
<a class="tile" href="tokens/colors-brand.html">
|
|
<div class="kicker">Color</div>
|
|
<h3>Brand — amber → rust</h3>
|
|
<p>The 9-step rust ramp. Primary accent is <code>#C25A2A</code>.</p>
|
|
<div class="swatches">
|
|
<div class="sw" style="background:#FBF1E8"></div>
|
|
<div class="sw" style="background:#EFC59E"></div>
|
|
<div class="sw" style="background:#E89360"></div>
|
|
<div class="sw" style="background:#C25A2A"></div>
|
|
<div class="sw" style="background:#7A2E14"></div>
|
|
<div class="sw" style="background:#3B1608"></div>
|
|
</div>
|
|
</a>
|
|
|
|
<a class="tile" href="tokens/colors-neutrals.html">
|
|
<div class="kicker">Color</div>
|
|
<h3>Warm neutrals</h3>
|
|
<p>Slight amber undertone — never cool grey. 11 steps for surfaces and text.</p>
|
|
<div class="swatches">
|
|
<div class="sw" style="background:#FBF9F6"></div>
|
|
<div class="sw" style="background:#EAE5DD"></div>
|
|
<div class="sw" style="background:#B5ABA0"></div>
|
|
<div class="sw" style="background:#6A645B"></div>
|
|
<div class="sw" style="background:#2D2A25"></div>
|
|
<div class="sw" style="background:#100E0B"></div>
|
|
</div>
|
|
</a>
|
|
|
|
<a class="tile" href="tokens/colors-semantic.html">
|
|
<div class="kicker">Color</div>
|
|
<h3>Semantic palette</h3>
|
|
<p>Success, danger, warning, info — preserved from system conventions.</p>
|
|
<div class="swatches">
|
|
<div class="sw" style="background:#2AA876"></div>
|
|
<div class="sw" style="background:#D9534F"></div>
|
|
<div class="sw" style="background:#F0AD4E"></div>
|
|
<div class="sw" style="background:#3498DB"></div>
|
|
</div>
|
|
</a>
|
|
|
|
<a class="tile" href="tokens/colors-tool-kinds.html">
|
|
<div class="kicker">Color</div>
|
|
<h3>Tool-kind palette</h3>
|
|
<p>Bash, edit, search, web, think — the per-tool decorations in chat.</p>
|
|
<div class="swatches">
|
|
<div class="sw" style="background:#2AA876"></div>
|
|
<div class="sw" style="background:#3498DB"></div>
|
|
<div class="sw" style="background:#5B6CD9"></div>
|
|
<div class="sw" style="background:#8E5BC9"></div>
|
|
<div class="sw" style="background:#F0AD4E"></div>
|
|
</div>
|
|
</a>
|
|
|
|
<a class="tile" href="tokens/type-display.html">
|
|
<div class="kicker">Type</div>
|
|
<h3>Display scale</h3>
|
|
<p>Large titles & headlines — SF Pro Display, tight tracking.</p>
|
|
</a>
|
|
|
|
<a class="tile" href="tokens/type-body.html">
|
|
<div class="kicker">Type</div>
|
|
<h3>Body scale</h3>
|
|
<p>14px base, the working text of the app.</p>
|
|
</a>
|
|
|
|
<a class="tile" href="tokens/type-mono.html">
|
|
<div class="kicker">Type</div>
|
|
<h3>Mono</h3>
|
|
<p>SF Mono — for transcripts, paths, command output.</p>
|
|
</a>
|
|
|
|
<a class="tile" href="tokens/spacing-scale.html">
|
|
<div class="kicker">Layout</div>
|
|
<h3>Spacing scale</h3>
|
|
<p>4 / 8 / 12 / 16 / 20 / 24 / 32 / 40 — that's the whole grid.</p>
|
|
</a>
|
|
|
|
<a class="tile" href="tokens/spacing-radii.html">
|
|
<div class="kicker">Layout</div>
|
|
<h3>Radii</h3>
|
|
<p>4 / 6 / 8 / 12 / 14 / pill — tuned for native macOS controls.</p>
|
|
</a>
|
|
|
|
<a class="tile" href="tokens/spacing-shadows.html">
|
|
<div class="kicker">Layout</div>
|
|
<h3>Shadows</h3>
|
|
<p>Four elevation tiers, all on a warm-black tint.</p>
|
|
</a>
|
|
|
|
<a class="tile" href="tokens/iconography.html">
|
|
<div class="kicker">Brand</div>
|
|
<h3>Iconography</h3>
|
|
<p>Lucide icons at 16/18/20/24, 1.6px stroke, currentColor.</p>
|
|
</a>
|
|
|
|
<a class="tile" href="tokens/brand-mark.html">
|
|
<div class="kicker">Brand</div>
|
|
<h3>App mark</h3>
|
|
<p>The flowing-silk icon — preferred backgrounds & minimum sizes.</p>
|
|
</a>
|
|
</div>
|
|
|
|
<h2 class="group-title" style="margin-top: 56px;">Components</h2>
|
|
<p class="group-blurb">Composable pieces lifted directly from the macOS app's surfaces.</p>
|
|
|
|
<div class="grid">
|
|
<a class="tile" href="tokens/components-buttons.html">
|
|
<div class="kicker">Component</div>
|
|
<h3>Buttons</h3>
|
|
<p>Primary / secondary / ghost / destructive — three sizes each.</p>
|
|
</a>
|
|
<a class="tile" href="tokens/components-forms.html">
|
|
<div class="kicker">Component</div>
|
|
<h3>Forms</h3>
|
|
<p>Text fields, toggles, selects — with focus & error states.</p>
|
|
</a>
|
|
<a class="tile" href="tokens/components-sidebar.html">
|
|
<div class="kicker">Component</div>
|
|
<h3>Sidebar</h3>
|
|
<p>Section headers, items, active state, count pills.</p>
|
|
</a>
|
|
<a class="tile" href="tokens/components-stat-cards.html">
|
|
<div class="kicker">Component</div>
|
|
<h3>Stat cards</h3>
|
|
<p>Number-forward dashboard tiles.</p>
|
|
</a>
|
|
<a class="tile" href="tokens/components-status-cards.html">
|
|
<div class="kicker">Component</div>
|
|
<h3>Status cards</h3>
|
|
<p>Connection / health / run cards with semantic dots.</p>
|
|
</a>
|
|
<a class="tile" href="tokens/components-chat-bubbles.html">
|
|
<div class="kicker">Component</div>
|
|
<h3>Chat bubbles</h3>
|
|
<p>User & agent rich messages, avatars, timestamps.</p>
|
|
</a>
|
|
<a class="tile" href="tokens/components-composer.html">
|
|
<div class="kicker">Component</div>
|
|
<h3>Composer</h3>
|
|
<p>Multiline input with attachments & tool toggles.</p>
|
|
</a>
|
|
<a class="tile" href="tokens/components-tool-call.html">
|
|
<div class="kicker">Component</div>
|
|
<h3>Tool-call card</h3>
|
|
<p>Inline transcript card showing what the agent did.</p>
|
|
</a>
|
|
</div>
|
|
|
|
<footer>
|
|
<span>Scarf Design System · v2 (rust)</span>
|
|
<span><a href="ui-kit/index.html">UI kit</a> · <a href="tokens/colors-brand.html">First token</a></span>
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|