Upgrade guide
How to move to a new version, and the few things each version asks you to check.
How to upgrade
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.
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:
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.
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.
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.
Fixes you may notice
- Read-only
pm-checkboxandpm-switchno longer toggle. [hidden]always hides, also on an element with a layout class such aspm-cluster.pm-tabs orientation="vertical"becomes a row of tabs on screens narrower than 40rem.- A required
pm-radio-groupshows the same mark after its label as other required fields. - Running
prismora initagain 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.