A coffee shop page and a staff panel, each a separate React root with its own PrimeReact theme. The shop uses Aura in the default mode. The staff panel uses Lara with an indigo primary color in isolated mode.
Change the season color in the shop header and only the shop changes. Do the same in the staff panel and only the panel changes. The panel's dialog opens over the whole page and still uses the panel's theme.
npm install
npm run devsrc/main.tsxrenders the two apps. The staff panel'sPrimeReactProvidergetsisolation={withIsolation({ key: 'staff' })}.src/ShopApp.tsxchanges the shop color withupdatePrimaryPalettefrom@primeuix/themes.src/StaffPanel.tsxchanges the panel color through its own theme:getActionsInstance(useIsolation().theme).
Read more in Running two PrimeUI apps on one page.