Savings Badge
A copy-paste pricing tables component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Pricing TablesHTMLCSSany framework
Save 20%
Copy into your project
HTML
<!-- Savings Badge — small accent pill with periodic shine sweep -->
<span class="nuda-save">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round">
<path d="M20 12 L4 12" /><path d="M10 6 L4 12 L10 18" />
</svg>
Save 20%
</span>CSS
/* Savings Badge
Pill with gradient bg + periodic light sweep. Use beside yearly prices.
Customize: --save-accent */
.nuda-save {
--save-accent: #e4ff54;
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5px 12px;
background: linear-gradient(135deg, rgba(228, 255, 84, 0.2), rgba(228, 255, 84, 0.08));
border: 1px solid rgba(228, 255, 84, 0.35);
border-radius: 999px;
color: var(--save-accent);
font: 700 0.7rem ui-sans-serif, system-ui, sans-serif;
text-transform: uppercase;
letter-spacing: 0.06em;
position: relative;
overflow: hidden;
animation: nuda-save-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nuda-save::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
110deg,
transparent 30%,
rgba(228, 255, 84, 0.4) 50%,
transparent 70%
);
transform: translateX(-100%);
animation: nuda-save-shine 3s ease-in-out infinite;
}
.nuda-save svg {
position: relative;
z-index: 1;
width: 12px;
height: 12px;
}
@keyframes nuda-save-pop {
from { opacity: 0; transform: scale(0.7); }
to { opacity: 1; transform: scale(1); }
}
@keyframes nuda-save-shine {
0%, 30% { transform: translateX(-100%); }
60%, 100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
.nuda-save,
.nuda-save::before { animation: none; }
}How to use Savings Badge
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.