Drop-in note
A yellow note card with a cyan border, condensed title and an orange button on a hard bottom edge, which drops in at load and folds into a round tab when closed.
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/note/figma.html?palette=2c2b2f5b2d64bab8
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/sunburst-sticker-arches/note/figma.html?palette=2c2b2f5b2d64bab8 and pass that whole HTML document to the html_to_figma tool, so the part "Drop-in note" 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: #0d101f;
--ink-soft: #313542;
--paper: #e3e3e4;
--white: #e8e8e9;
--mist: #c6c6ca;
--orange: #7081dc;
--tan: #9ca2b9;
--cream: #7586b1;
--yellow: #567bf7;
--amber: #5378fa;
--navy: #002104;
--blue: #44d25b;
--pink: #7081dc;
--green: #7586b1;
--cyan: #5b955f;
}
</style>
<section class="note" aria-label="News">
<div class="note__aside">
<p class="note__tag">From the oven</p>
<p class="note__headline">Little news, pinned where you will see it.</p>
</div>
<aside class="note__card">
<button class="note__close" type="button" aria-label="Close the note"><span class="note__x">x</span></button>
<h2 class="note__title">Bunbell now takes orders by text!</h2>
<p class="note__text">Send one line to the shop number, like "a pink cake for Nora, she turns six on Saturday". In a few minutes we text back a sketch and a price.</p>
<a class="note__button" href="#">Try it out</a>
</aside>
<button class="note__tab" type="button" aria-label="Open the note">!</button>
</section>
<style>
.note {
position: relative;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-start;
gap: var(--space-l);
min-height: 400px;
padding: var(--space-l) var(--edge) var(--section-space);
}
.note__aside { flex: 1 1 18rem; max-width: 30rem; }
.note__tag {
width: max-content;
margin: 0 0 var(--space-m);
padding: 8px 26px;
border-radius: var(--pill);
background: var(--navy);
color: var(--cream);
font: 400 var(--text-s) var(--font-mono);
}
.note__headline {
margin: 0;
font-family: var(--font-display);
font-size: var(--display);
font-weight: 500;
line-height: 0.95;
letter-spacing: -0.012em;
}
.note__card {
position: relative;
flex: none;
width: min(100%, 290px);
align-self: flex-start;
padding: var(--space-m) var(--space-m) var(--space-m);
border: var(--border-note) solid var(--cyan);
border-radius: var(--radius-s);
background: var(--yellow);
transform-origin: 80% 0;
animation: note-drop var(--slow) var(--ease) 200ms both;
transition: transform var(--pop) var(--ease), opacity var(--quick) ease;
}
.note__close {
position: absolute;
top: 0;
right: 0;
display: grid;
place-items: center;
width: 44px;
height: 44px;
padding: 0;
border: 0;
background: none;
cursor: pointer;
}
.note__x {
display: grid;
place-items: center;
width: 22px;
height: 22px;
border-radius: 50%;
background: color-mix(in srgb, var(--white) 50%, transparent);
font: 500 var(--text-s) / 1 var(--font-mono);
color: var(--ink);
transition: background-color var(--quick) ease;
}
.note__close:hover .note__x,
.note__close:focus-visible .note__x { background: var(--white); }
.note__title {
margin: var(--space-xs) var(--space-l) var(--space-s) 0;
font-family: var(--font-display);
font-size: 16px;
font-weight: 700;
line-height: 1.3;
}
.note__text {
margin: 0 0 var(--space-m);
font-size: var(--text-s);
line-height: 1.4;
}
.note__button {
display: grid;
place-items: center;
min-height: 48px;
border-radius: var(--radius-field);
background: var(--orange);
box-shadow: var(--drop);
color: var(--cream);
font: 700 var(--text-s) var(--font-body);
text-decoration: none;
transition: transform var(--quick) ease, box-shadow var(--quick) ease;
}
.note__button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink-soft); }
.note__button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink-soft); }
.note__button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.note__tab {
position: absolute;
top: var(--space-l);
right: var(--edge);
width: 56px;
height: 56px;
border: var(--border-note) solid var(--cyan);
border-radius: 50%;
background: var(--yellow);
font: 700 24px var(--font-display);
color: var(--ink);
cursor: pointer;
scale: 0;
transition: scale var(--pop) var(--ease);
}
.note.is-closed .note__card {
transform: scale(0.2);
opacity: 0;
pointer-events: none;
}
.note.is-closed .note__tab { scale: 1; }
.note__tab:hover { rotate: 12deg; }
@keyframes note-drop {
0% { transform: translateY(-120px) rotate(-6deg); opacity: 0; }
70% { transform: translateY(8px) rotate(1deg); opacity: 1; }
100% { transform: none; opacity: 1; }
}
@media (max-width: 40rem) {
.note__headline { font-size: 44px; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.note')) {
const card = root.querySelector('.note__card');
root.querySelector('.note__close').addEventListener('click', () => {
card.style.animation = 'none';
root.classList.add('is-closed');
});
root.querySelector('.note__tab').addEventListener('click', () => root.classList.remove('is-closed'));
}
})();
</script>