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

Upgrade guide

How to move to a new version, and the few things each version asks you to check.

How to upgrade

npx @prismora/cli update # every @prismora/* package to the latest version, then your theme CSS is rebuilt npx @prismora/cli doctor # one version everywhere, no duplicate copies, styles and elements wired in

update uses your package manager and keeps all packages on one version. Then read the section for the version you moved to below, build, and look at your pages once in light and dark. The full list of changes is in the changelog.

0.1 to 0.2

Most projects need no change. Check these six points.

Scripts that run prismora init

Without a terminal, init now needs --yes to write files. With --json alone it prints the plan and exits with code 1.

# before npx @prismora/cli init --json --framework vue # now npx @prismora/cli init --yes --json --framework vue

App shell styles with foundation.css alone

The app shell styles moved out of foundation.css. Nothing changes if you load prismora.css or core.css, or if you use the new <pm-app> element (it brings its styles). Only if you load foundation.css alone and write the .pm-app classes by hand, add:

import '@prismora/css/foundation.css'; import '@prismora/css/components/app.css'; import '@prismora/css/components/app-bar.css';

Widths of .pm-split and .pm-switcher

--pm-side, --pm-split-min and --pm-switch-at were ignored in 0.1: the side column was always 18rem and the switcher always folded at 40rem. They work now, so a page that sets them gets the size it asked for. Look at those pages once.

Angular 17 to 19

@prismora/angular is compiled with Angular 20 and needs Angular 20 or newer (an Angular app cannot link a library compiled with a newer Angular). On Angular 17 to 19, use the elements directly: they work in every Angular version, the package only adds forms integration.

import { CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core'; import '@prismora/elements/button'; @Component({ selector: 'app-root', schemas: [CUSTOM_ELEMENTS_SCHEMA], template: '<pm-button>Save</pm-button>' }) export class App {}

Angular: ng build stops at the 1 MB limit

There are more elements in 0.2, and all of them in the first bundle is more than a new Angular project allows. If src/main.ts has import '@prismora/elements/define';, replace it with this line at the end of the file (what prismora init now writes), or with one import per element you use.

void import('@prismora/elements/define');

Icons look slightly different

Every icon is now the Lucide drawing of the same name. All names from 0.1 still exist, so nothing breaks, but compare a screen with many icons. There are over 1,100 icons now, in 23 categories, plus brand marks in @prismora/icons/brands.

define() is deprecated

It has done nothing since elements began registering when imported. It still works and warns once.

// before import { define } from '@prismora/elements'; define(); // now import '@prismora/elements/define'; // or import only the elements you use

Fixes you may notice

  • Read-only pm-checkbox and pm-switch no longer toggle.
  • [hidden] always hides, also on an element with a layout class such as pm-cluster.
  • pm-tabs orientation="vertical" becomes a row of tabs on screens narrower than 40rem.
  • A required pm-radio-group shows the same mark after its label as other required fields.
  • Running prismora init again keeps your theme instead of resetting it to the default.

If something broke

Run npx @prismora/cli doctor first: it finds mixed versions and duplicate copies, the usual causes. Then see troubleshooting, or open an issue with the smallest markup that shows it.