Free Motion Capture for Everyone πβ¨
TypeScript
/* =========================================
TUTORIAL / GUIDED TOUR
Layering: app < spotlight dim (300) < pointer bubble (320) < fallback & overlay (340).
FloatingOnboarding hard-codes z-index:99 inline on its portal, so these
overrides use !important on the classes it forwards to that portal.
========================================= */
.prompt-tooltip-reference-container.tour-spotlight-layer {
z-index: 300 !important;
}
.prompt-tooltip-reference-container.tour-bubble-layer {
z-index: 320 !important;
}
/* The tour bubble carries its own nav row, so give it a little more room than
the shared 248px tooltip width. */
.tour-bubble-layer .prompt-tooltip-container {
min-width: 300px;
max-width: 300px;
}
/* =========================================
SPOTLIGHT β dim the app, ring the target
Fills the target-sized box FloatingOnboarding positions for us. The box-shadow
spread paints everything outside the target dark; the inner ring highlights it.
========================================= */
.tour-spotlight {
width: 100%;
height: 100%;
border-radius: 8px;
box-shadow:
0 0 0 3px var(--color-info, #4aa3ff),
0 0 0 9999px rgba(0, 0, 0, 0.55);
transition: box-shadow 0.15s linear;
}
/* =========================================
TOUR NAV β Back / Skip / Next, rendered on the bubble itself
========================================= */
.tour-nav {
margin-top: 4px;
padding-top: 8px;
border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.12));
}
.tour-nav .tour-step-counter {
white-space: nowrap;
}
/* Skip is a quiet, full-width affordance under the primary Back/Next row. */
.tour-nav .tour-skip-link {
align-self: center;
opacity: 0.75;
}
.tour-nav .tour-skip-link:hover {
opacity: 1;
}
/* =========================================
POINTER FALLBACK β centered card shown ONLY when the target can't be
highlighted (collapsed panel, wrong route, not yet mounted). Carries the same
TourNav controls so the tour can never soft-lock.
========================================= */
.tour-pointer-fallback {
position: fixed;
top: 96px;
left: 50%;
transform: translateX(-50%);
z-index: 340;
width: 340px;
max-width: 90vw;
}
.tour-control-caption {
line-height: 1.3;
}
/* =========================================
OVERLAY β centered modal for branch/info steps
Sits above the spotlight/bubble layers so an intro/finish screen is unobstructed.
========================================= */
.tour-overlay {
z-index: 340;
}
/* =========================================
FIRST-RUN NUDGE β draw attention to the launch button until the tour is done
========================================= */
@keyframes tour-nudge-pulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(74, 163, 255, 0.5); }
50% { box-shadow: 0 0 0 6px rgba(74, 163, 255, 0); }
}
.tour-nudge-pulse {
border-radius: 6px;
animation: tour-nudge-pulse 2.2s ease-in-out infinite;
}