Level Up
A copy-paste toasts & alerts component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Toasts & AlertsHTMLCSSany framework
12
Level up
You reached level 12!
Copy into your project
HTML
<div class="nuda-levelup">
<div class="nuda-levelup__rays"></div>
<div class="nuda-levelup__num">12</div>
<div class="nuda-levelup__copy">
<div class="nuda-levelup__label">Level up</div>
<div class="nuda-levelup__title">You reached level 12!</div>
</div>
</div>CSS
.nuda-levelup {
position: relative;
display: flex;
align-items: center;
gap: 14px;
padding: 14px 16px;
background: linear-gradient(135deg,rgba(228,255,84,.1),rgba(110,231,183,.05));
border: 1px solid rgba(228,255,84,.3);
border-radius: 14px;
color: #fafafa;
width: 100%;
max-width: 260px;
overflow: hidden;
animation: _lvlIn .55s cubic-bezier(.16,1,.3,1) both;
}
.nuda-levelup__rays {
position: absolute;
inset: -40px;
background: repeating-conic-gradient(from 0deg,rgba(228,255,84,.06) 0deg,rgba(228,255,84,.06) 8deg,transparent 8deg,transparent 16deg);
animation: _lvlSpin 12s linear infinite;
pointer-events: none;
}
.nuda-levelup__num {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
border-radius: 50%;
background: #09090b;
border: 2px solid #e4ff54;
color: #e4ff54;
font-size: 18px;
font-weight: 900;
font-variant-numeric: tabular-nums;
flex-shrink: 0;
z-index: 1;
animation: _lvlNum .8s cubic-bezier(.34,1.56,.64,1);
}
.nuda-levelup__copy {
position: relative;
z-index: 1;
}
.nuda-levelup__label {
color: #e4ff54;
font-size: 9px;
font-weight: 700;
letter-spacing: .12em;
text-transform: uppercase;
font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
}
.nuda-levelup__title {
font-size: 13px;
font-weight: 700;
margin-top: 2px;
}
@keyframes _lvlIn {
from {
opacity: 0;
transform: scale(.9);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes _lvlSpin {
to {
transform: rotate(360deg);
}
}
@keyframes _lvlNum {
0% {
transform: scale(0) rotate(-90deg);
}
60% {
transform: scale(1.15) rotate(10deg);
}
100% {
transform: scale(1) rotate(0);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-levelup,.nuda-levelup__rays,.nuda-levelup__num {
animation: none;
}
}
How to use Level Up
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.