Build modern UIs without the framework complexity.

vanilla-ssr v0.4.0 brings lazy/conditional hydration and a global config API. Build admin dashboards 90% faster with minimal custom CSS. Works with any backend—.NET Razor, PHP, Go templates, or Node.

What's new in v0.4.0

Lazy/Conditional Hydration

hydrateOnInteraction, hydrateOnIdle, and hydrateOnVisible to hydrate only when needed.

Global Configuration

configure/getConfig with defaultTarget, styleTarget, csp nonce, and debug flags.

CSP + Style Target

injectVanillaStyles respects styleTarget and applies CSP nonce for strict policies.

Host Resolution

ensureHostElement consults global defaultTarget to find overlay mount points.

Debuggability

Optional debug logs and mismatch warnings during hydration.

No Breaking Changes

All additions are opt-in; existing apps continue working unchanged.

What you get

Theme System

Built-in light/dark mode with 18+ customizable CSS variables. Apply themes globally or to specific elements with zero setup.

Utility Components

Badges, chips, status dots, and table helpers. Eliminate 400+ lines of custom CSS for common UI patterns.

Table Helpers

Pre-configured column renderers for DataTable. Status badges, progress bars, date formatting, and more—no custom CSS needed.

Rebranding & Compatibility

Renamed to vanilla-ssr in v0.3.7. Most APIs remain compatible; update imports and CSS paths.