Skip to content

Skippable Optional Steps

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

Steppers & WizardsHTMLCSSany framework
  1. Profile photo
  2. 2Add teammatesoptional
  3. 3Finish

Copy into your project

HTML
<ol class="nuda-st2-skip-optional">
  <li class="is-done">
    <span class="nuda-st2-skip-optional__dot">✓</span>
    <span>Profile photo</span>
  </li>
  <li class="is-active is-optional" aria-current="step">
    <span class="nuda-st2-skip-optional__dot">2</span>
    <span>Add teammates<em>optional</em></span>
    <button type="button">Skip</button>
  </li>
  <li>
    <span class="nuda-st2-skip-optional__dot">3</span>
    <span>Finish</span>
  </li>
</ol>
CSS
.nuda-st2-skip-optional {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nuda-st2-skip-optional li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #a0a0a8;
}

.nuda-st2-skip-optional__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: #a0a0a8;
  font-size: 11px;
  font-weight: 700;
}

.nuda-st2-skip-optional li.is-done .nuda-st2-skip-optional__dot {
  background: #e4ff54;
  border-color: #e4ff54;
  color: #09090b;
}

.nuda-st2-skip-optional li.is-active .nuda-st2-skip-optional__dot {
  border-color: #e4ff54;
  color: #e4ff54;
}

.nuda-st2-skip-optional li.is-active {
  color: #fafafa;
}

.nuda-st2-skip-optional em {
  font-style: normal;
  color: #777;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-left: 6px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 99px;
  padding: 2px 6px;
}

.nuda-st2-skip-optional button {
  margin-left: auto;
  min-height: 32px;
  padding: 0 12px;
  background: transparent;
  color: #a0a0a8;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  transition: color .2s,border-color .2s;
}

.nuda-st2-skip-optional button:hover {
  color: #fafafa;
  border-color: rgba(255,255,255,.3);
}

.nuda-st2-skip-optional button:focus-visible {
  outline: 2px solid #e4ff54;
  outline-offset: 2px;
}

@media (prefers-reduced-motion:reduce) {
  .nuda-st2-skip-optional * {
    transition: none;
  }
}

How to use Skippable Optional Steps

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 steppers & wizards components

← Browse all NudaUI components