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

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-svelte 7 and @sveltejs/adapter-static 4; TypeScript 6 across the repo; Astro 7 in its example; @vitejs/plugin-react 6; @sveltejs/package 3 for @prismora/svelte; zod 4 for @prismora/mcp; GitHub Actions checkout and setup-node v7. Their configuration moved from svelte.config.js into vite.config.ts and $lib became #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.json and 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/react accepts 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/svelte ships its components as plain JavaScript (the types stay in the .svelte.d.ts files 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 (an Input in a Card).
  • 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 *.css types (Next.js 15) failed to build with Cannot find module or type declarations.
  • @prismora/angular is 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-strength and --pm-neu-highlight still scale both.
  • Wherever the standard and the -webkit- backdrop-filter are both written, the standard one comes last. Vite 8's CSS minifier keeps only the last of the two when their value is a var(), 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-block sits 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, and wrap sets where it starts.
  • A theme scoped to part of a page (data-theme on an element, or buildThemeCss with a selector) keeps the colour scheme around it. It reset it to light 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-raise and --pm-sf-line-press: the shadow of a small piece drawn by its line, and of the same piece when pressed. none on 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 is none elsewhere.
  • Surface token --pm-sf-groove-lit: the lit edge under a separator, which engraves it on neumorphic (transparent elsewhere).
  • 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, or 0.625rem on 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 (1 where 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-switch is md by default in both variants.
  • size="xs" and size="xl" are drawn on text fields, selects, checkboxes, radios, switches and the phone field; they were accepted but drawn as md.

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-table and pm-data-table scrolling: - A max-height the 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-table scrolling: 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-reached fires only on a vertical scroll near the end (no longer on sideways scrolls of a table without max-height). max-height no longer applies in the narrow card layout (cards flow with the page).
  • pm-data-table: column resize draws once per frame and fires no pm-column-resize for a click without a drag; other columns keep their width when one is resized after a persist restore. 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-label on carousel, calendar and pagination, decrease-label / increase-label on number input.
  • pm-data-table documents pm-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-form when required and empty, and have checkValidity(), reportValidity(), validate(), validity, validationMessage and form, like the other form controls (pm-form skipped 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 have hide-label.
  • Every control with several values (checkbox group, toggle group, combobox with multiple, tree select, transfer) has a comma-joined value (what is submitted) and a values list, and pm-change sends both.
  • Changed: pm-transfer, and pm-tree-select with multiple, now give value and pm-change detail.value as a comma-separated string; the list is in values / 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-label and cancel-label; toggle group and inline edit reflect required.
  • Changed: pm-date-picker, pm-time-picker and pm-color-picker open and close with show() / hide() / toggle(); their open() method is gone and open is 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: an open property, show(), hide(), toggle(), and pm-open / pm-close. Context menu has hide() and pm-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 (placement still 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, motion and elevation on the element, like every other component.
  • More names for translation: close-label on dialog and drawer, dismiss-label on alert, today-label, clear-label and presets-label on date picker. Fab reflects variant.

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 a ThemeController to 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.
  • Autoplay is complete: paused (reflected), play(), stop() and pm-toggle, with pause-label and play-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

  • ThemeController animates 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), blur and none. Without a choice it is circle after a click and fade otherwise, as before. THEME_TRANSITIONS lists them. Nothing moves under reduced motion or data-motion reduced/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 with prismora init already 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/vue in 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 is pm-code-block, colours are pm-color-picker, the generator's choices are segmented controls, menus and cards, Display settings is pm-theme-settings, the icon details are a pm-dialog with copy buttons, the FAQ and Fine-tune are pm-details, and the docs tables are pm-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-fab and .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-recolour turns 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-shadow for 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-block keeps its well before it is defined, so prerendered code does not jump.
  • pm-theme-settings takes defaultLabels: what the empty choice of a setting says (Theme default (glass)).