Gradient Shine
A copy-paste badges & tags component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Badges & TagsHTMLCSSany framework
UPGRADE
Copy into your project
HTML
<span class="nuda-grad-shine">UPGRADE</span>CSS
/* Gradient Shine
Lime gradient badge with a recurring shine sweep. */
.nuda-grad-shine {
position: relative;
display: inline-flex;
align-items: center;
padding: 4px 14px;
background: linear-gradient(135deg, #e4ff54, #a3b800);
color: #09090b;
border-radius: 99px;
font-size: 11px;
font-weight: 800;
letter-spacing: 0.08em;
overflow: hidden;
}
.nuda-grad-shine::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 45%;
height: 100%;
background: linear-gradient(
100deg,
transparent,
rgba(255, 255, 255, 0.55),
transparent
);
transform: translateX(-160%) skewX(-18deg);
animation: nuda-grad-shine 3s ease-in-out infinite;
will-change: transform;
}
@keyframes nuda-grad-shine {
0% { transform: translateX(-160%) skewX(-18deg); }
45%, 100% { transform: translateX(360%) skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
.nuda-grad-shine::after { animation: none; }
}How to use Gradient Shine
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.