Frameworks
Prismora is plain CSS plus standard custom elements, so it runs anywhere HTML runs. Wrappers are generated from components.json and verified against real builds of every supported framework version in CI (see Supported versions).
Every wrapper registers only its own element, so bundles contain only the components you import. Load @prismora/css/foundation.css once for tokens and the theme; component CSS travels with each component.
Supported versions
Every framework is tested on its oldest supported release and on the newest release of each supported major: CI builds the reference app against the published packages for each version and drives it in a browser. The newest releases are fetched from npm when the test runs, and the test runs every day, so a new framework release is checked the day it comes out.
| Framework | With | Oldest supported | Tested on | Notes |
|---|---|---|---|---|
| React | @prismora/react | 18.2 | 18.2 · 18 · newest | Works with React 18.2 and later; the wrappers set properties and listen to events themselves, so React 18 needs nothing extra. |
| Vue | @prismora/vue | 3.3 | 3.3 · newest | Tell Vue that pm-* tags are custom elements (compilerOptions.isCustomElement), as prismora init does. |
| Svelte | @prismora/svelte | 5.25.6 | 5.25.6 (SvelteKit 2) · newest (SvelteKit latest) | Svelte 5.25.6 is the oldest release that server-renders a bound component inside another component's children (an Input in a Card); earlier Svelte 5 releases fail there. |
| Solid | @prismora/solid | 1.8 | 1.8 · 1 · 2 | Solid 2 apps set "jsxImportSource": "@solidjs/web"; the typings cover Solid 1 and Solid 2. |
| Angular | @prismora/angular | 20 | 20.0 · 21 · newest | Compiled with the oldest supported Angular, so every later major links it. Angular 20 apps without Zone.js add provideZonelessChangeDetection() (zoneless is the default from Angular 21). |
| Next.js | React | 15 | 15 · newest | App Router and Pages Router, with @prismora/react. Next.js 15 declares no types for CSS imports, which TypeScript 6 requires: keep a Next.js 15 app on TypeScript 5 (Next.js 16 works with both). |
| Nuxt | Vue | 3 | 3 · newest | Nuxt 3 and 4, with @prismora/vue. |
| Astro | the custom elements | 5 | 5 · newest | The custom elements directly, in any island or plain page. |
Reference apps
npx @prismora/cli init sets up any of these for you. Each folder in the repository is a complete, working app with the same page in a different framework, built and browser-tested in CI. Copy one to see exactly where each file goes.
| Framework | Reference app | Components |
|---|---|---|
| React + Vite | examples/react-vite | @prismora/react |
| Next.js (App Router) | examples/nextjs | @prismora/react |
| Vue 3 + Vite | examples/vue-vite | @prismora/vue |
| Nuxt 4 | examples/nuxt | @prismora/vue |
| SvelteKit | examples/sveltekit | @prismora/svelte |
| Solid + Vite | examples/solid-vite | elements + @prismora/solid |
| Angular | examples/angular | elements + @prismora/angular |
| Astro | examples/astro | elements |
| Plain HTML | examples/html | standalone build |
What prismora init sets up
Each of these is created with the framework's own starter, set up with prismora init, given a generated page with prismora add dashboard --write, built for production and driven in Chrome (inputs, switches, selects, dialogs, toasts, icons, dark mode kept after reload). The test lives in tools/test-apps.ts.
| Framework | What init changes |
|---|---|
| Next.js App Router | app/layout.tsx: styles, no-flash script, suppressHydrationWarning |
| Next.js Pages Router | pages/_app.tsx: styles; pages/_document.tsx: no-flash script |
| React Router 7 / Remix | app/root.tsx: styles and no-flash script; add --write also registers the route in app/routes.ts |
| TanStack Start | src/routes/__root.tsx: styles and no-flash script; add --write writes a file route |
| React + Vite, Preact + Vite | src/main.tsx: styles; index.html: no-flash script (Preact uses @prismora/react through preact/compat) |
| Vue + Vite, Nuxt | styles, custom-element config, no-flash script |
| Svelte + Vite, SvelteKit | styles in the entry or root layout; no-flash script in index.html / app.html |
| Solid + Vite (Solid 1 and 2), SolidStart | styles; elements registered in the browser entry; no-flash script |
| Angular | styles and no-flash script; CUSTOM_ELEMENTS_SCHEMA in components |
| Astro, Qwik, Lit, plain HTML | styles, elements and the no-flash script in the layout, root or index.html |
React / Next.js
Wrappers are marked 'use client' and register elements lazily on the client, so they are safe in Server Components trees. React 18.2 or later: the wrappers set arrays and objects on the element as properties and listen to its events themselves, so React 18 and 19 behave the same.
In Next.js, load the CSS and the no-flash script in the root layout. suppressHydrationWarning is needed because the script sets attributes on <html> before React hydrates:
With the Pages Router, global CSS can only be imported in pages/_app.tsx, and the no-flash script goes in pages/_document.tsx:
React Router 7 (and Remix) and TanStack Start work the same way: import the CSS at the top of app/root.tsx or src/routes/__root.tsx and put the script first in <head>. Preact apps use @prismora/react through preact/compat, which the Preact Vite preset sets up.
Vue 3 / Nuxt
In Nuxt, everything goes in nuxt.config.ts:
Svelte 5 / SvelteKit
Named slots are snippet props (Svelte 5 does not forward slot="…" to custom elements through components):
Wrappers are SSR-safe: elements register in the browser only. This documentation site is a static SvelteKit build that uses Prismora throughout.
Solid
Solid 1 and Solid 2 are both typed. In SolidStart, register the elements in src/entry-client.tsx (they need a browser) and put <script innerHTML={noFlashScript} /> in the document in src/entry-server.tsx.
Angular
A new Angular project allows 1 MB for its first bundle, and every element at once is larger than that. So prismora init ends src/main.ts with void import('@prismora/elements/define'), which loads the elements in a chunk of their own after the app starts. For the smallest app, replace that line with one import per element you use, as above.
Astro, Qwik, Lit, plain HTML, Bun
In Qwik, import @prismora/elements/define (or single elements) inside a useVisibleTask$ in src/root.tsx so they load in the browser. Inside Lit components, Prismora elements work in the shadow root as they are; they bring their own styles and read the theme tokens, which inherit through shadow roots.
Without a bundler, use the standalone build, which registers everything: <script type="module" src="…/prismora.standalone.js"> with prismora.css.