Skip to content

New Badge

A copy-paste onboarding & coachmarks component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Onboarding & CoachmarksHTMLCSSany framework
InboxNew

Copy into your project

HTML
<!-- New Badge — small "NEW" chip with periodic shine -->
<div class="nuda-newb">
  <span class="nuda-newb__label">Inbox</span>
  <span class="nuda-newb__badge">New</span>
</div>
CSS
/* New Badge
   Small chip drawing attention to a recently shipped feature.
   Customize: --newb-accent */

.nuda-newb {
  --newb-accent: #e4ff54;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.nuda-newb__label {
  font: 600 0.875rem ui-sans-serif, system-ui, sans-serif;
  color: #fafafa;
}

.nuda-newb__badge {
  position: relative;
  padding: 2px 6px;
  background: var(--newb-accent);
  color: #09090b;
  font: 800 0.625rem ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  overflow: hidden;
}

.nuda-newb__badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: nuda-newb-shine 2.4s ease-in-out infinite;
}

@keyframes nuda-newb-shine {
  0%, 30%   { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-newb__badge::after { animation: none; }
}

How to use New 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.

More onboarding & coachmarks components

← Browse all NudaUI components