Skip to content

Welcome Modal

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

Onboarding & CoachmarksHTMLCSSany framework

Welcome aboard

Let's set up your workspace in 60 seconds.

Copy into your project

HTML
<!-- Welcome Modal — first-run greeting + CTA -->
<div class="nuda-wel" role="dialog" aria-labelledby="welcome-title">
  <div class="nuda-wel__icon">
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
         stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
      <path d="M12 2 L13.5 8.5 L20 10 L13.5 11.5 L12 18 L10.5 11.5 L4 10 L10.5 8.5 Z" />
    </svg>
  </div>
  <h3 id="welcome-title">Welcome aboard</h3>
  <p>Let's set up your workspace in 60 seconds.</p>
  <button class="nuda-wel__cta" type="button">Get started</button>
</div>
CSS
/* Welcome Modal
   First-run modal with sparkly icon, headline, copy, primary CTA.
   Customize: --wel-accent */

.nuda-wel {
  --wel-accent: #e4ff54;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 24px;
  width: 100%;
  max-width: 360px;
  background: rgba(20, 20, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-align: center;
  animation: nuda-wel-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
}

.nuda-wel__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(228, 255, 84, 0.2), rgba(228, 255, 84, 0.05));
  border: 1px solid rgba(228, 255, 84, 0.3);
  border-radius: 50%;
  color: var(--wel-accent);
  filter: drop-shadow(0 0 6px rgba(228, 255, 84, 0.4));
  animation: nuda-wel-spin 4s ease-in-out infinite;
}

.nuda-wel__icon svg { width: 24px; height: 24px; }

.nuda-wel h3 {
  font: 800 1.25rem ui-sans-serif, system-ui, sans-serif;
  color: #fafafa;
  margin: 4px 0 0;
  letter-spacing: -0.02em;
}

.nuda-wel p {
  font: 500 0.875rem ui-sans-serif, system-ui, sans-serif;
  color: #a1a1aa;
  margin: 0;
  line-height: 1.5;
}

.nuda-wel__cta {
  margin-top: 8px;
  padding: 10px 24px;
  background: var(--wel-accent);
  color: #09090b;
  border: none;
  border-radius: 8px;
  font: 700 0.875rem ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s;
}

.nuda-wel__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(228, 255, 84, 0.4);
}

@keyframes nuda-wel-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes nuda-wel-spin {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-wel,
  .nuda-wel__icon { animation: none; }
}

How to use Welcome Modal

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