Sunburst stage
An orange field holding a rounded panel of turning outlined rays, a drawn cake mascot raising a lit candle and three headline lines that pop in one by one.
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/sunburst/figma.html?palette=d2e0f716c6febc19
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/sunburst-sticker-arches/sunburst/figma.html?palette=d2e0f716c6febc19 and pass that whole HTML document to the html_to_figma tool, so the part "Sunburst stage" 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: #1d0c0b;
--ink-soft: #421a19;
--paper: #f15b29;
--white: #f55e2d;
--mist: #d55126;
--orange: #d15c4c;
--tan: #9c7e79;
--cream: #b46662;
--yellow: #f73341;
--amber: #f9263b;
--navy: #290003;
--blue: #a03437;
--pink: #a37e7c;
--green: #a66b78;
--cyan: #d15c4c;
}
</style>
<section class="sunburst" aria-label="Opening">
<div class="sunburst__panel">
<svg class="sunburst__rays" viewBox="-100 -100 200 200" aria-hidden="true"><g class="sunburst__fan"></g></svg>
<h1 class="sunburst__title">
<span class="sunburst__line sunburst__line--1">Small cakes.</span>
<span class="sunburst__line sunburst__line--2">Loud candles.</span>
<span class="sunburst__line sunburst__line--3">Everybody gets a slice!</span>
</h1>
<svg class="sunburst__mascot" viewBox="0 0 240 260" role="img" aria-label="A cheering layer cake holding up a lit candle">
<g class="sunburst__arm-left">
<path d="M70 160 C55 140 40 120 30 92" fill="none" stroke="var(--ink)" stroke-width="7" stroke-linecap="round"/>
<rect x="21" y="38" width="14" height="50" rx="3" fill="var(--white)" stroke="var(--ink)" stroke-width="2"/>
<path d="M21 50 L35 46 M21 62 L35 58 M21 74 L35 70" stroke="var(--pink)" stroke-width="3"/>
<path class="sunburst__flame" d="M28 14 C38 26 36 36 28 37 C20 36 18 26 28 14 Z" fill="var(--amber)" stroke="var(--ink)" stroke-width="2"/>
<circle cx="30" cy="88" r="11" fill="var(--white)" stroke="var(--ink)" stroke-width="2"/>
</g>
<g class="sunburst__arm-right">
<path d="M170 160 C186 140 198 120 208 96" fill="none" stroke="var(--ink)" stroke-width="7" stroke-linecap="round"/>
<path d="M200 98 C194 82 198 70 206 72 L208 64 C210 56 218 56 219 64 L222 60 C226 54 234 58 231 66 L230 80 C236 78 240 84 234 90 C226 100 210 106 200 98 Z" fill="var(--white)" stroke="var(--ink)" stroke-width="2" stroke-linejoin="round"/>
</g>
<path d="M100 222 L98 246 M140 222 L142 246" stroke="var(--ink)" stroke-width="7" stroke-linecap="round"/>
<ellipse cx="92" cy="248" rx="14" ry="7" fill="var(--ink)"/>
<ellipse cx="148" cy="248" rx="14" ry="7" fill="var(--ink)"/>
<ellipse cx="120" cy="224" rx="74" ry="12" fill="var(--mist)" stroke="var(--ink)" stroke-width="2"/>
<rect x="58" y="118" width="124" height="104" rx="14" fill="var(--amber)" stroke="var(--ink)" stroke-width="2.5"/>
<path d="M59 172 H181" stroke="var(--cream)" stroke-width="9"/>
<path d="M59 172 H181" stroke="var(--ink)" stroke-width="1.5" stroke-dasharray="0 0"/>
<path d="M56 132 C56 108 72 100 120 100 C168 100 184 108 184 132 C184 142 178 146 174 140 C170 156 160 156 158 142 C152 150 144 152 140 140 C134 160 120 160 118 140 C112 150 102 150 98 140 C94 156 82 158 80 140 C74 150 62 148 62 138 C58 140 56 136 56 132 Z" fill="var(--pink)" stroke="var(--ink)" stroke-width="2.5" stroke-linejoin="round"/>
<circle cx="120" cy="92" r="12" fill="var(--orange)" stroke="var(--ink)" stroke-width="2.5"/>
<path d="M122 80 C124 72 130 68 136 68" fill="none" stroke="var(--ink)" stroke-width="2.5" stroke-linecap="round"/>
<g class="sunburst__eyes">
<ellipse cx="102" cy="186" rx="6" ry="8" fill="var(--ink)"/>
<ellipse cx="138" cy="186" rx="6" ry="8" fill="var(--ink)"/>
<circle cx="104" cy="183" r="2" fill="var(--white)"/>
<circle cx="140" cy="183" r="2" fill="var(--white)"/>
</g>
<circle cx="88" cy="200" r="7" fill="var(--pink)" opacity="0.8"/>
<circle cx="152" cy="200" r="7" fill="var(--pink)" opacity="0.8"/>
<path d="M108 198 C110 214 130 214 132 198 Z" fill="var(--ink)"/>
<path d="M113 207 C117 203 123 203 127 207 C124 211 116 211 113 207 Z" fill="var(--pink)"/>
</svg>
</div>
</section>
<style>
.sunburst {
background: var(--orange);
padding: clamp(20px, 4vw, 56px) clamp(16px, 6vw, 96px);
}
.sunburst__panel {
position: relative;
overflow: hidden;
aspect-ratio: 16 / 10;
max-height: 640px;
margin-inline: auto;
border: var(--line) solid var(--ink);
border-radius: var(--radius-blob);
background: var(--paper);
isolation: isolate;
}
.sunburst__rays {
position: absolute;
left: 50%;
top: 100%;
width: 260%;
max-width: none;
translate: -50% -50%;
z-index: -1;
animation: sunburst-turn 60s linear infinite;
}
.sunburst__rays path {
stroke: var(--ink);
stroke-width: 1;
vector-effect: non-scaling-stroke;
}
.sunburst__title {
position: absolute;
inset: clamp(14px, 4%, 40px) 0 auto;
margin: 0;
display: grid;
justify-items: center;
gap: 2px;
padding-inline: var(--space-m);
font-family: var(--font-display);
font-weight: 700;
line-height: 1;
color: var(--navy);
text-align: center;
text-shadow: 2px 0 0 var(--white), -2px 0 0 var(--white), 0 2px 0 var(--white), 0 -2px 0 var(--white), 2px 2px 0 var(--white), -2px -2px 0 var(--white), 2px -2px 0 var(--white), -2px 2px 0 var(--white);
}
.sunburst__line {
display: block;
opacity: 0;
scale: 0.4;
animation: sunburst-pop var(--pop) var(--ease) forwards;
}
.sunburst__line--1 { font-size: var(--text-m); animation-delay: 150ms; }
.sunburst__line--2 { font-size: clamp(22px, 2.6vw, 30px); animation-delay: 550ms; }
.sunburst__line--3 { font-size: clamp(30px, 5vw, 60px); animation-delay: 950ms; }
.sunburst__mascot {
position: absolute;
left: 50%;
bottom: -2%;
width: clamp(150px, 30%, 320px);
translate: -50% 0;
overflow: visible;
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: sunburst-bob 1.6s var(--ease) infinite alternate;
}
.sunburst__arm-right {
transform-origin: 170px 160px;
animation: sunburst-wave 0.8s ease-in-out infinite alternate;
}
.sunburst__flame {
transform-origin: 28px 37px;
animation: sunburst-flicker 0.35s ease-in-out infinite alternate;
}
.sunburst.is-paused .sunburst__rays,
.sunburst.is-paused .sunburst__mascot,
.sunburst.is-paused .sunburst__arm-right,
.sunburst.is-paused .sunburst__flame {
animation-play-state: paused;
}
@keyframes sunburst-turn { to { rotate: 360deg; } }
@keyframes sunburst-pop { to { opacity: 1; scale: 1; } }
@keyframes sunburst-bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes sunburst-wave { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
@keyframes sunburst-flicker { from { transform: scale(0.85, 0.9); } to { transform: scale(1.05, 1.12); } }
@media (max-width: 40rem) {
.sunburst__panel { aspect-ratio: 4 / 5; border-radius: var(--radius-card); }
.sunburst__mascot { width: 62%; }
}
@media (prefers-reduced-motion: reduce) {
.sunburst__rays, .sunburst__mascot, .sunburst__arm-right, .sunburst__flame { animation: none; }
.sunburst__line { animation: none; opacity: 1; scale: 1; }
}
</style>
<script>
(() => {
const colours = ['--pink', '--amber', '--orange', '--tan', '--amber', '--pink', '--orange'];
const count = 32;
const watch = new IntersectionObserver((entries) => {
for (const entry of entries) entry.target.classList.toggle('is-paused', !entry.isIntersecting);
});
for (const root of document.querySelectorAll('.sunburst')) {
const fan = root.querySelector('.sunburst__fan');
const ns = 'http://www.w3.org/2000/svg';
const step = (Math.PI * 2) / count;
for (let i = 0; i < count; i++) {
const a = i * step;
const b = a + step;
const ray = document.createElementNS(ns, 'path');
ray.setAttribute('d', `M0 0 L${Math.cos(a) * 150} ${Math.sin(a) * 150} L${Math.cos(b) * 150} ${Math.sin(b) * 150} Z`);
ray.setAttribute('fill', i % 2 ? `var(${colours[(i >> 1) % colours.length]})` : 'var(--paper)');
fan.append(ray);
}
watch.observe(root);
}
})();
</script>