6.1 Base card
A paper surface on a warm page. Hair border, 14px radius, 24px padding. Three fills: paper (default), sunken (nested), warm (held).
Card
.card · .card-sunk · .card-warmThree fills solve nearly every containment question. Pick one; never layer paper on paper.
Card title
Calm, generous padding. One hair border. The card is the default surface for almost everything that's not a page background.
Sunken card
Use inside another card, or over warm-5 to feel nested.
Warm card
For sections that should feel held rather than separated.
<div class="card card-narrow">
<h3 class="card-title">Card title</h3>
<p class="card-body">Calm, generous padding. One hair border. The card is the default surface for almost everything that's not a page background.</p>
</div>
<div class="card card-sunk card-narrow">
<h3 class="card-title">Sunken card</h3>
<p class="card-body">Use inside another card, or over warm-5 to feel nested.</p>
</div>
<div class="card card-warm card-narrow">
<h3 class="card-title">Warm card</h3>
<p class="card-body">For sections that should feel held rather than separated.</p>
</div>.card {
background: var(--bg-paper);
border: 1px solid var(--hair);
border-radius: var(--r-lg);
padding: var(--s-6) var(--s-6);
display: flex; flex-direction: column; gap: var(--s-2);
transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.card-title { font: 600 16px/1.3 var(--f-display); color: var(--fg); margin: 0; letter-spacing: -0.005em; }
.card-body { font: 400 14px/1.55 var(--f-body); color: var(--fg-soft); margin: 0; }
.card-sunk { background: var(--bg-sunk); border-color: var(--hair-soft); }
.card-warm { background: color-mix(in oklab, var(--warm-5) 50%, var(--bg-paper)); border-color: var(--warm-7); }
.card-narrow { max-width: 320px; }
import { Card } from "@magicblocksai/ui";
export default function Demo() {
return (
<>
<Card narrow>
<h3 className="card-title">Card title</h3>
<p className="card-body">Calm, generous padding.</p>
</Card>
<Card fill="sunk" narrow>…</Card>
<Card fill="warm" narrow>…</Card>
</>
);
}6.2 Feature card
Icon + title + body + link. The bedrock of a marketing grid. Hover lifts 2px and borders go pink — promises a next step.
Feature card grid
.feat-cardSpeed-to-lead
A real reply inside 30 seconds — on the channel the lead arrived. Every time.
Learn moreAlways on
24/7 across chat, email, SMS, voice. Patience that scales without a bigger team.
Learn moreHandoff clean
When stakes rise, the agent hands off with full context. No dropped threads.
Learn more<div class="feat-grid">
<a class="feat-card" href="#">
<div class="feat-icon feat-icon-pink" aria-hidden="true"><svg>…</svg></div>
<h3 class="feat-title">Speed-to-lead</h3>
<p class="feat-body">A real reply inside 30 seconds — on the channel the lead arrived. Every time.</p>
<span class="feat-link">Learn more <svg>…</svg></span>
</a>
<a class="feat-card" href="#">
<div class="feat-icon feat-icon-blue" aria-hidden="true"><svg>…</svg></div>
<h3 class="feat-title">Always on</h3>
<p class="feat-body">24/7 across chat, email, SMS, voice. Patience that scales without a bigger team.</p>
<span class="feat-link">Learn more <svg>…</svg></span>
</a>
<a class="feat-card" href="#">
<div class="feat-icon feat-icon-green" aria-hidden="true"><svg>…</svg></div>
<h3 class="feat-title">Handoff clean</h3>
<p class="feat-body">When stakes rise, the agent hands off with full context. No dropped threads.</p>
<span class="feat-link">Learn more <svg>…</svg></span>
</a>
</div>.feat-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: var(--s-5); width: 100%;
}
.feat-card {
background: var(--bg-paper);
border: 1px solid var(--hair);
border-radius: var(--r-lg);
padding: var(--s-6);
text-decoration: none;
color: var(--fg);
display: flex; flex-direction: column; gap: var(--s-3);
transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.feat-card:hover {
border-color: var(--accent);
transform: translateY(-2px);
box-shadow: var(--sh-3);
}
.feat-card:hover .feat-link svg { transform: translateX(3px); }
.feat-icon {
width: 40px; height: 40px; border-radius: var(--r-md);
display: inline-flex; align-items: center; justify-content: center;
}
.feat-icon-pink { background: var(--accent-soft); color: var(--accent-text); }
.feat-icon-blue { background: var(--info-soft); color: var(--info-text); }
.feat-icon-green { background: var(--success-soft); color: var(--success-text); }
.feat-title { font: 600 16px/1.3 var(--f-display); margin: 0; letter-spacing: -0.005em; }
.feat-body { font: 400 14px/1.55 var(--f-body); color: var(--fg-soft); margin: 0; }
.feat-link { margin-top: auto; display: inline-flex; align-items: center; gap: var(--s-2); font: 600 13px/1 var(--f-mono); color: var(--accent-text-strong); text-transform: uppercase; letter-spacing: 0.06em; }
.feat-link svg { transition: transform var(--dur-2) var(--ease); }import { FeatureCard } from "@magicblocksai/ui";
<FeatureCard
href="#"
iconTone="pink"
icon={<svg />}
title="Speed-to-lead"
linkLabel="Learn more →"
>
A real reply inside 30 seconds.
</FeatureCard>6.3 Pricing card
Three tiers, middle is the hero. Ribbon + pink border + primary CTA mark the recommendation. 'Let's talk' uses Fraunces italic for warmth.
Tiered pricing
.price-cardFor small teams testing the water.
- 1 agent
- 5,000 conversations / mo
- Chat & email channels
For teams that live and die by speed-to-lead.
- Up to 5 agents
- 50,000 conversations / mo
- All channels + CRM sync
- Human handoff routing
Enterprise teams, custom channels, dedicated engineering.
- Unlimited agents
- SLA + SSO + audit logs
- Dedicated success engineer
<div class="price-grid">
<div class="price-card">
<div class="price-badge">Starter</div>
<div class="price-amt"><span class="mono price-cur">$</span>49<span class="mono price-per">/mo</span></div>
<p class="price-desc">For small teams testing the water.</p>
<ul class="price-list">
<li>1 agent</li>
<li>5,000 conversations / mo</li>
<li>Chat & email channels</li>
</ul>
<button class="btn-line">Start free</button>
</div>
<div class="price-card price-card-hero">
<div class="price-ribbon">Most teams pick this</div>
<div class="price-badge">Grow</div>
<div class="price-amt"><span class="mono price-cur">$</span>249<span class="mono price-per">/mo</span></div>
<p class="price-desc">For teams that live and die by speed-to-lead.</p>
<ul class="price-list">
<li>Up to 5 agents</li>
<li>50,000 conversations / mo</li>
<li>All channels + CRM sync</li>
<li>Human handoff routing</li>
</ul>
<button class="btn-fill">Book a demo</button>
</div>
<div class="price-card">
<div class="price-badge">Scale</div>
<div class="price-amt price-amt-talk">Let's talk</div>
<p class="price-desc">Enterprise teams, custom channels, dedicated engineering.</p>
<ul class="price-list">
<li>Unlimited agents</li>
<li>SLA + SSO + audit logs</li>
<li>Dedicated success engineer</li>
</ul>
<button class="btn-line">Contact sales</button>
</div>
</div>.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-5); width: 100%; }
.price-card {
position: relative;
background: var(--bg-paper);
border: 1px solid var(--hair);
border-radius: var(--r-xl);
padding: var(--s-7);
display: flex; flex-direction: column; gap: var(--s-3);
}
.price-card-hero {
background: linear-gradient(180deg, var(--bg-paper), var(--bg-paper));
border: 1.5px solid var(--accent);
box-shadow: var(--sh-3);
}
.price-ribbon {
position: absolute; top: -12px; left: var(--s-5);
background: var(--accent); color: var(--paper);
font: 600 11px/1 var(--f-mono);
text-transform: uppercase; letter-spacing: 0.08em;
padding: 6px 10px; border-radius: var(--r-pill);
}
.price-badge {
font: 500 12px/1 var(--f-mono);
color: var(--fg-dim); text-transform: uppercase;
letter-spacing: 0.1em;
}
.price-amt {
font: 700 44px/1 var(--f-display);
color: var(--fg); letter-spacing: -0.03em;
}
.price-amt-talk { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); font-size: 32px; font-variation-settings: "SOFT" 80; }
.price-cur { font-size: 20px; vertical-align: top; color: var(--fg-dim); margin-right: 2px; font-weight: 500; }
.price-per { font-size: 14px; color: var(--fg-dim); font-weight: 500; letter-spacing: 0; }
.price-desc { font: 400 13.5px/1.55 var(--f-body); color: var(--fg-soft); margin: 0; min-height: 2.8em; }
.price-list { list-style: none; padding: 0; margin: var(--s-3) 0 var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); font: 400 14px/1.4 var(--f-body); color: var(--fg); }
.price-list li { position: relative; padding-left: var(--s-5); }
.price-list li::before { content: ""; position: absolute; left: 0; top: .4em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.btn-fill, .btn-line {
/* Inline-flex + nowrap so text stays on one line and any trailing
icon (like the CTA's → SVG) sits neatly next to the text instead
of wrapping to a second line. Matches the shared .btn pattern. */
display: inline-flex; align-items: center; justify-content: center;
gap: var(--s-2);
font: 600 14px/1 var(--f-display); padding: 12px var(--s-5);
border-radius: var(--r-md); cursor: pointer; border: 1px solid transparent;
white-space: nowrap;
text-decoration: none;
transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.btn-fill { background: var(--accent); color: var(--paper); box-shadow: var(--sh-pink); }
.btn-fill:hover { transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--fg); border-color: var(--hair); }
.btn-line:hover { border-color: var(--fg); }import { PricingCard } from "@magicblocksai/ui";
<PricingCard
name="Pro"
price="49"
cadence="/mo"
blurb="For growing teams."
features={["Unlimited agents", "All channels", "Slack handoff"]}
cta={<a className="btn-fill" href="/signup">Start trial</a>}
featured
ribbon="Most popular"
/>6.4 Testimonial card
Oversized Fraunces glyph on the top-left, balanced quote body, person at the bottom. The emphasised phrase is always Fraunces italic, always pink.
Testimonial
.testim-cardWe went from replying in 12 hours to 12 seconds. Our conversion on inbound lifted 28% in the first month.
<div class="testim-card">
<div class="testim-glyph">"</div>
<blockquote class="testim-quote">
We went from replying in 12 hours to 12 seconds. Our conversion on inbound lifted <em>28%</em> in the first month.
</blockquote>
<div class="testim-who">
<div class="testim-avatar" style="background:linear-gradient(135deg,var(--pink-300),var(--pink-700));"></div>
<div>
<div class="testim-name">Sara Lin</div>
<div class="testim-role">VP Growth · Lightbridge Mortgage</div>
</div>
</div>
</div>.testim-card {
background: var(--bg-paper);
border: 1px solid var(--hair);
border-radius: var(--r-xl);
padding: var(--s-8) var(--s-7) var(--s-6);
display: flex; flex-direction: column; gap: var(--s-5);
position: relative;
max-width: 440px; width: 100%;
}
.testim-glyph {
font-family: var(--f-serif); font-style: italic;
font-variation-settings: "SOFT" 80;
font-size: 64px; line-height: 1;
color: var(--accent-text);
position: absolute; top: var(--s-4); left: var(--s-6);
}
.testim-quote {
margin: var(--s-7) 0 0;
font: 400 19px/1.5 var(--f-body);
color: var(--fg); letter-spacing: -0.005em;
}
.testim-quote em {
font-family: var(--f-serif); font-style: italic; font-weight: 400;
color: var(--accent-text); font-variation-settings: "SOFT" 80;
}
.testim-who { display: flex; align-items: center; gap: var(--s-4); }
.testim-avatar {
width: 40px; height: 40px; border-radius: 50%;
flex: 0 0 40px;
}
.testim-name { font: 600 14px/1.3 var(--f-display); }
.testim-role { font: 400 12px/1.3 var(--f-mono); color: var(--fg-dim); }import { TestimonialCard } from "@magicblocksai/ui";
<TestimonialCard
name="Sarah Chen"
role="VP Sales · Acme"
avatar={<img src="/sarah.jpg" alt="" />}
showGlyph
>
We replaced three SDR seats with one agent.
</TestimonialCard>6.5 Stat / metric card
Dashboard-grade. Number leads. Mono + tabular-nums means every row aligns. Green chip for improvement, red for regression.
Stat card
.stat-card<div class="stat-grid">
<div class="stat-card">
<div class="stat-label">Speed-to-lead (avg)</div>
<div class="stat-val"><span class="mono stat-num">12s</span><span class="stat-delta is-pos"><svg>…</svg> 94%</span></div>
<div class="stat-foot">Down from 3h 47m · last 30d</div>
</div>
<div class="stat-card">
<div class="stat-label">Qualified leads / week</div>
<div class="stat-val"><span class="mono stat-num">2,481</span><span class="stat-delta is-pos"><svg>…</svg> 28%</span></div>
<div class="stat-foot">vs. last quarter</div>
</div>
<div class="stat-card">
<div class="stat-label">Handoffs to human</div>
<div class="stat-val"><span class="mono stat-num">14%</span></div>
<div class="stat-foot">Clean context, every time</div>
</div>
</div>.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-5); width: 100%; }
.stat-card {
background: var(--bg-paper);
border: 1px solid var(--hair);
border-radius: var(--r-lg);
padding: var(--s-6) var(--s-6) var(--s-5);
display: flex; flex-direction: column; gap: var(--s-3);
}
.stat-label { font: 500 12px/1 var(--f-mono); color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-val { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.stat-num { font: 700 36px/1 var(--f-display); color: var(--fg); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.stat-delta {
display: inline-flex; align-items: center; gap: 3px;
font: 600 12px/1 var(--f-mono);
padding: 4px 8px; border-radius: var(--r-pill);
}
.stat-delta.is-pos { color: var(--success-text); background: var(--success-soft); }
.stat-delta.is-neg { color: var(--error-text); background: var(--error-soft); }
.stat-foot { font: 400 12px/1.4 var(--f-body); color: var(--fg-soft); }import { StatCard } from "@magicblocksai/ui";
<StatCard
label="Replies sent"
value="1,284"
delta={{ tone: "up", text: "+12%" }}
subtitle="vs last week"
/>6.6 Media / blog card
Thumb + tag + title + excerpt + meta. Works for blog indexes, case studies, docs. Wide variant for tighter vertical spaces.
Media card
.media-card · .media-card-wideHow to write a system prompt for a sales agent
Nine patterns that make the difference between an agent that converts and one that annoys.
Lightbridge Mortgage lifts inbound conversion 28%
A story about replacing 14 reps' worth of first-touch work with a patient, persistent agent.
<div class="media-card">
<div class="media-thumb" style="background: linear-gradient(135deg, var(--pink-300), var(--pink-700));"></div>
<div class="media-body">
<div class="media-tag">Guide</div>
<h3 class="media-title">How to write a system prompt for a sales agent</h3>
<p class="media-excerpt">Nine patterns that make the difference between an agent that converts and one that annoys.</p>
<div class="media-meta">
<span class="media-who">Jay Stockwell</span>
<span class="mono media-date">· 6 min read</span>
</div>
</div>
</div>
<div class="media-card media-card-wide">
<div class="media-thumb" style="background: linear-gradient(135deg, var(--blue-300), var(--blue-700));"></div>
<div class="media-body">
<div class="media-tag">Case study</div>
<h3 class="media-title">Lightbridge Mortgage lifts inbound conversion 28%</h3>
<p class="media-excerpt">A story about replacing 14 reps' worth of first-touch work with a patient, persistent agent.</p>
<div class="media-meta">
<span class="media-who">MagicBlocks Team</span>
<span class="mono media-date">· Apr 2026</span>
</div>
</div>
</div>.media-card {
background: var(--bg-paper);
border: 1px solid var(--hair);
border-radius: var(--r-xl);
overflow: hidden;
display: flex; flex-direction: column;
max-width: 320px; width: 100%;
transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.media-card:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.media-thumb { aspect-ratio: 16 / 9; width: 100%; }
.media-body { padding: var(--s-5) var(--s-6) var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.media-tag { font: 500 11px/1 var(--f-mono); color: var(--accent-text-strong); text-transform: uppercase; letter-spacing: 0.08em; }
.media-title { font: 600 18px/1.3 var(--f-display); color: var(--fg); margin: 0; letter-spacing: -0.01em; }
.media-excerpt { font: 400 13.5px/1.55 var(--f-body); color: var(--fg-soft); margin: 0; }
.media-meta { display: flex; gap: var(--s-2); font-size: 12px; color: var(--fg-dim); margin-top: var(--s-2); }
.media-who { font-weight: 500; color: var(--fg-soft); }
.media-date { }
.media-card-wide { max-width: 520px; flex-direction: row; align-items: stretch; }
.media-card-wide .media-thumb { flex: 0 0 200px; aspect-ratio: auto; }
@media (max-width: 640px) { .media-card-wide { flex-direction: column; } .media-card-wide .media-thumb { flex: initial; aspect-ratio: 16 / 9; } }import { MediaCard } from "@magicblocksai/ui";
<MediaCard
href="/blog/agentic-sales"
thumb={<img src="/cover.jpg" alt="" />}
tag="Field notes"
title="What agentic sales looks like"
excerpt="Three patterns we've seen across 200 deployments."
meta="Jay Stockwell · 6 min read"
/>6.7 Callout surface
Full-bleed rectangles that close the loop on a section. One pink radial bloom. Ink variant reserved for dev-facing moments — rare, intentional.
CTA surface
.cta-card · .cta-card-inkSee your inbound reply in 12 seconds, not 12 hours.
Book a 25-minute demo. Bring your hardest objection handling — we'll show you how the agent handles it.
Drop an agent into any product in 30 lines.
Full SDK. REST + Websockets. Works with your existing CRM, auth, and tone.
<div class="cta-card">
<div class="cta-eyebrow">Ready to move?</div>
<h2 class="cta-title">See your inbound reply in <em>12 seconds</em>, not 12 hours.</h2>
<p class="cta-body">Book a 25-minute demo. Bring your hardest objection handling — we'll show you how the agent handles it.</p>
<div class="cta-actions">
<button class="btn-fill">Book a demo <svg>…</svg></button>
<button class="btn-line">See docs</button>
</div>
</div>
<div class="cta-card cta-card-ink">
<div class="cta-eyebrow">For engineers</div>
<h2 class="cta-title">Drop an agent into any product in <em>30 lines</em>.</h2>
<p class="cta-body">Full SDK. REST + Websockets. Works with your existing CRM, auth, and tone.</p>
<div class="cta-actions"><button class="btn-fill">Read the quickstart <svg>…</svg></button></div>
</div>.cta-card {
background: var(--bg-paper);
border: 1px solid var(--hair);
border-radius: var(--r-2xl);
padding: var(--s-9) var(--s-8);
display: flex; flex-direction: column; gap: var(--s-4);
max-width: 520px; width: 100%;
position: relative; overflow: hidden;
}
.cta-card::after {
content: ""; position: absolute; right: -80px; top: -80px;
width: 260px; height: 260px; border-radius: 50%;
background: radial-gradient(circle, var(--accent-soft), transparent 70%);
pointer-events: none;
}
.cta-eyebrow { font: 500 12px/1 var(--f-mono); color: var(--accent-text-strong); text-transform: uppercase; letter-spacing: 0.08em; position: relative; }
.cta-title { font: 700 28px/1.15 var(--f-display); color: var(--fg); letter-spacing: -0.015em; margin: 0; position: relative; max-width: 22ch; text-wrap: balance; }
.cta-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); font-variation-settings: "SOFT" 80; }
.cta-body { font: 400 16px/1.55 var(--f-body); color: var(--fg-soft); margin: 0; max-width: 48ch; position: relative; }
.cta-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; position: relative; margin-top: var(--s-3); }
.cta-card-ink {
background: var(--ink); color: var(--warm-3);
border-color: transparent;
}
.cta-card-ink .cta-title { color: var(--warm-3); }
.cta-card-ink .cta-body { color: #C9CFE2; }
.cta-card-ink::after { background: radial-gradient(circle, rgba(255,63,122,0.3), transparent 70%); }import { CalloutCard } from "@magicblocksai/ui";
<CalloutCard
eyebrow="Ready to see it?"
title="Book a 20-minute walkthrough."
actions={<button className="btn-fill">Book a demo</button>}
>
We'll show you a working agent on your own pipeline.
</CalloutCard>6.8 Panel
A card with a titled header bar and dense rows. Used for sidebar data, in-app dashboards, and admin listings.
Panel
.panelActive agents
<div class="panel">
<div class="panel-head">
<h3 class="panel-title">Active agents</h3>
<button class="panel-action">View all</button>
</div>
<div class="panel-row">
<div class="panel-row-icon" style="background: var(--accent-soft); color: var(--accent-text);">●</div>
<div class="panel-row-body">
<div class="panel-row-name">Inbound-qualify</div>
<div class="panel-row-meta">Chat · SMS · email</div>
</div>
<div class="mono panel-row-stat">481 today</div>
</div>
<div class="panel-row">
<div class="panel-row-icon" style="background: var(--info-soft); color: var(--info-text);">●</div>
<div class="panel-row-body">
<div class="panel-row-name">Reactivation</div>
<div class="panel-row-meta">Email only</div>
</div>
<div class="mono panel-row-stat">62 today</div>
</div>
<div class="panel-row">
<div class="panel-row-icon" style="background: var(--success-soft); color: var(--success-text);">●</div>
<div class="panel-row-body">
<div class="panel-row-name">Booked-call-follow-up</div>
<div class="panel-row-meta">SMS only</div>
</div>
<div class="mono panel-row-stat">18 today</div>
</div>
</div>.panel {
background: var(--bg-paper);
border: 1px solid var(--hair);
border-radius: var(--r-lg);
overflow: hidden;
max-width: 420px; width: 100%;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--hair); background: var(--bg-sunk); }
.panel-title { font: 600 13px/1 var(--f-display); margin: 0; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-dim); }
.panel-action { background: transparent; border: 0; font: 500 12px/1 var(--f-mono); color: var(--accent-text); cursor: pointer; text-transform: uppercase; letter-spacing: 0.06em; }
.panel-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.panel-row { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--hair-soft); }
.panel-row:first-of-type { border-top: 0; }
.panel-row-icon { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.panel-row-body { flex: 1; min-width: 0; }
.panel-row-name { font: 600 14px/1.3 var(--f-body); }
.panel-row-meta { font: 400 12px/1.3 var(--f-mono); color: var(--fg-dim); }
.panel-row-stat { font-size: 12px; color: var(--fg-soft); white-space: nowrap; }import { Panel } from "@magicblocksai/ui";
<Panel
title="Active agents"
action={<button className="panel-action">View all</button>}
>
<div className="panel-row">
<div className="panel-row-icon" style={{ background: "var(--accent-soft)", color: "var(--accent-text)" }}>●</div>
<div className="panel-row-body">
<div className="panel-row-name">Inbound-qualify</div>
<div className="panel-row-meta">Chat · SMS · email</div>
</div>
<div className="mono panel-row-stat">481 today</div>
</div>
<div className="panel-row">
<div className="panel-row-icon" style={{ background: "var(--info-soft)", color: "var(--info-text)" }}>●</div>
<div className="panel-row-body">
<div className="panel-row-name">Reactivation</div>
<div className="panel-row-meta">Email only</div>
</div>
<div className="mono panel-row-stat">62 today</div>
</div>
<div className="panel-row">
<div className="panel-row-icon" style={{ background: "var(--success-soft)", color: "var(--success-text)" }}>●</div>
<div className="panel-row-body">
<div className="panel-row-name">Booked-call-follow-up</div>
<div className="panel-row-meta">SMS only</div>
</div>
<div className="mono panel-row-stat">18 today</div>
</div>
</Panel>6.9 Dashboard tile
A content tile for product dashboards — header with title and a menu hook, a flexible body, and an optional footer row. Sits on the warm page inside a grid.
Dashboard tile
.dash-tileSame paper surface language as .card, with a three-zone layout. Use for chart tiles, activity feeds, recent-lead lists.
Recent leads
- Acme Corp2m
- Globex Holdings18m
- Initech1h
<div class="dash-tile">
<header class="dash-tile-head">
<h3 class="dash-tile-title">Recent leads</h3>
<button class="dash-tile-more">⋯</button>
</header>
<div class="dash-tile-body">
<ul class="dash-tile-list">
<li><span>Acme Corp</span><span class="mono small">2m</span></li>
<li><span>Globex Holdings</span><span class="mono small">18m</span></li>
<li><span>Initech</span><span class="mono small">1h</span></li>
</ul>
</div>
<footer class="dash-tile-foot"><a href="#">View all →</a></footer>
</div>.dash-tile { display: flex; flex-direction: column; background: var(--bg-paper);
border: 1px solid var(--hair); border-radius: var(--r-md); overflow: hidden; }
.dash-tile-head { display: flex; justify-content: space-between; align-items: center;
padding: var(--s-4); border-bottom: 1px solid var(--hair); }
.dash-tile-title { font: 600 15px/1.2 var(--f-display); color: var(--fg); margin: 0; }
.dash-tile-more { border: 0; background: transparent; color: var(--fg-soft);
font-size: 18px; cursor: pointer; padding: 0 var(--s-2); }
.dash-tile-body { padding: var(--s-3) var(--s-4); flex: 1; }
.dash-tile-list { list-style: none; margin: 0; padding: 0; }
.dash-tile-list li { display: flex; justify-content: space-between; align-items: center;
padding: var(--s-2) 0; border-bottom: 1px solid var(--hair); font: 400 14px/1 var(--f-body); color: var(--fg); }
.dash-tile-list li:last-child { border-bottom: 0; }
.dash-tile-foot { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--hair); background: var(--bg-sunk); }
.dash-tile-foot a { font: 500 13px/1 var(--f-body); color: var(--accent-text); text-decoration: none; }
/* maxHeight feeds: cap + scroll the body; head + foot stay put */
.dash-tile-scroll .dash-tile-body { max-height: var(--dash-tile-body-max-h); overflow-y: auto; }import { DashboardTile } from "@magicblocksai/ui";
<DashboardTile title="Top sources">
<ul>
<li>Outbound · 42</li>
<li>Referral · 18</li>
</ul>
</DashboardTile>
// Long feed — cap the body; header + footer stay put, the body scrolls.
<DashboardTile title="Latest sessions" maxHeight={260} footer={<a href="#">View all →</a>}>
<SessionFeed />
</DashboardTile>6.10 KPI tile
A big-number tile for the top row of a dashboard. Label, value, delta (green up or red down), and a small sparkline.
KPI with delta
.kpi-tileTabular-nums on the value. Delta uses arrow glyph + colour — never use colour alone for meaning.
<div class="kpi-tile">
<div class="kpi-label">Leads qualified</div>
<div class="kpi-row">
<div class="kpi-value">1,284</div>
<div class="kpi-delta is-up">↑ 12.4%</div>
</div>
<svg class="kpi-spark" viewBox="0 0 160 40">
<polyline points="0,30 … 160,10" />
</svg>
</div>.kpi-tile { padding: var(--s-4); background: var(--bg-paper);
border: 1px solid var(--hair); border-radius: var(--r-md); }
.kpi-label { font: 500 11px/1 var(--f-mono); text-transform: uppercase;
letter-spacing: 0.08em; color: var(--fg-dim); }
.kpi-row { display: flex; align-items: baseline; gap: var(--s-3);
margin: var(--s-2) 0 var(--s-3); }
.kpi-value { font: 700 28px/1 var(--f-display);
font-variant-numeric: tabular-nums; color: var(--fg); }
.kpi-delta { font: 600 12px/1 var(--f-mono); }
.kpi-delta.is-up { color: var(--success, #37BC9B); }
.kpi-delta.is-down { color: var(--error, #FF5B5B); }
.kpi-spark { width: 100%; height: 36px; color: var(--accent-text); }import { KpiTile } from "@magicblocksai/ui";
<KpiTile
label="Bookings"
value="48"
delta={{ tone: "up", text: "+5 today" }}
/>6.11 Divider
Three flavours. Hair is default; use the labelled version to separate steps (sign-in, flows); accent is a section-break exclamation — use sparingly.
HR styles
.div-hair · .div-accent · .div-labelText above the divider.
Default hair divider — 1px, var(--hair).
Labelled divider — used in sign-in flows.
Accent divider — rare, for intentional section breaks.
<div style="width: 100%; max-width: 420px;">
<p>Text above the divider.</p>
<hr class="div-hair">
<p>Default hair divider — 1px, var(--hair).</p>
<div class="div-label"><span>or</span></div>
<p>Labelled divider — used in sign-in flows.</p>
<hr class="div-accent">
<p>Accent divider — rare, for intentional section breaks.</p>
</div>.div-hair { border: 0; border-top: 1px solid var(--hair); margin: var(--s-5) 0; }
.div-accent {
border: 0; height: 2px; margin: var(--s-5) 0;
background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.div-label {
display: flex; align-items: center;
gap: var(--s-4); margin: var(--s-5) 0;
color: var(--fg-dim);
font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em;
}
.div-label::before, .div-label::after {
content: ""; flex: 1;
border-top: 1px solid var(--hair);
}import { Divider } from "@magicblocksai/ui";
<Divider />
<Divider variant="accent" />
<Divider variant="label" label="OR" />6.12 Anatomy of a feature card
- 11. Fill
background: var(--bg-paper); - 22. Border
border: 1px solid var(--hair); - 33. Radius
border-radius: var(--r-lg); - 44. Padding
padding: var(--s-6); - 55. Icon token
background: var(--accent-soft); color: var(--accent-text); - 66. Lift
transform: translateY(-2px); box-shadow: var(--sh-3);
6.13 Section card
The canonical “warm-headed list card” surface. A paper card with a tinted header band (title · count · action) over a body that holds a list, table, key-value pairs, or empty state. The chrome every CRM detail page composes — Tasks, Companies, Deals, Tickets, Activity — ships once here so consumers don’t rebuild it per page.
Section card
.section-cardDefault variant on the left (header band + flush body); structured empty-state on the right (icon chip · title · description · action).
Linked deals
+ Link deal<div class="section-card">
<div class="section-card-head">
<h3 class="section-card-title">Tasks</h3>
<span class="section-card-count">3</span>
<span class="section-card-action"><a href="#">+ New task</a></span>
</div>
<div class="section-card-body">
<ul class="checklist">…</ul>
</div>
</div>
<div class="section-card">
<div class="section-card-head">
<h3 class="section-card-title">Linked deals</h3>
<span class="section-card-action"><a href="#">+ Link deal</a></span>
</div>
<div class="section-card-empty">
<div class="section-card-empty-content">…</div>
</div>
</div>
.section-card {
background: var(--bg-paper);
border: 1px solid var(--hair);
border-radius: var(--r-lg);
overflow: hidden;
display: flex;
flex-direction: column;
}
.section-card-head {
display: flex;
align-items: center;
gap: var(--s-3);
padding: var(--s-3) var(--s-5);
background: var(--bg-warm);
border-bottom: 1px solid var(--hair);
}
.section-card-icon {
display: inline-flex;
align-items: center;
color: var(--fg-dim);
flex-shrink: 0;
}
.section-card-title {
font: 600 13px/1.3 var(--f-display);
color: var(--fg);
margin: 0;
letter-spacing: -0.005em;
}
.section-card-head-text {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.section-card-subtitle {
font: 400 12.5px/1.35 var(--f-body);
color: var(--fg-soft);
margin: 0;
max-width: 60ch;
}
.section-card-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 20px;
height: 18px;
padding: 0 6px;
font: 600 11px/1 var(--f-mono);
color: var(--fg-dim);
background: var(--bg-paper);
border: 1px solid var(--hair);
border-radius: var(--r-pill);
}
.section-card-action {
margin-left: auto;
appearance: none;
background: transparent;
border: 0;
font: 500 12px/1 var(--f-mono);
color: var(--accent-text);
cursor: pointer;
text-transform: uppercase;
letter-spacing: 0.06em;
text-decoration: none;
transition: color var(--dur-2) var(--ease);
}
.section-card-action:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.section-card-action .btn {
padding: 5px 12px;
font: 600 12.5px/1 var(--f-display);
letter-spacing: 0;
border-radius: var(--r-sm);
}
.section-card-action .btn-primary { box-shadow: none; }
.section-card-body {
display: block;
}
.section-card-body.is-padded { padding: var(--s-4) var(--s-5); }
.section-card-body .inbox,
.section-card-body .checklist,
.section-card-body .calendar,
.section-card-body .panel,
.section-card-body > .data-table {
border: 0;
border-radius: 0;
background: transparent;
overflow: visible;
box-shadow: none;
}
.section-card-body > .data-table > .data-table-grid {
border: 0;
border-radius: 0;
background: transparent;
}
/* …additional rules trimmed for brevity — see _shared.css */
import { SectionCard, Checklist } from "@magicblocksai/ui";
<SectionCard
title="Tasks"
count={3}
action={<a href="#">+ New task</a>}
padded={false}
>
<Checklist
items={[
{ id: "1", label: "Confirm renewal date with BlueRock", checked: true },
{ id: "2", label: "Send Q2 pipeline report" },
{ id: "3", label: "Draft handoff note for Alicia" },
]}
/>
</SectionCard>
<SectionCard
title="Linked deals"
action={<a href="#">+ Link deal</a>}
emptyState={{
icon: <BriefcaseIcon size={18} />,
title: "No deals linked yet",
description: "Link a deal to track revenue against this contact.",
action: <a className="btn-link" href="#">+ Link deal</a>,
}}
/>
6.14 Masked image
Tracking-pixel defence for inbound email rendering. The sanitiser stamps a 1x1 transparent placeholder onto every remote <img> and stages the real URL on data-original-src; the masked-image tile gives the recipient an opt-in affordance to reveal. Use .masked-image for single inline images, .masked-image-block for a single “Show N images” button at the top of the message body.
Inline tile and message-level block
.masked-image · .masked-image-blockThe dashed-hair tile reads as a placeholder — never the real image until the recipient asks for it. The block button below counts hidden images and reveals all of them in one click.
Hi Jay — quick update on the renewal. The numbers from last quarter look good but we want to walk you through the change. See the chart attached.
Worth jumping on a quick call this week to walk through the rest? — Alicia
<span class="masked-image">
<img src="data:image/gif;base64,…" alt="" class="masked-image-placeholder">
<button type="button" class="btn-link masked-image-show">Show this image</button>
</span>
<button type="button" class="masked-image-block btn-ghost">
<span class="masked-image-block-icon"><svg>…</svg></span>
Show 3 images
</button>
.masked-image {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 6px;
background: var(--warm-3);
border: 1px dashed var(--hair);
border-radius: var(--r-sm);
}
.masked-image-placeholder {
width: 14px;
height: 14px;
display: inline-block;
}
.masked-image-show {
/* Reuses .btn-link styles from the base layer. */
font-size: 12.5px;
}
.masked-image-revealed {
max-width: 100%;
height: auto;
border-radius: var(--r-sm);
}
.masked-image-block {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
font: 500 12.5px/1.2 var(--f-body);
border-radius: var(--r-sm);
cursor: pointer;
}
.masked-image-block-icon {
display: inline-flex;
align-items: center;
color: var(--fg-soft);
}
import { useRef } from "react";
import { MaskedImage, MaskedImageBlock } from "@magicblocksai/ui";
function EmailBody({ sanitised, imageCount }) {
const bodyRef = useRef<HTMLDivElement>(null);
return (
<>
<div ref={bodyRef} dangerouslySetInnerHTML={{ __html: sanitised }} />
<MaskedImageBlock count={imageCount} containerRef={bodyRef} />
</>
);
}
// Single inline reveal — e.g. a quoted reply.
<MaskedImage src="https://tracker.example/pixel.gif" alt="" masked />
6.15 Industry strip
Slim full-width strip mounted under a topnav to answer “is this for me?” in under half a second. Mono uppercase labels separated by interpuncts, two surface variants (warm — default warm-cream over ink text; ink — war-room ink over warm-cream text), and a single current state with an accent dot. Below 768px the strip becomes horizontally scrollable with a soft right-edge fade.
Warm and ink surfaces
.industry-barPick the surface that contrasts with whatever sits above. Both pass WCAG AA-large for the 12–13px mono labels. The active item shows an accent dot before the label and gets aria-current="page".
<nav class="industry-bar" aria-label="Industry">
<div class="industry-bar-track">
<span class="industry-bar-eyebrow">For</span>
<ul class="industry-bar-list" role="list">
<li class="industry-bar-item">
<a class="industry-bar-link is-current" href="/industries/mortgage" aria-current="page">
<span class="industry-bar-dot"></span>
<span class="industry-bar-label">Mortgage</span>
</a>
</li>
…
</ul>
</div>
</nav>
// Ink variant — add `is-ink` to the root.
<nav class="industry-bar is-ink">…</nav>
.industry-bar {
width: 100%;
background: var(--bg-warm);
border-bottom: 1px solid var(--hair);
font-family: var(--font-mono, ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace);
}
.industry-bar.is-ink {
background: var(--ink);
color: var(--warm-3, #F4ECE4);
border-bottom-color: rgba(244, 236, 228, 0.12);
}
.industry-bar-track {
display: flex;
align-items: center;
gap: var(--s-3, 12px);
height: 40px;
padding: 0 var(--s-5, 24px);
max-width: 100%;
overflow-x: auto;
scrollbar-width: none;
-ms-overflow-style: none;
}
.industry-bar-track::-webkit-scrollbar { display: none; }
.industry-bar.is-compact .industry-bar-track { height: 32px; }
.industry-bar-eyebrow {
flex: 0 0 auto;
text-transform: uppercase;
letter-spacing: 0.08em;
font-size: 11px;
font-weight: 500;
color: var(--fg-faint);
}
.industry-bar.is-ink .industry-bar-eyebrow {
color: rgba(244, 236, 228, 0.55);
}
.industry-bar-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
align-items: center;
gap: var(--s-3, 12px);
flex-wrap: nowrap;
}
.industry-bar-item {
display: inline-flex;
align-items: center;
gap: var(--s-3, 12px);
white-space: nowrap;
}
.industry-bar-sep {
color: var(--fg-faint);
font-size: 12px;
user-select: none;
}
.industry-bar.is-ink .industry-bar-sep {
color: rgba(244, 236, 228, 0.35);
}
.industry-bar-link {
display: inline-flex;
align-items: center;
gap: 6px;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 0.06em;
font-size: 12px;
font-weight: 500;
color: var(--fg-soft);
padding: 4px 2px;
border-bottom: 1px solid transparent;
transition: color 120ms ease, border-color 120ms ease;
}
.industry-bar.is-ink .industry-bar-link {
color: var(--warm-3, #F4ECE4);
}
@media (min-width: 1024px) {
.industry-bar-link { font-size: 13px; }
}
.industry-bar-link:hover,
.industry-bar-link:focus-visible {
color: var(--accent);
border-bottom-color: var(--accent);
outline: none;
}
.industry-bar-link:focus-visible {
/* The kit's standard focus-ring chrome — rendered via box-shadow so it
doesn't push the row taller. */
box-shadow: 0 0 0 2px var(--bg-warm), 0 0 0 4px var(--accent);
border-radius: 2px;
}
.industry-bar.is-ink .industry-bar-link:focus-visible {
box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--accent);
}
/* …additional rules trimmed for brevity — see _shared.css */
import { IndustryBar } from "@magicblocksai/ui";
const INDUSTRIES = [
{ slug: "mortgage", label: "Mortgage" },
{ slug: "insurance", label: "Insurance" },
{ slug: "auto", label: "Auto" },
{ slug: "home-services", label: "Home Services" },
{ slug: "solar", label: "Solar" },
{ slug: "fintech", label: "Fintech" },
];
<IndustryBar industries={INDUSTRIES} currentSlug="mortgage" />
<IndustryBar industries={INDUSTRIES} currentSlug="insurance" surface="ink" />
6.16 Cost compare
Side-by-side cost-comparison bars stacked vertically: a full-width muted bar on top labelled with the high-cost baseline, and a narrow accent bar below at a fixed ratio% width labelled with the low-cost contrast. The visual gap is the argument; the labels just name what each bar represents. Pricing-page hero shape — “cost to acquire a lead vs. cost to work that lead.”
Acquire vs. work the lead
.cost-compareThe high bar fills 100% of the track; the low bar fills 5% via --cost-compare-ratio. The mono caption sits between the two bars on dashed-hair rails.
<div class="cost-compare">
<div class="cost-compare-row is-high">
<div class="cost-compare-meta">
<span class="cost-compare-label">Cost to acquire a lead</span>
<span class="cost-compare-value">$30–$80<span class="cost-compare-unit"> / lead</span></span>
</div>
<div class="cost-compare-bar is-high" aria-hidden="true"></div>
</div>
<div class="cost-compare-gap">5–10% of what you already spent</div>
<div class="cost-compare-row is-low">
<div class="cost-compare-meta">
<span class="cost-compare-label">Cost to work that lead</span>
<span class="cost-compare-value">$2.50–$4.00<span class="cost-compare-unit"> / lead</span></span>
</div>
<div class="cost-compare-bar is-low" style="--cost-compare-ratio: 5%;" aria-hidden="true"></div>
</div>
</div>
.cost-compare {
display: grid; grid-template-rows: auto auto 1fr auto;
gap: var(--s-3);
width: 100%; max-width: 680px; margin: 0 auto;
font-family: var(--f-body);
}
.cost-compare .cc-eyebrow {
font: 600 10.5px/1 var(--f-mono);
text-transform: uppercase; letter-spacing: 0.12em;
color: var(--fg-dim);
}
.cost-compare .cc-headline {
font: 600 19px/1.35 var(--f-display);
letter-spacing: -0.015em;
color: var(--fg);
text-wrap: balance;
margin: 2px 0 var(--s-3);
max-width: 56ch;
}
.cost-compare .cc-headline em {
font-family: var(--f-italic); font-style: italic; font-weight: 400;
color: var(--accent-text);
}
.cost-compare .cc-bars {
display: flex; flex-direction: column; gap: var(--s-4);
}
.cost-compare .cc-bar {
display: grid; grid-template-columns: 160px 1fr auto; align-items: center;
gap: var(--s-4);
font: 500 12.5px/1.3 var(--f-body);
}
.cost-compare .cc-bar-meta {
display: flex; flex-direction: column; gap: 2px;
min-width: 0;
}
.cost-compare .cc-bar-label {
font: 600 11px/1.2 var(--f-mono);
text-transform: uppercase; letter-spacing: 0.08em;
color: var(--fg);
}
.cost-compare .cc-bar.is-engine .cc-bar-label { color: var(--accent-text); }
.cost-compare .cc-bar-sub {
font: 400 11px/1.3 var(--f-body);
color: var(--fg-dim);
letter-spacing: 0;
text-transform: none;
}
.cost-compare .cc-bar-track {
height: 26px; border-radius: var(--r-sm);
background: color-mix(in oklab, var(--ink) 6%, var(--bg-paper));
overflow: hidden;
position: relative;
}
.cost-compare .cc-bar-fill {
height: 100%; border-radius: var(--r-sm);
background: var(--warm-7);
width: var(--cc-pct, 100%);
transition: width 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cost-compare .cc-bar.is-engine .cc-bar-fill {
background: var(--accent);
box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent),
0 4px 14px -6px color-mix(in oklab, var(--accent) 60%, transparent);
}
.cost-compare .cc-bar-amount {
font: 700 16px/1 var(--f-display);
letter-spacing: -0.015em;
color: var(--fg);
font-variant-numeric: tabular-nums;
}
.cost-compare .cc-bar.is-engine .cc-bar-amount { color: var(--accent-text); }
/* …additional rules trimmed for brevity — see _shared.css */
import { CostCompare } from "@magicblocksai/ui";
<CostCompare
high={{
label: "Cost to acquire a lead",
value: "$30–$80",
unit: "/ lead",
}}
low={{
label: "Cost to work that lead",
value: "$2.50–$4.00",
unit: "/ lead",
}}
ratio={5}
gapLabel="5–10% of what you already spent"
/>