Ribbon Badge
A copy-paste badges & tags component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Badges & TagsHTMLCSSany framework
PRO
Premium tier
$24 / month
Copy into your project
HTML
<div class="nuda-ribbon">
<span class="nuda-ribbon__ribbon">PRO</span>
<div class="nuda-ribbon__card">
<div>Premium tier</div>
<div>$24 / month</div>
</div>
</div>CSS
.nuda-ribbon {
position: relative;
padding: 14px 16px;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.06);
border-radius: 10px;
width: 100%;
max-width: 180px;
overflow: hidden;
}
.nuda-ribbon__ribbon {
position: absolute;
top: 8px;
right: -26px;
padding: 3px 30px;
background: #e4ff54;
color: #09090b;
font-size: 9px;
font-weight: 800;
letter-spacing: .12em;
transform: rotate(45deg);
box-shadow: 0 4px 8px -2px rgba(0,0,0,.4);
}
.nuda-ribbon__card > div:first-child {
color: #fafafa;
font-size: 13px;
font-weight: 600;
}
.nuda-ribbon__card > div:last-child {
color: #a0a0a8;
font-size: 11px;
margin-top: 2px;
}
How to use Ribbon 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.