Mono chat slab
A navy blob with a typewriter message box in cream mono and radio chips that type their answer, with a drawn cupcake helper peeking from the corner.
Part of the style
Sunburst Sticker Arches
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/sunburst-sticker-arches/chat/figma.html?palette=bb1d56ab5c0d2d8a
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/sunburst-sticker-arches/chat/figma.html?palette=bb1d56ab5c0d2d8a and pass that whole HTML document to the html_to_figma tool, so the part "Mono chat slab" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--ink: #59121b;
--ink-soft: #7c4143;
--paper: #ffffff;
--white: #ffffff;
--mist: #e7e4db;
--orange: #b09702;
--tan: #b7b299;
--cream: #f46949;
--yellow: #fa623e;
--amber: #fa7a5c;
--navy: #520202;
--blue: #fa8676;
--pink: #c68c5b;
--green: #b09702;
--cyan: #f46949;
}
</style>
<section class="chat">
<div class="chat__intro">
<h2 class="chat__title">2. Tell Crumbs the plan</h2>
<p class="chat__lead">Our helper asks five short questions and sketches the cake while you answer. Tap a topic to jump ahead.</p>
</div>
<div class="chat__slab">
<p class="chat__screen" aria-live="polite"><span class="chat__text">Hi! I am Crumbs, the Bunbell helper. Tell me what we are celebrating and I will sketch you a cake. First things first: how many people are coming?</span><span class="chat__caret" aria-hidden="true"></span></p>
<div class="chat__chips" role="radiogroup" aria-label="Pick a topic">
<button class="chat__chip" type="button" role="radio" aria-checked="false">Guests<span class="chat__answer" hidden>Twelve guests is a two-layer cake. Twenty is three layers and a very proud baker.</span></button>
<button class="chat__chip" type="button" role="radio" aria-checked="false">Flavour<span class="chat__answer" hidden>Lemon drizzle, burnt honey or the Birthday Bun Box with six mini flavours. Pick one, or all three.</span></button>
<button class="chat__chip" type="button" role="radio" aria-checked="false">Frosting<span class="chat__answer" hidden>Pink, butter yellow or plain cream. We pipe one name and one number on top for free.</span></button>
<button class="chat__chip" type="button" role="radio" aria-checked="false">Candles<span class="chat__answer" hidden>Tall striped candles come in tens. Sparklers only if you promise to stand back.</span></button>
<button class="chat__chip" type="button" role="radio" aria-checked="false">Pick-up<span class="chat__answer" hidden>Collect from the corner shop after ten, or we cycle it over in the Lemon Drizzle Tower van.</span></button>
</div>
</div>
<svg class="chat__helper" viewBox="0 0 160 190" role="img" aria-label="A cupcake helper peeking over the edge">
<path d="M30 96 L42 176 H118 L130 96 Z" fill="var(--mist)" stroke="var(--ink)" stroke-width="2.5" stroke-linejoin="round"/>
<path d="M52 100 L58 176 M80 100 V176 M108 100 L102 176" stroke="var(--ink)" stroke-width="2"/>
<path d="M18 98 C10 80 26 64 40 70 C38 46 66 36 80 50 C94 36 122 46 120 70 C134 64 150 80 142 98 C140 108 22 108 18 98 Z" fill="var(--cream)" stroke="var(--ink)" stroke-width="2.5" stroke-linejoin="round"/>
<circle cx="80" cy="36" r="10" fill="var(--orange)" stroke="var(--ink)" stroke-width="2.5"/>
<g class="chat__eyes">
<circle cx="62" cy="82" r="10" fill="var(--white)" stroke="var(--ink)" stroke-width="2"/>
<circle cx="98" cy="82" r="10" fill="var(--white)" stroke="var(--ink)" stroke-width="2"/>
<circle class="chat__pupil" cx="64" cy="84" r="4.5" fill="var(--ink)"/>
<circle class="chat__pupil" cx="100" cy="84" r="4.5" fill="var(--ink)"/>
</g>
<path d="M70 96 C74 102 86 102 90 96" fill="none" stroke="var(--ink)" stroke-width="2.5" stroke-linecap="round"/>
<path d="M30 122 C14 120 8 136 16 142" fill="none" stroke="var(--ink)" stroke-width="5" stroke-linecap="round"/>
<circle cx="16" cy="144" r="9" fill="var(--white)" stroke="var(--ink)" stroke-width="2"/>
<path d="M130 122 C146 120 152 136 144 142" fill="none" stroke="var(--ink)" stroke-width="5" stroke-linecap="round"/>
<circle cx="144" cy="144" r="9" fill="var(--white)" stroke="var(--ink)" stroke-width="2"/>
</svg>
</section>
<style>
.chat {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
align-items: center;
gap: var(--space-xl);
padding: var(--space-l) var(--edge) var(--section-space);
}
.chat__title {
margin: 0 0 var(--space-s);
font-family: var(--font-display);
font-size: var(--text-l);
font-weight: 700;
line-height: 1.05;
}
.chat__lead {
margin: 0;
max-width: 22rem;
font-size: var(--text-s);
color: var(--ink-soft);
}
.chat__slab {
width: 100%;
max-width: 640px;
margin-left: auto;
padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 56px) clamp(80px, 10vw, 96px);
border: var(--line) solid var(--ink);
border-radius: var(--radius-blob);
background: var(--navy);
color: var(--cream);
}
.chat__screen {
min-height: 9.5em;
margin: 0 0 var(--space-l);
padding: var(--space-m);
border: var(--line) solid var(--cream);
border-radius: var(--radius-s);
font: 400 var(--text-s) / 1.45 var(--font-mono);
}
.chat__caret {
display: inline-block;
width: 0.55em;
height: 1.1em;
margin-left: 2px;
vertical-align: -0.2em;
background: var(--cream);
animation: chat-blink 1s steps(1) infinite;
}
.chat__chips {
display: flex;
flex-wrap: wrap;
gap: var(--space-s);
}
.chat__chip {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 44px;
padding: 0 18px 0 14px;
border: var(--line) solid var(--cream);
border-radius: var(--pill);
background: transparent;
color: var(--cream);
font: 400 var(--text-xs) var(--font-mono);
cursor: pointer;
transition: background-color var(--quick) ease, color var(--quick) ease, transform var(--pop) var(--ease);
}
.chat__chip::before {
content: "";
width: 9px;
height: 9px;
border: var(--line) solid currentColor;
border-radius: 50%;
}
.chat__chip:hover { transform: translateY(-2px); }
.chat__chip:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.chat__chip[aria-checked="true"] {
background: var(--yellow);
border-color: var(--yellow);
color: var(--navy);
}
.chat__chip[aria-checked="true"]::before { background: currentColor; }
.chat__helper {
position: absolute;
right: max(8px, calc(var(--edge) - 40px));
bottom: calc(var(--section-space) - 60px);
width: clamp(110px, 14vw, 160px);
filter: drop-shadow(3px 0 0 var(--white)) drop-shadow(-3px 0 0 var(--white)) drop-shadow(0 -3px 0 var(--white)) drop-shadow(0 3px 0 var(--white)) drop-shadow(4px 4px 0 var(--ink-soft));
animation: chat-peek 2.4s var(--ease) infinite alternate;
}
.chat__pupil { transition: transform var(--quick) ease; }
.chat.is-reading .chat__pupil { transform: translateX(-4px); }
.chat.is-paused .chat__helper,
.chat.is-paused .chat__caret { animation-play-state: paused; }
@keyframes chat-blink { 50% { opacity: 0; } }
@keyframes chat-peek { from { transform: rotate(-4deg); } to { transform: rotate(5deg) translateY(-6px); } }
@media (max-width: 56rem) {
.chat { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); }
}
@media (max-width: 40rem) {
.chat__slab { border-radius: var(--radius-card); }
}
@media (prefers-reduced-motion: reduce) {
.chat__helper, .chat__caret { animation: none; }
}
</style>
<script>
(() => {
const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
const watch = new IntersectionObserver((entries) => {
for (const entry of entries) entry.target.classList.toggle('is-paused', !entry.isIntersecting);
});
for (const root of document.querySelectorAll('.chat')) {
const text = root.querySelector('.chat__text');
const chips = root.querySelectorAll('.chat__chip');
let timer = 0;
const type = (words) => {
clearInterval(timer);
if (reduce) { text.textContent = words; return; }
let i = 0;
text.textContent = '';
root.classList.add('is-reading');
timer = setInterval(() => {
i += 1;
text.textContent = words.slice(0, i);
if (i >= words.length) { clearInterval(timer); root.classList.remove('is-reading'); }
}, 16);
};
for (const chip of chips) {
chip.addEventListener('click', () => {
for (const other of chips) other.setAttribute('aria-checked', String(other === chip));
type(chip.querySelector('.chat__answer').textContent);
});
}
type(text.textContent);
watch.observe(root);
}
})();
</script>