Coachmark Tooltip
A copy-paste tooltips component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
TooltipsHTMLCSSany framework
2 / 4
Tweak preferences here.
Copy into your project
HTML
<div class="nuda-coachtt">
<div class="nuda-coachtt__pulse"></div>
<button class="nuda-coachtt__target">⚙</button>
<div class="nuda-coachtt__body">
<div class="nuda-coachtt__step">2 / 4</div>
<div class="nuda-coachtt__copy">Tweak preferences here.</div>
<div class="nuda-coachtt__row">
<button>Skip</button>
<button class="is-primary">Next →</button>
</div>
</div>
</div>CSS
.nuda-coachtt {
position: relative;
display: inline-block;
}
.nuda-coachtt__target {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
border-radius: 50%;
background: rgba(228,255,84,.1);
border: 2px solid #e4ff54;
color: #e4ff54;
font-size: 14px;
cursor: pointer;
z-index: 1;
}
.nuda-coachtt__pulse {
position: absolute;
left: 0;
top: 0;
width: 34px;
height: 34px;
border-radius: 50%;
background: #e4ff54;
animation: _coachPing 2s ease-out infinite;
}
@keyframes _coachPing {
0% {
transform: scale(1);
opacity: .6;
}
100% {
transform: scale(2);
opacity: 0;
}
}
.nuda-coachtt__body {
position: absolute;
left: calc(100% + 14px);
top: 50%;
transform: translateY(-50%);
width: 200px;
padding: 12px;
background: #111114;
border: 1px solid #e4ff54;
border-radius: 12px;
box-shadow: 0 14px 36px -10px rgba(0,0,0,.6),0 0 0 4px rgba(228,255,84,.08);
animation: _coachIn .55s cubic-bezier(.16,1,.3,1);
}
.nuda-coachtt__body::before {
content: '';
position: absolute;
left: -6px;
top: 50%;
transform: translateY(-50%) rotate(45deg);
width: 10px;
height: 10px;
background: #111114;
border-left: 1px solid #e4ff54;
border-bottom: 1px solid #e4ff54;
}
.nuda-coachtt__step {
color: #e4ff54;
font-size: 9px;
font-weight: 700;
letter-spacing: .08em;
text-transform: uppercase;
font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
margin-bottom: 4px;
}
.nuda-coachtt__copy {
color: #fafafa;
font-size: 12px;
margin-bottom: 10px;
line-height: 1.4;
}
.nuda-coachtt__row {
display: flex;
justify-content: flex-end;
gap: 6px;
}
.nuda-coachtt__row button {
padding: 5px 10px;
background: transparent;
border: 0;
color: #a0a0a8;
font-size: 11px;
cursor: pointer;
border-radius: 5px;
transition: background .2s,color .2s;
}
.nuda-coachtt__row button:hover {
background: rgba(255,255,255,.04);
color: #fafafa;
}
.nuda-coachtt__row button.is-primary {
background: #e4ff54;
color: #09090b;
font-weight: 600;
}
.nuda-coachtt__row button.is-primary:hover {
background: #fafafa;
}
@keyframes _coachIn {
from {
opacity: 0;
transform: translateY(-50%) translateX(-8px);
}
to {
opacity: 1;
transform: translateY(-50%) translateX(0);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-coachtt__pulse {
animation: none;
}
.nuda-coachtt__body {
animation: none;
}
}
How to use Coachmark Tooltip
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.