@SIMT-DEV/WEB-UI
Web UI playground Framework-agnostic controls and motion primitives from the published @simt-dev/web-ui package source, running locally with no network or storage dependency.
LIVE SOURCEv0.1.3 Framework-agnostic motion, preference, pointer and static-site primitives for SIMT web products.
Components 6
Source files 13
Dependencies 0
Actual package source · isolated same-origin iframeOpen standalone ↗
COMPONENT CATALOG
Every authored example, generated. The cards below come from the package preview manifest. Their source references and contracts are rendered beside the example, so adding a component never requires editing the Design page template.
Usage <button class="button button--primary" type="button">Launch orbit</button>
<button class="icon-button" type="button" aria-label="Favorite">
<svg aria-hidden="true" viewBox="0 0 24 24">…</svg>
</button>Contracts .button.button--primary.button--ghost.button--outline.icon-buttonSource Usage <div class="marquee" data-ambient>
<div class="marquee__viewport">
<div class="marquee__rail">
<ul class="marquee__track">…</ul>
<ul class="marquee__track marquee__track--clone" aria-hidden="true">…</ul>
</div>
</div>
</div>Contracts .marquee.marquee__rail.marquee__track--clone[data-ambient]Source Usage <div class="stagger">
<article data-reveal>…</article>
<article data-reveal>…</article>
<article data-reveal>…</article>
</div>Contracts [data-reveal].is-revealed.staggerSource Usage <section class="faq" aria-labelledby="faq-title">
<div class="container faq__grid">
<header class="faq__heading"><h2 id="faq-title">Questions</h2></header>
<div class="faq__list">
<details class="faq-item">
<summary><span class="faq-item__q">Question</span><span class="faq-item__icon" aria-hidden="true">+</span></summary>
<div class="faq-item__a"><p>Answer</p></div>
</details>
</div>
</div>
</section>Contracts .faq__grid.faq__heading.faq__list.faq-item.faq-item__icon.faq-item__aSource Usage initPointerScene({
area: document.querySelector('[data-pointer-area]'),
bounds: document.querySelector('[data-pointer-area]'),
spotlight: document.querySelector('[data-pointer-spotlight]'),
tilt: document.querySelector('[data-pointer-tilt]'),
});Contracts [data-pointer-area]--lx--ly--tilt-x--tilt-y.is-litSource Usage detectPerformance();
initTheme(document.querySelector('[data-theme-toggle]'));
initMotion(document.querySelector('[data-motion-toggle]'));
initLocaleSelect(document.querySelector('[data-locale-select]'));
trackHeader(document.querySelector('[data-header]'));
trackSections(document.querySelectorAll('[data-nav-link]'));Contracts [data-theme-toggle][data-motion-toggle][data-locale-select][data-perf="lite"][data-header][data-nav-link]Source
INTEGRATION
Use the public entry points. The playground imports the package root, exactly as a consumer does. Browser storage remains a separate optional adapter and is not loaded here.
import {
detectPerformance,
initMotion,
initPointerScene,
initLocaleSelect,
initTheme,
observeReveals,
pauseOffscreen,
trackHeader,
trackSections,
} from '@simt-dev/web-ui';
import '@simt-dev/web-ui/styles.css';
detectPerformance();
initTheme(document.querySelector('[data-theme-toggle]'));
initMotion(document.querySelector('[data-motion-toggle]'));
initLocaleSelect(document.querySelector('[data-locale-select]'));
observeReveals(document.querySelectorAll('[data-reveal]'));
pauseOffscreen(document.querySelectorAll('[data-ambient]'));
trackHeader(document.querySelector('[data-header]'));
trackSections(document.querySelectorAll('[data-nav-link]'));
initPointerScene({ area: document.querySelector('[data-pointer-area]') });
RUNTIME CONTRACTS
Behavior is explicit. theme Theme preference initTheme
motion Motion preference initMotion
reveal Viewport reveals observeReveals
ambient Offscreen pause pauseOffscreen
header Scrolled header trackHeader
sections Active section trackSections
pointer Pointer scene initPointerScene
performance Performance tier detectPerformance
AUTOMATIC COVERAGE
New source appears without a template edit. The build publishes every .mjs and .css file under src/, lists every root export and compares declared CSS classes with the preview markup. A new component needs only a manifest entry; until then, its source remains visible in this coverage report.
69 CSS classes discovered
0 Root exports discovered
13 Source files published
Inspect undemonstrated surface CSS classes .brand .brand__mark .brand__product .brand__simt .brand__word .button--xl .card .card--accent-top .card--outline .card--rim .finale .finale__actions .finale__body .finale__corona .finale__fine .finale__inner .finale__mark .finale__title .is-offscreen .is-revealed .is-scrolled .js .locale-switch .locale-switch__links .locale-switch__select .scroll-to-top .scroll-to-top--start .site-footer .site-footer--stacked-brand .site-footer__bottom .site-footer__brand .site-footer__nav .site-footer__note .site-footer__title .site-footer__top .site-header .site-header__cta .site-header__inner .site-header__tools .site-nav
Root exports Every root export is initialized by a playground feature.
Source files