Changelog
What changed in each release. All @prismora/* packages share one version and are released together.
A change that needs something from you is marked Migration; the upgrade guide collects those. How versions work is in the versioning policy.
Unreleased
Dependencies
- The site and the SvelteKit example run on SvelteKit 3, Vite 8,
@sveltejs/vite-plugin-svelte7 and@sveltejs/adapter-static4; TypeScript 6 across the repo; Astro 7 in its example;@vitejs/plugin-react6;@sveltejs/package3 for@prismora/svelte;zod4 for@prismora/mcp; GitHub Actions checkout and setup-node v7. Their configuration moved fromsvelte.config.jsintovite.config.tsand$libbecame#lib, as SvelteKit 3 asks. - Dependabot proposes every update daily, majors included, grouped so that a framework and its build tools arrive together; Lit is no longer left out.
Framework versions
- Supported versions are listed in
frameworks.jsonand on /docs/frameworks: React 18.2+, Vue 3.3+, Svelte 5.25.6+, Solid 1.8+ and Solid 2, Angular 20+, Next.js 15+, Nuxt 3+, Astro 5+. A new test builds each framework's reference app against the packed packages on its oldest supported release and on the newest release of every supported major, then drives it in Chrome. It runs on every push and daily (.github/workflows/versions.yml, one job per framework), with the newest releases fetched from npm. @prismora/reactaccepts React 18.2 and later (it was 19): the wrappers set properties and listen to events themselves, and React 18.2 and 18.3 pass the same tests as 19.@prismora/svelteships its components as plain JavaScript (the types stay in the.svelte.d.tsfiles beside them), with event handlers in the script instead of TypeScript in the markup. Before, an app's Svelte compiler had to read the components' TypeScript. It needs Svelte 5.25.6 or later: earlier Svelte 5 releases fail to server-render a bound component inside another component's children (anInputin aCard).- Every stylesheet export (
@prismora/css/foundation.css,@prismora/fonts/pairing-inter.css, …) has type declarations. TypeScript 6 checks side-effect imports, and frameworks that declare no*.csstypes (Next.js 15) failed to build withCannot find module or type declarations. @prismora/angularis compiled with Angular 22; Angular 20.0 and 21 apps link it (tested daily).
Surfaces
Fixed
- Neumorphic is easier to read. Light mode had shadows too faint to show a raised piece: the shade is stronger (34% of the shadow ink, from 22%) and the highlight is pure white (from 85%). Small raised pieces (buttons, chips, the selected segment, badges) were outlined only by wide soft shadows, which on a dark page blurred into a grey haze: they now take a short, tight pair of shadows and a 1px bevel inside the edge (
sf-raise,sf-line-raise), and dark mode's shade is stronger (65%, from 55%).--pm-shadow-strengthand--pm-neu-highlightstill scale both. - Wherever the standard and the
-webkit-backdrop-filterare both written, the standard one comes last. Vite 8's CSS minifier keeps only the last of the two when their value is avar(), so built apps lost the glass blur in Chrome and Firefox. A contract test keeps the order. - On neumorphic, the pieces that were still flat are raised or pressed in like the rest: ghost buttons (copy and share buttons too), every badge, avatars, counts on tabs, nav items and kanban columns, stat deltas, chat bubbles and the day chip, timeline markers, today and the chosen day in calendars, pagination pages (the current one pressed in), scheduler events, kanban lanes (pressed in), the icons of results, empty states and the upload zone, the current nav item (pressed in), banners and code blocks. Separators are engraved. Flat, outline, gradient and glass look as before, except that banners and code blocks take the light lift of a bar on gradient and glass.
- On neumorphic, whatever is under the pointer or the keyboard rises: menu and dropdown items, list box, select, cascader and time options, list, tree and table rows, nav items, calendar days, tab close, input and stepper buttons and every small hover button. Selected options, list and tree rows and table rows press in. A contract test makes every hover fill carry the hover shadow.
- On the neumorphic surface, everything drawn with a line now follows the surface too: outline buttons (and with them button groups, the command button, share and copy buttons), tags, outline badges, keys, toggles (pressed in when on), step markers, the tree's checkboxes, the editor and phone-number fields, the upload drop zone, bordered empty states, and the alert, accordion, bordered list, splitter and cookie-consent panels. Before, they stayed flat with a border. Flat, outline, gradient and glass look the same as before, except that alerts, accordions, bordered lists, splitters and consent items now take the same light lift as tables on gradient and glass.
- The toolbar, sortable items, kanban cards, the carousel and pull-to-refresh buttons, the chart's tooltip, the cookie-consent panel, the hero frame and the call-to-action band draw their line with
--pm-sf-border, like cards and menus. Before, they kept the fixed hairline while their shadow followed the surface, so on outline (strong lines) and glass (light edges) they did not match the pieces around them. - In Safari (WebKit), the data table's filter and rows-per-page selects drew the browser's own box, so they skipped the surface (flat on neumorphic). They now draw their own box and chevron, like
.pm-select. - The gallery pictures of the components and templates are taken again with these fixes.
- Two new checks keep this from coming back: a piece whose shadow comes from the surface must take its line from the surface too (in the stylesheets and in the browser, for every component on every surface), and a native select an element renders must reset its
appearance. - App shell: the bar's shadow stops at its sides, so where it meets the raised sidebar (and the detail pane) the two join cleanly instead of shading each other; below, the bar still rises off the page.
- Joined pieces rise as one on neumorphic: a button group is one raised slab with its buttons flat in it (a pressed one still goes in), and an avatar group is one raised stack whose avatars keep only their ring, so none shades the next. Other surfaces are unchanged.
- Charts, sparklines and tracks take the surface: on neumorphic chart bars, lines, donut slices and sparklines lift off the page, grid lines are engraved, and progress, meter, slider and range slider tracks are grooves deep enough to read. The carousel's dots are pressed in, the current one raised.
- Accordion, transfer, table and divided list dividers are engraved on neumorphic, and transfer rows sit in from the pane's edge so a chosen one does not run into it.
- The neumorphic Highlight control works again in light mode: the lit edge is drawn at 90% at its default, so the control can brighten it (at 100% it had no room above).
- A new check keeps joined pieces joined: on neumorphic a button group and an avatar group rise as one with nothing inside them shading the next piece, and the app bar's shadow stops at its sides; on flat every piece keeps its own.
pm-code-blocksits in the page as a well of the surface in use, in the page's text colours, like the code on prismora.design (it was dark ink on every surface). Its bar has a Wrap toggle, andwrapsets where it starts.- A theme scoped to part of a page (
data-themeon an element, orbuildThemeCsswith a selector) keeps the colour scheme around it. It reset it tolight dark, so with the page set to light on a dark system (or the other way round) that part showed the system's mode.
Added
- Surface tokens
--pm-sf-line-raiseand--pm-sf-line-press: the shadow of a small piece drawn by its line, and of the same piece when pressed.noneon every surface except neumorphic. - Surface token
--pm-sf-hover-shadow: the shadow of a row, option or item under the pointer. It rises on neumorphic and isnoneelsewhere. - Surface token
--pm-sf-groove-lit: the lit edge under a separator, which engraves it on neumorphic (transparentelsewhere). - Surface tokens
--pm-sf-joined-shadow(a piece inside a joined group: its own shadow, or none on neumorphic),--pm-sf-mark-filter(a filter on drawn chart marks:none, or a soft lit and shaded edge on neumorphic) and--pm-sf-track-min(the least height of a thin track:0px, or0.625remon neumorphic). - Neumorphic charts, lines and status dots: each bar rises out of a slot pressed into the surface, grid lines, separators, table and list rows, accordion and transfer dividers and the timeline's line are cut in (a shaded line with a lit edge under it), marks lift a little further, and a status dot sits in a raised ring.
- The neumorphic hover lifts a row in the surface's own colour, with the same crisp lit and shaded rim as a button, so its top edge is sharp; it no longer turns it a pale slab (light) or a grey one (dark) with a soft top.
- Surface tokens
--pm-sf-groove(the colour of a dividing line: the border colour, or the shaded edge on neumorphic),--pm-sf-mark-track(1where a chart draws its bar slots) and--pm-sf-bezel(the ring of a small round indicator).
Consistent heights
- Controls side by side are the same height: the display settings buttons and the search field in an app bar match its other buttons, the data table's filters, search, buttons and page-size select use the small control height (and follow density), the product page's quantity field matches Add to cart, and
pm-theme-switchismdby default in both variants. size="xs"andsize="xl"are drawn on text fields, selects, checkboxes, radios, switches and the phone field; they were accepted but drawn asmd.
Component options
pm-data-table: rows scroll under the header and pinned rows again. A pinned row stuck to the top of the scroll area, over the header, because its offset never reached its cells, and the filter row let rows show through where the surface's quiet fill is see-through (neumorphic, glass).pm-tableandpm-data-tablescrolling: - Amax-heightthe rows overflow by less than a wheel notch (128px) is dropped and the rows shown whole. A box that scrolls only a sliver took the first notch, then the browser kept the rest of the gesture on it (already at its end): the page stuck, jumped a notch later, and every change of direction went back into the box first. - Row hover pauses while the rows move under a still pointer (their own scroll, or the page's) and for 150 ms after. Each hover change repainted the whole table, so a hover following every row crossed made the scroll lag. - The scroll area scrolls on the GPU (will-change: scroll-position). Its background is see-through, and on a 1x screen Chrome scrolled it on the main thread, repainting every frame: the table lagged on every surface. - No more 1px lines of the rows showing through the sticky header, filter row and pinned rows while scrolling (most on neumorphic). Their dividers are drawn inside the cells' opaque fill (an inset shadow) instead of as see-through borders, which Chrome's GPU raster could leave without fill beneath; pinned rows stick as whole rows (no seams between sticky cells); header and pinned rows have whole-pixel heights and offsets.pm-data-tablescrolling: the last column's resize handle no longer sticks 4px past the table (every table could scroll sideways a little; with classic scrollbars that added a scrollbar and a small inner scroll that caught the wheel, so the page stuck, then jumped). Keyboard focus no longer scrolls the page as well as the table, and stops clear of the sticky header, pinned rows and frozen columns. Leaving a cell editor by clicking elsewhere no longer pulls focus and scroll back to the cell. A new page, sort or filter starts at the top of the rows.pm-end-reachedfires only on a vertical scroll near the end (no longer on sideways scrolls of a table withoutmax-height).max-heightno longer applies in the narrow card layout (cards flow with the page).pm-data-table: column resize draws once per frame and fires nopm-column-resizefor a click without a drag; other columns keep their width when one is resized after apersistrestore. Moved in the page (into a dialog or tab), it measures its frozen columns again and a cut-off remote request is asked again. "Select all N" is hidden for server data (it could only select the loaded rows). Shift-click on a pinned row no longer selects "undefined". Remote loads after the first keep the rows in place instead of skeletons, so the height no longer jumps per keystroke.- Names for built-in buttons, for another language:
prev-label/next-labelon carousel, calendar and pagination,decrease-label/increase-labelon number input. pm-data-tabledocumentspm-column-resize(key,width), to save column widths.- Cascader, range slider, rating, segmented, toggle group, transfer, tree select, signature and file upload block submit in
pm-formwhenrequiredand empty, and havecheckValidity(),reportValidity(),validate(),validity,validationMessageandform, like the other form controls (pm-formskipped them before). - The same controls have
readonly(the value shows, can be focused and is submitted, but cannot be changed), and cascader, range slider, transfer, tree select, signature and file upload havehide-label. - Every control with several values (checkbox group, toggle group, combobox with
multiple, tree select, transfer) has a comma-joinedvalue(what is submitted) and avalueslist, andpm-changesends both. - Changed:
pm-transfer, andpm-tree-selectwithmultiple, now givevalueandpm-changedetail.valueas a comma-separated string; the list is invalues/detail.values. Arrays and JSON arrays are still accepted. - Transfer and tree select restore their selection when the browser restores a form; a combobox value set from code while someone is typing replaces the typed text; inline edit has
save-labelandcancel-label; toggle group and inline edit reflectrequired. - Changed:
pm-date-picker,pm-time-pickerandpm-color-pickeropen and close withshow()/hide()/toggle(); theiropen()method is gone andopenis now a reflected property that opens and closes the popup (close()still works, deprecated). This is the same contract as dialog, drawer, command, collapsible and fab: anopenproperty,show(),hide(),toggle(), andpm-open/pm-close. Context menu hashide()andpm-close. - Dialog and drawer fire a cancelable
pm-request-close(reason: escape, backdrop, button or swipe) before a person closes them:preventDefault()keeps them open, for unsaved changes. Closing from code does not ask. - Drawer's property is
side, the same as its attribute (placementstill works, deprecated). - A value set from code, or a form reset, clears text half typed into a date, time or colour picker, and its error.
- Popover, menu, tooltip, toolbar, menubar, context menu, toaster, tour, app and editor accept
tone,surface,radius,density,motionandelevationon the element, like every other component. - More names for translation:
close-labelon dialog and drawer,dismiss-labelon alert,today-label,clear-labelandpresets-labelon date picker. Fab reflectsvariant.
Display settings
pm-theme-settings: display settings for the people using your app (colour mode, theme, surface, corners, density, text size, motion and theme transition, with a Reset). On its own it sets the attributes on<html>and saves them where the no-flash script reads them; give it aThemeControllerto drive that instead.- Every template has the colour mode and display settings in its header, as prismora.design has: a light / dark toggle and a button that opens a drawer with
pm-theme-settings. Pages without a header (account, error, survey, onboarding, coming soon) have them in the top corner; on phones the drawer holds the mode too.
Carousel
- Autoplay is complete:
paused(reflected),play(),stop()andpm-toggle, withpause-labelandplay-label. It waits while the pointer is over it, while it is off screen and while the tab is hidden; keyboard focus moving into it stops it until Play is pressed; reduced motion turns it off, and the button with it, also when the setting changes while the page is open. - The Play / Pause button has icons, not text glyphs, and sits in the row under the slides, so on a short carousel it is no longer under the Next arrow.
- Home and End go to the first and last slide.
- Keyboard focus stops autoplay in every engine: it also counts focus that follows a key press where a browser does not mark it as keyboard focus (WebKit).
- A jump across several slides no longer passes the index (and
pm-change) through the slides in between: it moves once, to where the scroll goes.
Theme transitions
ThemeControlleranimates a change of mode or theme in one of six ways, saved with the visitor's other preferences (transition,data-theme-transition):fade,circle(from the click, or the focused control when the change came from the keyboard),wipe(in the reading direction),prism(a diagonal facet edge while the new colours refract into place),blurandnone. Without a choice it iscircleafter a click andfadeotherwise, as before.THEME_TRANSITIONSlists them. Nothing moves under reduced motion ordata-motionreduced/none.- The circular reveal no longer fades on top of growing: both snapshots stay opaque, so the edge is sharp.
Examples
- The reference apps in
examples/(React, Vue, Solid, Angular, SvelteKit, plain HTML) carry the current no-flash script, so they restore saved style controls before the first paint too. Apps set up withprismora initalready had it.
Site
- The version menu lists only the latest version: the 0.1 site is no longer offered.
- The site is drawn in a brighter violet with pink beside it, on the neumorphic surface. Display settings still offer every surface.
- The docs and components sidebars use Prismora's own nav (
pm-nav-link,pm-nav-heading), so they look and behave like the sidebar of the app templates. - Nav groups with a label read as sections: the heading is in full text colour with a rule to the edge, and the group's items hang from a guide line under it (sidebars, docs and app templates).
- The AI responses page no longer stops the dev server's dependency scan (
@prismora/vuein a code sample was read as an import). - Light running through a prism behind the home hero, the call to action, the components, templates and docs headers and the error page: a lattice of triangular facets fans out from one point under a glow of the theme's colour, and pulses of light run along its lines, each a streak of the spectrum with a bright head. The lattice is three families of lines turned about one point, and each pulse rides inside its family, so it stays exactly on a line and only its position animates. All colours come from the theme, so it follows the generator and every theme and mode. The docs keep still (no pulses across the text). It moves only when motion is welcome, pauses off screen, and a button in its corner stops it on every page (kept in this browser, applied before the first paint).
- Display settings offer the theme transition.
- The header puts GitHub next to Display settings, with the colour mode switch last.
- Theme generator: Randomize has an icon and a menu for one part at a time (only colours, only surface and corners, only typography), in place of the locks, whose list stayed drawn over the button after it was closed. History keeps the last 10 themes a change replaced, with their colours and when; each can be restored or saved, and the list is kept in this browser. The delete button of a saved theme has an icon.
- Component previews follow the colour mode picked on the site, also when the system's is the other one.
- The service worker no longer reports an error when a page is left while it is still keeping a copy of a file (WebKit:
NotReadableError); the copy is kept on the next visit. - The site is built from Prismora's own parts. The header is
pm-app-bar, the main nav is.pm-nav(a row in the bar, a drawer on the web, the tab bar in native mode), code ispm-code-block, colours arepm-color-picker, the generator's choices are segmented controls, menus and cards, Display settings ispm-theme-settings, the icon details are apm-dialogwith copy buttons, the FAQ and Fine-tune arepm-details, and the docs tables arepm-table. - On phones the docs and components menus open from a floating action button. They open as a drawer on the web and as a bottom sheet in native mode. The sheet no longer flashes another layout and fill while it closes.
- Where there is no column for it (under 80rem), "On this page" is nested under the current page in the docs menu. The section being read is marked.
- The changelog shows one release at a time: pick one in the docs menu (releases nest under Changelog, with their areas), the Release field, or Newer / Older. The others stay findable with find-in-page.
- The docs menu has a search field. Items with more inside (Changelog, a release, the page whose sections are listed) show an arrow that points down when they are open.
- Both sidebars fit the window below the header at any scroll position and scroll on their own to their last item; the docs menu brings the current page into view.
- Theme changes reveal the real new page: the circle, wipe and prism reveals had blended the two pictures into a white page with missing text, and the header changed apart from the rest. Page changes fade the old page out, then the new one rises in, with its elements ready, so text no longer doubles up.
Navigation and tab bar
- The tab bar (
.pm-nav[data-bar]) floats above the bottom edge as a rounded panel, inset from the sides and clear of the home indicator, no wider than 36rem. Its fill is at least 80% opaque on every surface, glass included, so labels stay readable over any page. The current tab is marked by its icon's pill and bold label. Pressing a tab sinks its icon a little. .pm-nav[data-top]lays its list out as a row; tab bar items share the width equally.- A link marked current within the page (
aria-current="location","step","true") is drawn in the accent colour, under the page's fill. - Floating action buttons (
pm-faband.pm-fab) sit above a tab bar that publishes--pm-bottom-inset. - Nested nav lists can hang from a guide line (
.pm-nav-children[data-guide]), with long labels wrapping. Only the deepest current item is filled: a parent that holds it keeps the accent text. Items never widen the nav. ThemeController: during a theme transition the page is one picture (data-pm-recolourturns off named groups and colour transitions), the new picture is taken with the new colours in place, and the reveals draw it over the old one instead of blending them.- Surfaces have
--pm-sf-modal-shadowfor layers over the dimmed page (modal dialog, drawer, command palette, bottom sheet). On neumorphic it is a crisp bevel and drop shadow in place of the glow of the raised-piece light. pm-code-blockkeeps its well before it is defined, so prerendered code does not jump.pm-theme-settingstakesdefaultLabels: what the empty choice of a setting says (Theme default (glass)).
0.2.0 (2026-12-04)
CLI
Fixed
prismora theme generatechecks--surface,--radius,--density,--motion,--harmony,--contrastand--secondarylikeinitdoes. A value no theme has (--surface shiny) used to be written into the CSS as it was.prismora initrun a second time no longer resets the theme CSS to the default theme. The CSS is rebuilt from your own theme config, and the CSS path, framework and phone layout recorded inprismora.jsonare kept.- Node 20 to 22.12:
initnow writesprismora.theme.mjs(these versions cannot read a.tsconfig), sotheme buildanddoctorwork after it. - A mistyped flag prints one line (
Unknown option '--sede') instead of a stack trace. --jsonoutput is no longer mixed with the package manager's output (that goes to stderr).- Files with Windows line endings are patched correctly and keep their line endings. Before, an Astro layout could get a second frontmatter block and a Qwik root was left half set up.
doctorreports a theme config it cannot load as a failed check instead of stopping.add --writewrites a Qwik route (src/routes/<name>/index.tsx) instead of printing the page, and writes.jsxpages without TypeScript syntax in JavaScript projects.- The package manager is found in workspaces (a lockfile in a parent folder) and when the CLI is started with
pnpm dlx,yarn dlxorbunxin a project that has no lockfile yet. - A
package.jsonthat is not valid JSON is reported by name. - Angular:
initloads the elements in a chunk of their own (void import('@prismora/elements/define')at the end ofsrc/main.ts). All of them in the first bundle passed the 1 MB limit of a new Angular project, song buildfailed. Migration: in an existing Angular app, replace theimport '@prismora/elements/define';line with this one, or with one import per element you use.
Changed
- Without a terminal,
initneeds--yesto write files. Without it (also with--jsonalone) it prints the plan and exits with code 1. Migration: scripts and agents that raninit --jsonmust add--yes. - At a workspace root,
initstops and names the app folders to run it in. Pass--frameworkto set it up there anyway. add -o <file>andadd --writedo not replace an existing file. Pass--forceto replace it.prismora.jsonhas aversionfield and records the font, colour mode and phone layout chosen at init.
Added
prismora update: moves every@prismora/*package in the project to one version and rebuilds the theme CSS.prismora doctoralso checks that the packages are on one version, that there are no duplicate copies, that the styles, elements and no-flash script are wired into the app, and that the theme CSS matches its config. It tells you when a newer release exists (--offlineskips that).--version,--cwd <dir>,--forceand help per command (prismora init --help).
Templates
Templates are becoming pages you can use as they are. A template can now come with sample data and a behaviour
module, so its controls work in every framework. Orders is the first one built this way; the others follow in this
release.
Added
- Overview dashboard, rebuilt. The period switch (7 days, 30 days, 12 months) recalculates the whole page: KPI cards with trend lines, the revenue or orders chart, sales by channel, top products. Tasks can be ticked off, the chart exports as CSV, and loading, empty and error states are built in.
- Project board, rebuilt on
pm-kanban: cards move with mouse, touch or keyboard, filters by owner, label and search, a sortable list view of the same tasks, a task pane (stage, steps, finish, delete), an add-task dialog that opens from a column's +, and sprint progress that follows every change. .pm-field-row: form fields side by side while each has room, stacked when not.- Traffic analytics, rebuilt. Period switch with a loading state, comparison with the period before, visitors and sources charts, a sign-up funnel, countries, and a top pages table filtered by source (from the select or by choosing a slice of the chart) and by search, with CSV export.
- Customer 360, rebuilt. Statistics worked out from the orders (a new order changes them), tabs for overview, orders with a status filter, notes and activity, an edit dialog whose values show everywhere, tags that can be added and removed, CSV export, and archiving with a way back.
- Landing page, rebuilt. A hero with a live product window made of real components, a logo marquee, features that appear on scroll, steps, counting figures, quotes, questions, and a sign-up form that checks the address and confirms in place. Every list comes from
data.ts. - Pricing, rebuilt. The billing period and a team-size slider recalculate the price and the total of every plan (
quote()indata.ts), with a comparison table that becomes cards on a phone, and billing questions. - Sign in, rebuilt. A form beside a brand panel, checked fields, a failed and a successful attempt with a waiting state, a single sign-on step that knows the company domains, and a check that the device can use passkeys. Replace
check()indata.tswith a request to your server. - Inbox, rebuilt. Folders, search and an unread switch over 23 messages, a reading pane beside the list (one at a time on a phone), star, read and unread, archive and delete with undo, reply and compose that land in Sent, swipe actions, and new mail on a button or a pull.
- Account settings, rebuilt. A checked profile form that shows unsaved changes, preferences with a live date preview, a notification matrix that can be paused, password, two-step verification that asks before turning off, passkeys, sessions, a data download, and a delete that needs the workspace name and can be taken back.
- Team and roles, rebuilt. Seventeen members in a searchable table with a role filter, a member dialog (role, suspend, remove), invitations checked against members and the seats left, sent again or withdrawn, counts that follow all of it, and a table of what each role may do.
- Billing and invoices, rebuilt. The price follows the plan, the billing period and the seats; the plan can be changed, cancelled and kept; a card form with the card check, expiry and brand; billing details; invoices filtered by year, opened, paid and downloaded.
- Help centre, contact, changelog and article, rebuilt. Help: search across every article as you type, topics that open their articles, questions with "did this help?". Contact: the topic sets who answers and how fast and asks for an invoice number when needed; a confirmation with a reference. Changelog: filter by kind, search, older releases, jump links, subscribe. Article: a table of contents that follows the reader, reading progress, like, copy link, subscribe.
- Coming soon, 404 and 500, rebuilt. Coming soon: a countdown and a checked waitlist with your place in line. 404: the address that was not found, a search across the site, report the link. 500: retry by hand or automatically with a countdown, the state of each service, a reference to copy.
- Onboarding, booking and survey, rebuilt. Onboarding: four checked steps, an address that follows the name and is checked for being free, invitations with roles, a review before creating. Booking: a service, a day (weekends closed), the free times of that day for the length of the service, a summary that follows, and a calendar file (
.ics). Survey: a 0 to 10 score with a follow-up that depends on it, choices, ratings, progress as you answer, and answers you can change after sending. Every template now has data and behaviour. .pm-toc(site blocks): links to the sections of an article; the one markedaria-currentis highlighted.- Prose keeps its paragraph rhythm inside a
<section>. - Chat and assistant, rebuilt. Chat: search, unread counts, messages that go from Sent to Read, answers that arrive (and count as unread on a conversation that is not open), mute, one pane at a time on phones. Assistant: suggested prompts, an answer that streams and can be stopped, copy, feedback and "try again", a new chat.
.pm-pane(layout): a column as tall as the screen allows whose.pm-pane-bodytakes what is left and scrolls (a chat thread, a log, a map);data-width="prose"for a centred reading column.- Profile and notifications, rebuilt. Profile: follow, message and edit dialogs, a status that changes the avatar, activity to filter and extend. Notifications: grouped by day, filter by read state and topic, mark read or unread, dismiss and "mark all read" with undo, pause, loading and empty states.
- Product page, cart and checkout, rebuilt with a shared store header and footer (
patterns/store.ts). Product: price, stock and the quantity limit follow colour and size, add to cart with undo, reviews to filter and write. Cart: totals follow quantities, delivery and a discount code, remove with undo, save for later, progress to free delivery, an empty state. Checkout: three checked steps, delivery changes the total, a card form with the card check, a confirmation with the order number. .pm-art(site blocks): a tinted placeholder for a product photo,data-tonefor the colour,data-size="sm"for a thumbnail.- Create account, verification, forgot password and new password, rebuilt in the same frame as sign-in (the form beside a brand panel). Create account: checked fields, a password meter, an address that is already taken, a confirmation. Verification: the code is checked when complete, wrong codes count down and lock the form, a new code has a wait, an authenticator app can be used instead. Forgot password: one answer for every address, and a wait before sending again. New password: rules that turn green as you type, and the state for an expired link.
- Site blocks (in
prismora.css, filecomponents/site.css) for public pages:.pm-site-header(sticky, with the links moving into a menu on narrow screens),.pm-hero,.pm-hero-mediawith.pm-window-bar,.pm-logo,.pm-feature,.pm-quote,.pm-cta,.pm-site-section,.pm-site-footer, and.pm-authfor a form beside a brand panel. The landing, pricing and article pages share one header and footer. .pm-gridoptions:data-min="sm | lg"for narrower or wider columns, anddata-fitso a short row fills the width instead of leaving an empty column.- Table columns:
stack: 'title'makes a cell the heading of the card a row becomes on narrow screens, andstack: 'hide'leaves a cell out there, so phone cards stay short. - Working templates. A template is a page plus two files:
data.ts(typed sample data to replace with your API) andbehavior.ts(setup(root, data): filters, selection, dialogs, export and states, written against the DOM and the elements' own properties and events, so the same file runs in React, Vue, Svelte, Solid, Angular and plain HTML). The page renders from the data in each framework's own syntax (rows={orders},v-for,{#each},@for) and starts the behaviour in its mount hook. prismora add <template> --writewrites the page into the routes folder and the two files into<source>/prismora/<template>/(JavaScript files in projects without TypeScript). It checks every file first and writes nothing if one would replace your edits. MCPscaffold_pagereturns the same files.prismora add app-shell(and MCPscaffold_app_shell): the app shell as a layout component that renders your pages inside it, with navigation that highlights the open page by its URL.- Orders is rebuilt: statistics worked out from the data, status tabs with counts, search, channel and date filters, a sortable table of 48 orders with paging, selection and bulk actions, a detail pane (a third column, a drawer or a full screen, depending on the device), a create dialog, refund with a confirmation, CSV export, and loading, empty and error states.
- Loading, empty and error states for any region:
data-state="ready | loading | empty | error"on the region anddata-show="…"on its parts. Template pages on the site have a State control. - Page layout classes, so templates need no inline styles:
.pm-page,.pm-page-header,.pm-page-title,.pm-page-actions,.pm-filter-bar,.pm-filter-group,.pm-section,.pm-bento(twelve columns that fold by the container's width),.pm-master-detail,.pm-centered-page,.pm-grid[data-fit],.pm-sticky-side, and helpers.pm-gap-*,.pm-items-*,.pm-justify-*,.pm-grow,.pm-shrink-0,.pm-full,.pm-contents. - The app templates share one grouped navigation (Workspace, Work, Admin), and each page highlights its own item (seven of thirteen highlighted another page's).
- Astro:
add --writewrites a.astropage (an.htmlpage in Astro does not bundle its script, so the page had no components). Qwik routes start the template's behaviour in the browser.
Changed
[hidden]always hides, also on elements with a layout class (<div class="pm-cluster" hidden>was shown).- Badges and tags in a stacked table row keep their own width.
Fixed
pm-tabs orientation="vertical"is a row of tabs on screens narrower than 40rem (with the arrow keys to match) instead of a column that took a third of a phone.- List rows: wide content in the
endslot (two switches, several buttons) now goes under the text on narrow rows instead of squeezing the heading to one letter per line. - The spinner area of
pm-pull-refreshno longer takes clicks meant for what is just above the list. - The hint of
pm-switchandpm-checkboxis small, muted text (it was body-sized). - React and Svelte output: an attribute that has no property (
count-labelofpm-tab) keeps its name, so it type-checks. - Solid output: a bound
hiddenon an element is the plain attribute, so it type-checks. - Template previews on the site no longer show a "Demo form" message for forms the template handles itself.
- In native mode on phones the sidebar's brand showed through at the left edge of the screen under the tab bar.
- Stacked tables (rows as cards on narrow screens) no longer repeat the column row: the header is one line of sort buttons that scrolls sideways, and it is left out when nothing can be sorted or selected.
pm-input,pm-number-inputandpm-phone-input: Enter in the field submits the form, as it does in a native input (a disabled submit button blocks it).pm-progress: the bar no longer sits on a text line with empty space above it.pm-avatar-group: the overlap follows the avatar size, so initials are not covered at small sizes.pm-kanban: tags are on their own line, with the date and owner under them.- React output: boolean attributes of HTML elements are written as booleans (
hidden, nothidden=""). - The markup validator accepts a bound label (
:label,[label]) on icon-only buttons. - Solid pages work with Solid 2. The page started its behaviour in
onMount, which Solid 2 no longer has; it now starts from therefof its root element, which is the same in Solid 1 and 2. - The
behavior.tsanddata.tsof every template compile in a new Angular project. They readdataset.name, which Angular's defaultnoPropertyAccessFromIndexSignaturerejects; they now readdataset['name'].
Tests
tests/templates.test.ts: no template is wider than a 320, 820, 1280 or 1920 px screen, each app page highlights its own navigation item, every state can be shown, and each Orders control changes what it should.tools/check-templates.ts(part ofbun run typecheck) compiles the generated React and Solid pages with their data and behaviour files, strictly.- Inline styles in templates: only
--pm-*variables, at most two per template (packages/mcp/test/patterns.test.ts). tools/check-templates.tsalso compiles the template files with the options a new Angular project adds tostrict(noPropertyAccessFromIndexSignature,noImplicitReturns,noImplicitOverride,noFallthroughCasesInSwitch).
Components
Added
- AI answers as components:
<pm-ai-response>and@prismora/elements/ai. The model in your product can answer with stats, tables, charts, steps, buttons and forms instead of plain text.uiPrompt()is the text for your system prompt; the model writes Markdown with JSON in fenceduiblocks; the element draws it with Prismora elements, in your theme. One typed catalogue (38 components) generates the prompt, the JSON Schema (uiSchema(),uiTool()), the check (checkUi()) and the renderer. Safe by construction: nothing in an answer becomes HTML, only catalogue components and props are drawn, links and pictures are checked (images="off",allowUrl), and buttons and forms only firepm-action. Made for streaming: unfinished Markdown and JSON are drawn as far as they are, a chart or table appears when it is whole, and what is finished is not drawn again. The elements an answer uses are loaded on demand. Guide:/docs/ai-responses; MCP toolsai_ui_kitandvalidate_ai_ui; the AI assistant template answers this way. <pm-kanban>: a board of columns and cards drawn from data (columns,items), so it works the same in every framework. Drag with the mouse, press and hold on a touch screen, or use the keyboard (Space picks up, arrows move within and between columns, Space drops, Escape puts back); every step is announced. Limits per column, an add button,pm-move(cancelable, with the new list),pm-selectandpm-add.<pm-marquee>: logos, testimonials or a ticker that scroll by without end. It copies your items as often as the width needs, pauses under the pointer and on focus, has a pause button for keyboards, runs sideways or upwards, and stays still with reduced motion. It never widens a grid or flex parent.<pm-compare>: a before and after slider for two pictures; a real slider for keyboards and screen readers.<pm-typewriter>: types and deletes a list of phrases inside a headline. Screen readers get the phrases as plain text, it waits while off screen, and with reduced motion it shows the first phrase.<pm-phone-input>: a country picker (names in the page's language) joined to a telephone field. The value is one international number (+14155550123); a pasted+…number sets the country; the length is validated.<pm-cookie-consent>: asks which optional cookies are allowed, with "Accept all" and "Reject all" of equal weight and nothing optional switched on beforehand. Stores the choice (readConsent()), asks again when yourversionchanges, firespm-consent, andshow()reopens it from a footer link.<pm-fab>: a floating action button that becomes a speed dial when you put actions in it (arrows, Escape, outside press). Clear of the home indicator, and above the tab bar of a native phone layout.<pm-collapsible>: one disclosure under a heading, or withpreview-sizea long text cut short with "Show more" (no button when nothing is cut).<pm-status>(a coloured dot with a label, optional pulse) and<pm-result>(the outcome of an action as a whole block: success, error, warning or info, with a code, actions and details).size(sm,lg) onpm-checkbox,pm-switch,pm-textarea,pm-radio-groupandpm-checkbox-group, as on the other fields. In CSS:data-sizeon.pm-check-label, or--pm-check-size,--pm-switch-widthand--pm-switch-height.readonlyonpm-select,pm-sliderandpm-radio-group: the value shows, can be focused and is submitted, and cannot be changed (aria-readonly).hide-labelonpm-checkboxandpm-switch(the label stays for screen readers).pm-radio-groupshows itserrorunder the choices, likepm-checkbox-group. Both are drawn by one function.mobileis a real property on every element that has the attribute:true(native pattern),false(opt out), not set (as the ancestors say).el.mobile = falsewritesmobile="false".
Fixed
- Removing an attribute no longer leaves
nullin the property. Frameworks remove an attribute to say "not set" (value={undefined}in React,:value="undefined"in Vue); Lit then putnullin the property and several components stopped drawing (pm-textarea,pm-input, date and number fields). The property now goes back to what the component starts with. One fix in the base class, for every component. - A
localeorlangthe browser cannot read no longer breaks a component. Calendar, date and time pickers, scheduler, relative time, slider, tables, charts and the format helpers fall back to the page's language, then the browser's. tone,surface,radius,density,motionandelevationdid nothing onpm-calendar,pm-tableandpm-data-table. They do now.pm-time-pickerstopped drawing with a value such as9or2:30 pmset from outside; any time it can read is now shown.- Elements that are not built on Lit have a property for every attribute:
pm-app,pm-toolbar,pm-tab,pm-radio,pm-choice,pm-command-item,pm-form,pm-popover,pm-tooltip,pm-menu,pm-menubar,pm-context-menu,pm-toaster,pm-editor,pm-tour,pm-sortable.el.disabled = trueor Angular's[label]="…"did nothing on them before; only the attribute worked. - The React, Vue and Svelte wrappers (Preact uses the React ones) of
pm-app,pm-form,pm-tabandpm-toasterhad props named like attributes ('mobile-nav','max-tabs','keep-position'); they are camel case like every other prop (mobileNav,maxTabs,keepPosition). Migration: rename them where you used the quoted form. pm-context-menu: settingmenuas a property threw (it had a getter only).menuis now the id, as the attribute is, andmenuElementis the menu it names. Migration: readmenuElementwhere you readmenufor the element.pm-tourstepswas documented as text; it is a list (TourStep[]) in the manifest and the wrappers.<pm-radio>and<pm-choice>could not be made withdocument.createElementonce they were defined (they gave themselves an attribute in their constructor), which is how React, Vue, Solid and Angular make elements: the choice stayed an unknown element and showed its text twice. Found by a new test that makes every element this way.- Context menu: in Firefox and Safari on Linux and macOS, where the menu opens as the button goes down, releasing the button closed it again at once.
- Editor: Ctrl/⌘+B, I and U now work in every browser (Firefox and Safari have no shortcut of their own for all of them), and the editor no longer throws in Firefox inside a disabled
<fieldset>. - Chart: a chart that is drawn the moment it is added to a page no longer raises a "ResizeObserver loop" error (it reached error monitors, and Safari's console).
- Segmented control: it is never wider than its container; many or long options scroll inside it instead of making the page scroll sideways (the sign-up template was 33 px too wide on a 320 px phone).
--pm-sideand--pm-split-minon.pm-split, and--pm-switch-aton.pm-switcher, were ignored (the parts could not read them): the side column was always 18rem and the switcher always folded at 40rem. They work now. Check pages that set these: their columns take the size you asked for.- The message of a field whose error was cleared while typing disappears at once. It used to stay until the next update of the field (often the next click elsewhere), and move the page then.
- A required
pm-radio-groupshows the same mark after its label as every other required field. pm-stepsthat are too narrow for every label keep only the label of the current step on screen (the others stay for screen readers) instead of letting the labels run into each other.pm-segmented fullfills its row also when it has no hint or error.- The content of
pm-menu,pm-dialog,pm-drawer,pm-popover,pm-tooltipandpm-commandno longer shows in the page for a moment before the element's script has run (it could also make a phone page scroll sideways while loading). The base stylesheet hides these tags until they are defined. - A click that takes focus from an empty required field no longer misses its target. The "required" message used to appear during the click and move the button away from the pointer; it now appears when the pointer is released.
- The
descriptionof apm-radioorpm-checkboxin a group is on its own line under the label in every variant, not only in cards. - A link used as a menu item (
<a role="menuitem">inpm-menu) is no longer wider than the menu by its padding. - A property set before an element is defined is applied when it is defined, for every element. A framework that renders before the elements load (a later chunk, or hydration) could set
collapsedonpm-apporvalueonpm-editorand see nothing happen; the elements built on Lit already handled this. - Every attribute of every element is now tested in a browser (
tests/props.test.ts, 1,500 attributes): it has a property, no value throws, the property draws what the attribute draws, removing it restores the element, and it changes something that can be seen. What that found, besides the fixes above: - a read-only field took a value that a script or autofill wrote into its inner control and firedpm-change; a read-onlypm-slidercould still be moved; -pm-segmentkept thearia-labelof alabelthat was removed;pm-appkept the drawer'spopoverattribute on the sidebar after the layout changed;pm-data-tablekept the offsets of columns that were no longer pinned; -pm-description-listdid not redraw its items whenlayoutordividedchanged;pm-avatar-groupdid not take itssizeback from the avatars when it was removed; -pm-navmarked an item withouthrefas the current page;pm-time-pickershowed a value outsideminandmaxas valid when it was written as9:00instead of09:00; -pm-phone-inputkept text that is no number in its field when the value was set from outside; -pm-indicatortreated a square avatar as a round one; the label ofpm-checkbox hide-labelwas still shown; - two elements made from one class shared the same default list (options,columns): changing one changed the other. - a list attribute that held something else (presets="{}"onpm-date-picker) broke the component; it is ignored now, for every list attribute of every component; -pm-stepdid not redraw when itsstatusordisabledchanged;pm-toasterandpm-sortablekept the name of alabelthat was changed or removed; -pm-data-tablestayed in server mode (no sorting or paging of its own, the last error still shown) aftersrcorloaderwas removed. -mobile="false"on apm-context-menudid not keep its menu out of the bottom sheet when the page had native mobile on: the menu stands beside the context menu and followed the page. - What an attribute does when someone uses the element is tested as well (
tests/props-behaviour.test.ts): the attributes a picture cannot show (server data and its field names, timing, what is remembered in the browser, keyboard and pointer behaviour, the value an element reports) each have a check that uses the element and looks at the result. An attribute can no longer be added to the list of exceptions without one. What that found: - a second click on apm-button popovertarget="…"(orcommand="toggle-popover") opened the popover again instead of closing it: the press had already closed it, and the click toggled it back; -auto-currentset on apm-navthat was already on the page (as frameworks set properties) marked nothing; - the documented default ofsummary-titleonpm-formwas not the text it shows ("Please fix 2 fields"). - Header, content and footer are real regions in
pm-card,pm-dialog,pm-drawerandpm-popover: when the height is limited the body scrolls and the header and footer stay where they are (the whole dialog scrolled, and a drawer's footer was not at the bottom). A drawer's header and footer are the dialog's. Scrolling the body of a sheet no longer starts the drag that closes it. - Card media goes edge to edge and is cut to the card's corners; a picture or video is 16:9. New parts on the card:media,header,title,description,body,footer; on dialog and drawer:title,close,body,footer; onpm-result:actions,extra.pm-accordion-itemdocuments itsheadingslot and its parts. - A popover with<header>,.pm-popover-bodyand<footer>is a column whose body scrolls; every popover stays inside the screen's height. - Regions nobody filled take no room: the actions and extra ofpm-result, the actions and icon ofpm-empty-stateandpm-banner, the top row ofpm-composerleft gaps. A custom icon inpm-resulthas the size of the built-in one. - Every component page shows each of its named slots (a card with a picture, a header, content and actions; a drawer with a footer; …), and a test fails when a documented slot is missing from the demo or a slot of a template is not documented. pm-stat: on a right-to-left page "+12.5%" was drawn as "12.5%+" and "$48.2k" as "48.2k$". Value and change keep their own order.pm-tabswith two tabs showed nothing in the second one in Chrome 158: the one panel hidden at the start was left out of the page by the browser (it had no slot) and stayed out when its tab was chosen. The tabs put such a panel back, and a test now chooses every tab of a set of two and of three and looks for the panel's text.pm-tree-select: the panel was as wide as the screen on a desktop. It is as wide as the field, or as its rows when they are longer. A test opens every element of the catalog on a desktop and measures what it put above the page, so a popup sized with a percentage (which is of the screen there) cannot come back.- The size of a file (
pm-file-upload, thebytescolumn of a table) is written one way everywhere: decimal units, in the language of the page ("1.5 kB", "5.2 MB", "1.5 GB"). The table counted in 1024s and the upload list wrote "1430.5 MB" for 1.5 GB. - Tables sort, group and merge cells in their
locale(or the page'slang), not always in the browser's. - Exporting a data table as CSV guards every cell that a spreadsheet would run as a formula, not only text ones.
motion="none"ormotion="reduced"(anddata-motionon an ancestor) now also stops what scripts animate: marquee, typewriter, counting numbers, carousel, chat scrolling, the tour, sorting, back-to-top, a bottom sheet swiped away, page transitions and haptics. Before, only the system setting did;motion="full"allows movement where the system asks for less.
Utilities
Added
@prismora/css/utilities.css(opt-in, 3.4 KB gzip): 273 classes for padding and margin, display and show/hide per screen size, flex and grid, size, backgrounds and borders, corners and shadows, position and overflow, safe areas, interaction (pm-pressable,pm-hover-lift) and effects (pm-glow,pm-gradient-border,pm-shimmer,pm-glass,pm-spotlight, faded edges, dot and grid backdrops). Every value is a theme token.@prismora/elements/utils: 39 helpers with no dependencies, importable one file at a time. Browser (hotkeywithmod+kand sequences,copyText,watchMedia,watchBreakpoint,inView,lockScroll,trapFocus,longPress,swipe), stored state shared between tabs (persisted), formatters (formatCurrency,formatBytes,formatDuration,formatRelative,formatList…), lists (sortBy,groupBy,fuzzyFilter…), files (toCsvsafe against spreadsheet formulas,downloadCsv,downloadJson) and timing (debounce,throttle,sleep).bun tools/inventory.ts [name]: what exists (elements, classes, utilities, helpers) and which templates use it.
Changed
- Styles of markup that only an element's script builds are no longer in
prismora.cssandcore.css(the element carries them); they are still published as@prismora/css/components/<name>.css. This keeps the bundle from growing with every element: ten new elements added 0.3 KB to it.
App shell and native mode
Added
<pm-app>: an app shell element. One markup gives a sidebar on desktops (foldable to icons and remembered withcollapsibleandpersist, orlayout="rail"or"top"), an icon sidebar on tablets and a drawer on phones. With native mode on, tablets get a labelled rail and phones a bottom tab bar. An optional detail pane (aside.pm-app-detail,showDetail()) is a third column, an end drawer or a full screen, depending on the screen. It never moves your elements, so it works in every framework.<pm-app-bar>: the bar above the page. Menu button (nav-toggle) that opens the drawer or folds the sidebar, back button (back), search and action slots. In native mode the page's<h1>is the large title and moves into the bar as you scroll, the back button replaces breadcrumbs, and on phones search gets its own row.- Native mode now changes tablets, not only phones, and is described as what it is: a mode for touch devices. Desktops are identical in both modes.
pm-nav:presentation="list | icons | rail | top | bar", andmax-tabs(default 5): further items go under a "More" tab that opens a sheet. Parents open a flyout in the rail, icon and top presentations..pm-action-bar: a page's main actions, pinned above the tab bar on native phones (with or without the shell)..pm-brand: a brand mark with a name.@prismora/elements/native:autoNative()(native layouts only when the page is installed or in a native shell),isStandalone(),syncThemeColor(),trackKeyboard()(--pm-keyboard-inset),onBack()andhaptic().@prismora/elements/app-transition:viewTransition(update, 'push' | 'pop' | 'tab')for page changes that slide and cross-fade like an app, on view transitions with a plain fallback.appSize()andonAppSize(): the size class of the screen (phone,tablet,desktop).window.Prismora(script-tag build) also hasVERSIONand the helpers above.
Changed
setMobile(true)also sets themobileattribute on<html>, so plain CSS can follow the mode.- The application templates use
<pm-app>and<pm-app-bar>. The class names (.pm-app,.pm-app-side,.pm-app-main,.pm-app-bar,.pm-app-content,.pm-app-menu) keep working without the elements and give the responsive web layout. - The sidebar background now reaches the end of pages taller than the screen.
- The app shell styles moved from
foundation.csstocomponents/app.css(still inprismora.cssandcore.css). Migration: if you loadfoundation.cssalone and use the.pm-appclasses without<pm-app>, also import@prismora/css/components/app.cssandapp-bar.css.
Fixed
- A nav with groups and a tab bar had a list role around items that were not list items.
Surfaces and style controls
Added
- Nothing about a surface is fixed any more. Where the light comes from, how far, soft and dark shadows are, the shadow colour, the border width, and what glass, gradient and neumorphic surfaces are made of are style controls. Each is one custom property that the system reads but never sets, so whatever sets it wins: - in a theme:
shadow: { angle, depth, softness, strength, color },border: { width },glass: { blur, opacity, saturation, sheen, edge, backdrop, tint },gradient: { angle, strength, sheen, from, to },neumorphic: { highlight, curve, light, base }(also per named theme); - in CSS, on the root or on any element withdata-surface(or a component'ssurface):--pm-light-angle,--pm-shadow-depth,--pm-shadow-softness,--pm-shadow-strength,--pm-shadow-ink,--pm-border-width,--pm-glass-*,--pm-gradient-*,--pm-neu-*. The nearest one wins, so one section or one card can differ; - by the people who use an app:ThemeController.tune({ '--pm-shadow-depth': 1.5 })saves it with their other display choices, and the no-flash script applies it before first paint. - One light for everything: elevation shadows, neumorphic highlights and shades, and the sheen of glass and gradient fills all follow
--pm-light-angle.--pm-shadow-x,--pm-shadow-yand--pm-shadow-blurare tokens, so your own shadows can follow it too. - Neumorphic
curve: the face of a surface can be rounded out (convex) or hollowed (concave). STYLE_CONTROLSandSTYLE_COLORSin@prismora/themelist every control with its label, description, range, step and default. The generator, the site's Display settings (Fine-tune), the docs table and the MCPgenerate_themetool are built from that list; use it for your own settings screen.- Generator: sliders and colour fields for every control of the chosen surface. Site: a Fine-tune section in Display settings, and a live playground in the surfaces guide.
tests/style-controls.test.tschecks in Chrome, Firefox and WebKit that every control changes what is drawn on each surface it belongs to, and that shadows have the offsets and blur the numbers say.- Every component and the app shell follow the surface. Before, a surface changed cards, fields and buttons; the sidebar, the app bar, tables, menus, tabs, tracks, sticky headers and about fifty other components painted fixed colours and looked the same on glass or neumorphic as on flat. Now everything a component paints is a surface role, and each surface defines every role: the page (
--pm-sf-page,--pm-sf-page-image), bars and side panels (--pm-sf-region-*), layers above the page (--pm-sf-float-*), recessed tracks (--pm-sf-well,--pm-sf-well-shadow), raised pieces (--pm-sf-raise-bg), quiet, hover and pressed fills (--pm-sf-subtle,--pm-sf-hover,--pm-sf-active), neutral fills (--pm-sf-neutral), a fill that hides what scrolls under it (--pm-sf-opaque) and the five elevation levels (--pm-sf-lift-1to5). The surfaces guide lists them fromSURFACE_TOKENS(@prismora/theme), andRecord<SurfaceToken, string>types a surface of your own. - A surface set on the whole app draws the page: glass has soft colour behind it to show through (
glass.backdrop,--pm-glass-backdrop, 0 for a plain page) and neumorphic has the tone everything is made of (neumorphic.base,--pm-neu-base).class="pm-surface-page"gives a region with its own surface that page. pm-indicator overlap="box | icon | circle": on an icon button the badge sits on the corner of the icon, inside the button (it used to hang over the button's corner and reached the edge of an app bar); on an avatar it sits on the edge of the circle. Worked out from what is wrapped when left off.- The rule is checked, not looked for:
packages/theme/test/surface-contract.test.tsfails on a fixed background or shadow in a component, andtests/surfaces.test.tsopens every component and every template in a browser and fails when anything is still painted around the surface, on the app shell for all five surfaces, and on text contrast under neumorphic and outline.
Changed
- Borders of surfaces, fields, tables and dividers read
--pm-border-width(1px when not set) instead of a fixed 1px, and the overlaps that depend on it (button groups, tab indicators, pinned table columns) follow. - Shadow colours are one colour,
--pm-shadow-ink, at three strengths. Before, the three shadow tokens had slightly different tints; the difference is not visible at their opacity. Migration: if you set--pm-shadow-color,-softor-strongyourself, set--pm-shadow-ink(the colour) and--pm-shadow-strength(how much of it) instead: the three tokens are worked out again wherever a surface is set, so a value written over them does not reach nested surfaces. - The generator showed a glass blur of 16 and a tint of 60 when none was set; the real defaults are 18 and 58.
htmland the app shell paint--pm-sf-pageinstead of--pm-color-bg-canvas. Flat, outline and gradient look as before; on glass and neumorphic the page changes with the surface. Migration: a page background of your own onhtml,bodyor.pm-appstill wins. If you set--pm-app-side-bgor--pm-app-bar-bgthey still win too.- The neutral tone's soft fills (
tone="neutral"badges, buttons, avatars) come from the surface (--pm-sf-neutral,--pm-sf-hover,--pm-sf-active). Same colours as before on flat, outline and gradient; on glass and neumorphic they now show (on dark neumorphic they were the page's own colour). elevation="1"to"5"draw the surface's own shadow for that level (--pm-sf-lift-N): on neumorphic the lit and shaded pair reaches further, instead of a drop shadow replacing it.- A named theme always writes its surface tokens again (they are worked out from the theme's own colours).
- Component CSS no longer reads
--pm-color-bg-*or--pm-elevation-*for what it paints. The tokens still exist for your own CSS. Migration: if you restyled a component by overriding--pm-color-bg-mutedor--pm-color-bg-hoveron it, override the role instead (--pm-sf-well,--pm-sf-hover). - A named theme inside a surface is drawn in that surface.
<div data-theme="ocean">insidedata-surface="glass"used to fall back to the theme's own surface (flat). It keeps the surrounding one unless the theme config names asurface. - The fallbacks for people and browsers that cannot have see-through surfaces (no
backdrop-filter, "reduce transparency", "more contrast") now always win over a theme: they lost to a named theme before. - A recessed track always has its shadow (
--pm-sf-wellwith--pm-sf-well-shadow): skeletons, images that are loading, code, meters and file thumbnails were invisible on neumorphic and outline. Fills that are not tracks (chat bubbles, counts, a read-only field, a group row) use--pm-sf-neutral. - Panels inside a container (a table's frame, the scheduler, transfer lists, the menubar,
details, choice cards, file rows) have the surface's own shadow for that (--pm-sf-region-shadow): raised on neumorphic, edged on glass, nothing on flat and outline. - Outline: a raised piece (switch thumb, slider thumb, selected segment) no longer gets a ring that doubled the border of solid buttons.
Fixed
- The frozen-column shadow of a data table was a fixed black; it now uses the theme's shadow colour.
- Sticky table headers, footers and pinned columns are opaque on every surface. On outline, glass and neumorphic the rows showed through them while scrolling.
- A card with
hoverlost its shadow on surfaces whose lift isnone(the whole declaration was invalid). - Tested: no shadow that can be
noneis one of several in a list, and every well has its shadow. - Sliders in the generator and the icons page filled half their track whatever the value.
Size
Changed
- Source comments no longer ship in the CSS files or inside the elements' stylesheets.
prismora.csswent from 43.5 KB to 37.4 KB gzip including the new app shell,foundation.cssfrom 12.2 KB to 9.9 KB, and every per-element import is 0.6 to 1.6 KB smaller (one button with Lit: 11 KB). - Style controls and the surface contract (what a well, a neutral fill, an inner panel, an opaque layer and a raised control are made of, on every surface) cost 1.1 KB in
theme.css(now 6.4 KB gzip). Components read those tokens and carry no rule per surface any more, so the bundles did not grow with it (see the sizes below). - The all-in-one
prismora.standalone.jsheld Lit's development build (it logged "Lit is in dev mode" on every page that used the script tag). It is built with the production build now and is 181 KB gzip instead of 187 (it holds every element; AI answers added 14 KB). The build fails if the development build gets in again. Pages that import single elements are not affected:<pm-ai-response>loads the elements an answer uses on demand. - The CSS files that ship have no indentation or line breaks either (
tools/css-minify.ts, tested):prismora.cssis 38.7 KB gzip with everything this release added,core.css32.2 KB. Class names, custom properties and the order of rules are untouched. - A page that imports single elements grew by 0.3 to 0.6 KB again (one button with Lit: 11.6 KB), for fixes every element needed. The largest part (0.25 KB): an attribute that is removed puts its property back to what it was at the start, and a list attribute that does not hold a list is ignored (both in the base class, for every element). The markup of choice groups left the form-control base (
choice-group.ts), so a page with one input or one switch does not carry it. - The size budgets of the tests (
tests/budget.test.ts) were lowered to the sizes above, so a later change cannot quietly take the savings back.
Icons
Added
- Over 1,100 icons (was 119) in 23 categories: navigation, arrows, actions, status, files, communication, people, security, commerce and finance, charts and data, time, media, devices, development, text editing, layout, travel and maps, home, health, education, weather, food and objects. Drawn by Lucide (ISC).
@prismora/icons/brands: 136 brand marks (GitHub, GitLab, Google, Stripe, Visa, PayPal, Discord, React, Vue…) from Simple Icons (CC0). They register and render like any other icon.@prismora/icons/meta:ICON_GROUPS,ICON_WORDS(search words: "delete" findstrash) andBRAND_ICONS, for icon pickers.iconExportName('chevron-down')gives the export name.- The icons page has categories, search by meaning, and a brands tab.
Changed
- Every icon is now the Lucide drawing of the same name, so the 119 existing icons look slightly different. All names and exports are unchanged.
importandpackageare exported asimportIconandpackageIcon. - Licences are stated: Lucide's licence text ships in the icons package and
NOTICE.mdlists third-party work.
Site
- Pages load a fraction of what they did. Measured on the built site (gzip): the home page's HTML went from 53 KB to 21 KB and the script it starts with from about 567 KB to 191 KB; a docs page starts with about 114 KB in place of 614 KB, a component page with 260 KB in place of 572 KB. What changed: - the showcase themes are one cached stylesheet (
/site-themes/<hash>.css, 14 KB) and no longer sit inside every page and every page's data file (each of the 295 data files went from about 160 KB to about 1 KB); - a page loads the elements it shows ($lib/elements.ts, from the manifest) and not all 119; the rest follow in the background after the first in-site navigation; - the header's 16 icons are copies checked against@prismora/iconsat build time, so the 1,111-icon file is loaded only where icons are shown; search data, template lists and page sources are read on the server; - only the default font pairing is in the first stylesheet (38 font faces in place of 100); the others load after start-up, or at once for a visitor who saved another pairing; - the first four pictures of a gallery load eagerly, the first with high priority. - A first visit no longer downloads the whole site. The service worker fetched every page and file for offline use, over 130 MB. It now keeps only what was visited: build files the first time they are used, pages when read.
- New guide: AI responses (
/docs/ai-responses), with a live demo that streams an answer next to the text the model writes. - Header: the Icons link is gone (it is in the docs menu, search and footer), and GitHub is an icon button.
- The components page shows the components. Each card has a picture of the component (light and dark), as the templates gallery does, in place of a text-only card. The pictures are screenshots of each component's demo (
bun run build:thumbs components), about 5 KB each and loaded as they scroll into view; a test fails when a demo changes without its picture. - Component previews like the templates. Every component page has the preview toolbar: Desktop, Tablet and Phone, native app or responsive web, light or dark, appearance (theme, surface, corners, density) and full screen. The Tablet and Phone previews run the demo in a frame of that size, so it behaves as on that device (a dialog is a bottom sheet on a native phone), and the playground's props apply there too. Full screen opens the demo alone (
/components/<name>/preview) with the chosen options and props in its address. - Versions. The header has a version menu. This site documents the latest version; each earlier release line (0.1, …) keeps a frozen copy of the whole site at its own address (
v0-1.prismora.design), as it was at the last release of that line. A copy says on every page that it documents an earlier version and links to the same page of the latest site, is kept out of search engines, and learns of newer versions fromprismora.design/versions.json. Versioning lists the copies;docs/RELEASING.mdhas the steps for a new line. - Template pages: the "Native app | Responsive web" choice shows with the Phone and Tablet previews, where it changes the layout, and the Desktop preview says why and links to both.
- The Mobile guide is rewritten around the web and native layouts of each screen size, the app shell, the helpers and the ways to ship as an app.
- New docs pages: Changelog (this file), Upgrade guide, Versioning and stability, Browser support, Server rendering, CDN and script tags and Contributing.
- Template gallery: search (titles, descriptions and tags) and a category filter with counts.
- The site's default surface is neumorphic, and the site itself is drawn with the surface in use: header, footer, sidebars, code blocks, search, preview stages, generator panels and the icon grid are regions, wells, floats and raised controls of the surface contract, in light and dark. Before, most of it was painted with fixed colours and stayed flat whatever was chosen. A saved choice in Display settings still wins; component and template previews follow the site's surface unless one is picked in their toolbar. - Code blocks are wells of the surface, with syntax colours that keep 4.5:1 on every surface. - Display settings is a
pm-drawer: the title and the close button stay at the top, the fields scroll, and "Reset to defaults" is in the footer. On a phone it is a bottom sheet. - The closed docs and components menu on a phone was still there: visible with reduced motion, and reachable by keyboard off screen otherwise. It is hidden when closed. - The surface contract test fails when a style of the site paints a background, a line or a shadow with a fixed colour, and a browser check looks at the header, the docs sidebar and a code block on every surface. - The components page has the same search and filter as the template gallery (one component,
GalleryFilter): every word of a search has to match, categories show how many components match, and nothing found reads the same on both. The numbers agree: the heading, "All" and the cards count components; the two pages of CSS classes (typography, layout) are a group of their own. It said "101 components" above "103 shown". - Utilities page: sticky side column, pane, table of contents and placeholder art.
- Footer: the version (linked to the changelog), Discussions, and the project pages.
- Security headers for the site (
_headers): no framing by other origins, HSTS,nosniff, a referrer policy and a permissions policy; hashed files are cached for a year.
Packages
Fixed
@prismora/react(and Preact): props were lost on the first render. The wrapper loads its element in the browser after the first render, and React wrote the props of a tag it did not know yet as attributes:iconStartbecameiconstart,hideLabelbecamehidelabel, androwsbecame the text "[object Object]". So on a first page load icons were missing, hidden labels were shown and tables were empty, until something rendered again. The wrapper now writes the element's real attribute names (icon-start), which is also right in server-rendered HTML, and sets objects, arrays, functions andfalseas properties once the element is defined.tests/react-wrapper.test.tsrenders before the elements are defined and checks both. (+0.25 KB.)@prismora/angularis now compiled with Angular 20 and its peer range is>=20. It was compiled with Angular 22 while claiming>=17, and an Angular app cannot link a library compiled with a newer Angular than its own. Migration: Angular 17 to 19 apps use the elements directly (@prismora/elementswithCUSTOM_ELEMENTS_SCHEMA); the package only adds forms integration.- Two copies of
@prismora/elementson one page (two bundles, a CDN script next to an npm build, or two versions) now share the icon registry, element ids, phone mode and open toasts. Before, icons registered through one copy did not show in elements registered by the other, and ids could repeat. Two different versions log one warning. - Read-only
pm-checkboxandpm-switchno longer toggle (they did, despite thereadonlyattribute), and setaria-readonly. - Styles that read tokens which do not exist now read the real ones, so they follow the theme: easing (
--pm-ease-decelerate), shadows (--pm-elevation-*),--pm-font-weight-regular,--pm-color-bg-raised. Visible changes: the tour card and the selected scheduler view button have their shadow, and filter inputs in a data-table header are regular weight. custom-elements.jsonlists modules in a stable order.- Vue
v-modeland Sveltebind:valuedid not followCombobox,DatePicker,TimePicker,RadioGroupandCheckboxGroup. The wrappers listened forpm-input, which these controls never fire (a choice ispm-change). They listen forpm-changenow, andpm-inputis no longer listed as an event of these controls or ofpm-checkboxandpm-switch. Migration: anonPmInput/@pm-inputhandler on one of them never ran; usepm-change. - Vue and Svelte wrote multi-word props into server-rendered HTML under their camel-case name (
iconStart="…", which a browser reads asiconstart), so the element saw them only after hydration, andpm-app, which lays itself out from its attributes in CSS, was drawn with the wrong navigation until then. Text and numbers now go out as the element's attributes (icon-start,mobile-nav,max-tabs), as in the React wrapper. - Svelte: a prop with a name of more than one word that is not text or a number never reached its element.
<Input hideLabel />,<Slider showValue />or<DataTable pageSizes={[10, 20]} />did nothing: Svelte lowercases the names it spreads on an element (hidelabel), and no element reads those. Booleans now go out as the element's attribute (hide-label), lists, objects and functions are set as properties. Found by the new browser test of the wrappers (tests/wrappers.test.ts). - Vue: a multi-word boolean (
hideLabel) was written into server-rendered HTML ashidelabel="true"; it ishide-labelnow. A boolean that is on unless switched off (columnMenu) keeps itsfalse. - Vue:
:mobile="false"was dropped (it means "off here", not "not set"). - The Angular value accessor writes
0to a number control and[]to a list control when the model isnull(it wrote an empty text to every control).
Added
- Typed events. Every element exports the events it fires with the type of each
detail(PmInputEvents,PmDataTableEvents<Row>…), andEventDetail<PmInput, 'pm-change'>reads one. Handlers in the React, Vue, Svelte and Solid wrappers are typed by it (onPmChange={(e) => e.detail.value}needs no cast and a wrong field is an error),components.jsonand the MCP server carry the detail type, and the build fails when the documented events and the typed ones differ. Migration (TypeScript only): a subclass ofPmElementthat callsthis.emit()passes its events (extends PmElement<{ 'my-event': { id: string } }>); a handler annotated with a detail the element does not fire is now an error. - Typed data props in every wrapper.
stepsofTourisTourStep[],columnsofDataTableisDataTableColumn[], notunknown[]: the types are read from the element classes, never copied. Props that have no attribute (Combobox.options,loader,renderDetail,isDateDisabled…) exist in React, Vue, Svelte and Solid. Vuev-modelhas the type of the value (string[]forTransfer,numberforRating). 34 data types (ComboboxOption,TreeNode,ChartSeries…) can be imported from each wrapper package. document.querySelector('pm-button'),createElement('pm-toast')andclosest('pm-dialog')return the element's class: every element declares its tag inHTMLElementTagNameMap.languageofpm-code-blockanderror-correctionofpm-qr-codeare listed with their values (they were typed as free text).ThemeControllerstate is typed with the system's values:set({ surface: 'glass', density: 'compact' })completes in the editor (a name of your own is still accepted).- Lists that were only types before are exported, so an app can build a picker from them:
MOTION_LEVELS(@prismora/theme),HARMONIES(@prismora/color),PRESETS(@prismora/motion). --pm-space-2-5(0.625rem) is a real spacing token; thirteen components already used that step through a fallback.VERSIONexport in@prismora/elements(also@prismora/elements/version),theme,color,tokens,motion,iconsandmcp/tools.deprecated(what, since, use)in@prismora/elements: the warn-once helper behind every deprecation.@prismora/theme/browserhas type declarations;@prismora/mcpdeclares Node 20+.
Changed
@prismora/elementsno longer depends on@prismora/motion(it never imported it), and marks fewer files as having side effects, so bundlers drop more unused code.define()from@prismora/elementsis marked deprecated (it has done nothing since elements began registering on import). Useimport '@prismora/elements/define'.
Project
- The browser suites run in Firefox and WebKit as well as Chrome (
BROWSER=firefox bun test tests/<suite>.test.ts), with a CI job for both. The first runs found the four bugs listed under "Fixed" below. - A public API contract test (
packages/elements/test/contract.test.ts): element tags, attributes, events, slots and parts, package exports and every--pm-*token are snapshotted, and a token that is read but never defined fails. bun run packnow imports every packed entry in Node without a DOM (what a server-rendered app does at start-up) and type-checks the packed declarations withskipLibCheckoff.- Behaviour tests for dialog, tooltip, checkbox, switch, card, button group, skeleton and spinner.
tests/app.test.ts: the app shell at phone, tablet and desktop widths in web and native mode (layout, drawer, tab bar and "More", collapsing title, pinned actions, detail pane, focus), with axe checks of every state.ROADMAP.mdreplaces the old plan document; build output of the example apps is no longer committed.- Continuous integration (
.github/workflows/ci.yml) on every push and pull request: build, generated files up to date, types, lint, unit tests, packed-package checks, then every browser suite in its own job. - Nothing is typed twice. Lists that several places need (surfaces, frameworks, motion levels, harmonies, template categories, style controls) are one
as constarray each, the type comes from the array, and the site, the CLI and the MCP server import it. Where a copy cannot be avoided (READMEs, the CI matrix, registries),packages/mcp/test/drift.test.tscompares the copies and says which file to edit. It found and fixed: a validator that required a label on 5 of 23 form controls,llms.txtwithout Angular and without the style controls, a documentedprismora mcpcommand that does not exist, and two browser suites missing from CI. bun run typecheckalso covers the browser tests intests/and the CLI (nothing checked them), withnoImplicitOverrideandnoFallthroughCasesInSwitchon for every package.bun run checkincludes the site's type check and the packed-package check, as CI does. One Bun version for local work and CI (packageManager).validate_markup(MCP) andprismora validateunderstand Angular bindings ([prop],(event),*directive).- The release workflow checks that every package has the tag's version and that the changelog has a section for it (
tools/release-check.ts), and creates the GitHub Release from that section.tools/version.tsdates the "Unreleased" section. bun run lint: Biome with a small rule set (unused code, duplicate keys, unreachable code), no formatting. It found a site test whose duplicate key hid an assertion.- Community files:
CONTRIBUTING.md,CODE_OF_CONDUCT.md,SECURITY.md, issue forms (bug, feature, new element or template, docs), a pull request template, discussion forms, Dependabot,CODEOWNERS,.editorconfigand.gitattributes. - A template's markup may not depend on the day it is built (tested): thumbnails and generated files stay current.
0.1.3 (2026-12-03)
Found by testing 17 fresh framework apps (tools/test-apps.ts).
Added
initsupports Next.js Pages Router, React Router 7, TanStack Start, Preact, SolidStart, Qwik and Lit, and installs@prismora/cli.- Generated pages register the icons they use.
Fixed
- Solid 2 typings; events are written
onPm-*(Solid 2 removedon:). - Fonts are exported as
@prismora/fonts/pairing-*.css.
0.1.2 (2026-12-03)
Fixed
- MIT licence field on the framework wrapper packages.
0.1.1 (2026-12-03)
- First release through GitHub Actions with npm trusted publishing and provenance. No code changes.
0.1.0 (2026-12-03)
- First release: theme generator, five surfaces, motion, CSS, web components, framework wrappers, icons, fonts, CLI and MCP server.