Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic

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.

FrameworkWithOldest supportedTested onNotes
React@prismora/react18.218.2 · 18 · newestWorks with React 18.2 and later; the wrappers set properties and listen to events themselves, so React 18 needs nothing extra.
Vue@prismora/vue3.33.3 · newestTell Vue that pm-* tags are custom elements (compilerOptions.isCustomElement), as prismora init does.
Svelte@prismora/svelte5.25.65.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/solid1.81.8 · 1 · 2Solid 2 apps set "jsxImportSource": "@solidjs/web"; the typings cover Solid 1 and Solid 2.
Angular@prismora/angular2020.0 · 21 · newestCompiled 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.jsReact1515 · newestApp 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).
NuxtVue33 · newestNuxt 3 and 4, with @prismora/vue.
Astrothe custom elements55 · newestThe 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.

FrameworkReference appComponents
React + Viteexamples/react-vite@prismora/react
Next.js (App Router)examples/nextjs@prismora/react
Vue 3 + Viteexamples/vue-vite@prismora/vue
Nuxt 4examples/nuxt@prismora/vue
SvelteKitexamples/sveltekit@prismora/svelte
Solid + Viteexamples/solid-viteelements + @prismora/solid
Angularexamples/angularelements + @prismora/angular
Astroexamples/astroelements
Plain HTMLexamples/htmlstandalone 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.

FrameworkWhat init changes
Next.js App Routerapp/layout.tsx: styles, no-flash script, suppressHydrationWarning
Next.js Pages Routerpages/_app.tsx: styles; pages/_document.tsx: no-flash script
React Router 7 / Remixapp/root.tsx: styles and no-flash script; add --write also registers the route in app/routes.ts
TanStack Startsrc/routes/__root.tsx: styles and no-flash script; add --write writes a file route
React + Vite, Preact + Vitesrc/main.tsx: styles; index.html: no-flash script (Preact uses @prismora/react through preact/compat)
Vue + Vite, Nuxtstyles, custom-element config, no-flash script
Svelte + Vite, SvelteKitstyles in the entry or root layout; no-flash script in index.html / app.html
Solid + Vite (Solid 1 and 2), SolidStartstyles; elements registered in the browser entry; no-flash script
Angularstyles and no-flash script; CUSTOM_ELEMENTS_SCHEMA in components
Astro, Qwik, Lit, plain HTMLstyles, elements and the no-flash script in the layout, root or index.html

React / Next.js

import '@prismora/css/foundation.css'; import { Button, Input, Switch, toast } from '@prismora/react'; export function Profile() { const [name, setName] = useState(''); return ( <> <Input label="Name" value={name} onPmInput={(e) => setName(e.target.value)} /> <Switch onPmChange={(e) => console.log(e.detail.checked)}>Public profile</Switch> <Button tone="success" onClick={() => toast({ title: 'Saved', tone: 'success' })}>Save</Button> </> ); }

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:

// app/layout.tsx import '@prismora/css/foundation.css'; import './prismora.theme.css'; import { noFlashScript } from '@prismora/theme'; export default function RootLayout({ children }) { return ( <html lang="en" suppressHydrationWarning> <head><script dangerouslySetInnerHTML={{ __html: noFlashScript }} /></head> <body>{children}</body> </html> ); }

With the Pages Router, global CSS can only be imported in pages/_app.tsx, and the no-flash script goes in pages/_document.tsx:

// pages/_document.tsx import { Html, Head, Main, NextScript } from 'next/document'; import { noFlashScript } from '@prismora/theme'; export default function Document() { return ( <Html lang="en" suppressHydrationWarning> <Head><script dangerouslySetInnerHTML={{ __html: noFlashScript }} /></Head> <body><Main /><NextScript /></body> </Html> ); }

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

// vite.config.ts vue({ template: { compilerOptions: { isCustomElement: (t) => t.startsWith('pm-') } } }) <!-- Component.vue --> <script setup> import { Input, Switch } from '@prismora/vue'; const name = ref(''); const pub = ref(false); </script> <template> <Input label="Name" v-model="name" /> <Switch v-model="pub">Public profile</Switch> </template>

In Nuxt, everything goes in nuxt.config.ts:

import { noFlashScript } from '@prismora/theme'; export default defineNuxtConfig({ css: ['@prismora/css/foundation.css', '~/assets/css/prismora.theme.css'], vue: { compilerOptions: { isCustomElement: (tag) => tag.startsWith('pm-') } }, app: { head: { script: [{ innerHTML: noFlashScript, tagPosition: 'head' }] } }, });

Svelte 5 / SvelteKit

<script> import '@prismora/css/foundation.css'; import { Input, Switch } from '@prismora/svelte'; let name = $state(''); let pub = $state(false); </script> <Input label="Name" bind:value={name} /> <Switch bind:checked={pub}>Public profile</Switch>

Named slots are snippet props (Svelte 5 does not forward slot="…" to custom elements through components):

<Card heading="Team plan"> <p>Everything in Pro.</p> {#snippet footer()} <Button>Upgrade</Button> {/snippet} </Card>

Wrappers are SSR-safe: elements register in the browser only. This documentation site is a static SvelteKit build that uses Prismora throughout.

Solid

import '@prismora/css/foundation.css'; import type {} from '@prismora/solid'; // JSX typings for <pm-*> import '@prismora/elements/input'; // register only what you use <pm-input label="Name" prop:value={name()} onPm-input={(e) => setName(e.target.value)} />

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

import '@prismora/css/foundation.css'; import '@prismora/elements/input'; // register the elements you use import { CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { PRISMORA_FORMS } from '@prismora/angular'; @Component({ standalone: true, imports: [FormsModule, ...PRISMORA_FORMS], schemas: [CUSTOM_ELEMENTS_SCHEMA], template: `<pm-input label="Name" [(ngModel)]="name"></pm-input>`, })

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

--- import '@prismora/css/foundation.css'; --- <pm-button variant="soft">Works in Astro</pm-button> <script>import '@prismora/elements/button';</script>

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.

Tailwind CSS v4

@import 'tailwindcss'; @import '@prismora/css'; @import './prismora.tailwind.css'; /* exported from the generator */ <div class="bg-accent-soft text-accent-text rounded-lg shadow-2">…</div>