Progressive Disclosure Steps
A copy-paste onboarding & coachmarks component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Onboarding & CoachmarksHTMLCSSany framework
Create account
Name your workspace
This appears in your team's URL and settings.
Invite your team
Copy into your project
HTML
<!-- Progressive Disclosure Steps — later steps stay locked/dimmed until earlier ones are done -->
<div class="nuda-ob2-progressive-steps">
<div class="nuda-ob2-progressive-steps__item is-done">
<span class="nuda-ob2-progressive-steps__num" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12 L10 17 L20 7" />
</svg>
</span>
<span class="nuda-ob2-progressive-steps__label">Create account</span>
</div>
<div class="nuda-ob2-progressive-steps__item is-current">
<span class="nuda-ob2-progressive-steps__num" aria-hidden="true">2</span>
<div class="nuda-ob2-progressive-steps__body">
<span class="nuda-ob2-progressive-steps__label">Name your workspace</span>
<p>This appears in your team's URL and settings.</p>
<button class="nuda-ob2-progressive-steps__cta" type="button">Continue</button>
</div>
</div>
<div class="nuda-ob2-progressive-steps__item is-locked">
<span class="nuda-ob2-progressive-steps__num" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="5" y="10" width="14" height="10" rx="2" />
<path d="M8 10 L8 7 a4 4 0 0 1 8 0 L16 10" />
</svg>
</span>
<span class="nuda-ob2-progressive-steps__label">Invite your team</span>
</div>
</div>CSS
.nuda-ob2-progressive-steps {
width: 100%;
max-width: 290px;
padding: 14px 16px;
background: rgba(20,20,24,.96);
border: 1px solid rgba(255,255,255,.08);
border-radius: 12px;
display: flex;
flex-direction: column;
}
.nuda-ob2-progressive-steps__item {
position: relative;
display: flex;
gap: 10px;
padding: 9px 0;
}
.nuda-ob2-progressive-steps__item:not(:last-child)::after {
content: "";
position: absolute;
left: 11px;
top: 32px;
bottom: -9px;
width: 1px;
background: rgba(255,255,255,.1);
}
.nuda-ob2-progressive-steps__num {
width: 22px;
height: 22px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
font: 800 11px ui-sans-serif,system-ui;
background: rgba(255,255,255,.05);
border: 1.5px solid rgba(255,255,255,.12);
color: #777;
z-index: 1;
}
.nuda-ob2-progressive-steps__num svg {
width: 12px;
height: 12px;
}
.nuda-ob2-progressive-steps__item.is-done .nuda-ob2-progressive-steps__num {
background: #e4ff54;
border-color: #e4ff54;
color: #0a0a0a;
}
.nuda-ob2-progressive-steps__item.is-done .nuda-ob2-progressive-steps__label {
color: #63636e;
text-decoration: line-through;
text-decoration-color: rgba(255,255,255,.2);
}
.nuda-ob2-progressive-steps__item.is-current .nuda-ob2-progressive-steps__num {
border-color: #e4ff54;
color: #e4ff54;
animation: nuda-ob2-progressive-steps-pulse 1.6s ease-in-out infinite;
}
.nuda-ob2-progressive-steps__item.is-current .nuda-ob2-progressive-steps__label {
color: #fafafa;
font-weight: 700;
}
.nuda-ob2-progressive-steps__item.is-locked {
opacity: .5;
}
.nuda-ob2-progressive-steps__label {
font: 600 12px ui-sans-serif,system-ui;
color: #a1a1aa;
line-height: 22px;
}
.nuda-ob2-progressive-steps__body {
display: flex;
flex-direction: column;
gap: 5px;
animation: nuda-ob2-progressive-steps-in .35s ease both;
}
.nuda-ob2-progressive-steps__body p {
margin: 0;
font: 500 11px/1.4 ui-sans-serif,system-ui;
color: #a1a1aa;
}
.nuda-ob2-progressive-steps__cta {
align-self: flex-start;
min-height: 32px;
display: inline-flex;
align-items: center;
padding: 0 14px;
margin-top: 2px;
background: #e4ff54;
color: #0a0a0a;
border: none;
border-radius: 6px;
font: 700 11px ui-sans-serif,system-ui;
cursor: pointer;
transition: transform .2s;
}
.nuda-ob2-progressive-steps__cta:hover {
transform: translateX(2px);
}
.nuda-ob2-progressive-steps__cta:focus-visible {
outline: 2px solid #e4ff54;
outline-offset: 2px;
}
@keyframes nuda-ob2-progressive-steps-pulse {
0%,100% {
box-shadow: 0 0 0 0 rgba(228,255,84,0);
}
50% {
box-shadow: 0 0 0 4px rgba(228,255,84,.18);
}
}
@keyframes nuda-ob2-progressive-steps-in {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-ob2-progressive-steps__item.is-current .nuda-ob2-progressive-steps__num {
animation: none;
}
.nuda-ob2-progressive-steps__body {
animation: none;
}
}
How to use Progressive Disclosure 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.