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

Onboarding wizard

Set-up in four checked steps: a workspace name whose address is checked as you type, invitations, preferences, and a review before creating.

Live preview

Full screen

Desktops have one layout. On phones and tablets the same markup can also lay itself out like a native app: or .

Code

Copy it into a page of your app. Load the CSS and register the components once (see framework setup); links point at routes like /orders that you replace with your own.

This template works: the page renders from data.ts (sample rows, replace them with your API) and behavior.ts makes its controls work. The behaviour file is the same in every framework.

<script type="module"> import '@prismora/css'; import '@prismora/elements/button'; import '@prismora/elements/card'; import '@prismora/elements/checkbox-group'; import '@prismora/elements/description-list'; import '@prismora/elements/drawer'; import '@prismora/elements/icon'; import '@prismora/elements/input'; import '@prismora/elements/list'; import '@prismora/elements/radio-group'; import '@prismora/elements/result'; import '@prismora/elements/segmented'; import '@prismora/elements/select'; import '@prismora/elements/steps'; import '@prismora/elements/switch'; import '@prismora/elements/theme-settings'; import '@prismora/elements/theme-switch'; import { registerIcons } from '@prismora/elements/icon'; import { arrowLeft, arrowRight, check, mail, plus, settings, zap } from '@prismora/icons'; import { data } from './prismora/onboarding/data'; import { setup } from './prismora/onboarding/behavior'; registerIcons([arrowLeft, arrowRight, check, mail, plus, settings, zap]); setup(document.body, data); </script> <main class="pm-centered-page" style="--pm-container: 40rem"> <a href="/" class="pm-brand pm-justify-center"> <pm-icon name="zap"></pm-icon> <span class="pm-brand-name">Lumen</span> </a> <h1 class="pm-visually-hidden">Set up your workspace</h1> <div class="pm-stack" data-ref="flow"> <pm-steps label="Set-up steps" current="0" clickable data-ref="steps"> <pm-step label="Workspace"></pm-step> <pm-step label="Team"></pm-step> <pm-step label="Preferences"></pm-step> <pm-step label="Review"></pm-step> </pm-steps> <pm-card> <form class="pm-stack" novalidate data-step="0"> <div class="pm-stack pm-gap-1"> <h2 class="pm-text-2xl pm-heading">Name your workspace</h2> <p class="pm-muted">It is where your team's projects live. You can change it later.</p> </div> <pm-input label="Workspace name" autocomplete="organization" placeholder="Analytical Engines" required data-ref="name"></pm-input> <pm-input label="Address" autocomplete="off" required hint="Lower-case letters, digits and hyphens." data-ref="slug"> <span slot="start" class="pm-muted">lumen.example/</span> </pm-input> <div class="pm-stack pm-gap-2"> <span class="pm-text-sm pm-weight-medium" aria-hidden="true">People in your team</span> <pm-segmented label="People in your team" full value="2-10" data-ref="size"> <pm-segment value="1">1</pm-segment> <pm-segment value="2-10">2–10</pm-segment> <pm-segment value="11-50">11–50</pm-segment> <pm-segment value="51+">51+</pm-segment> </pm-segmented> </div> <div class="pm-cluster pm-justify-end"> <pm-button type="submit" icon-end="arrow-right" data-ref="next-0">Continue</pm-button> </div> </form> <form class="pm-stack" novalidate data-step="1" hidden> <div class="pm-stack pm-gap-1"> <h2 class="pm-text-2xl pm-heading">Invite your team</h2> <p class="pm-muted">Up to 5 people now, more from the Team page later.</p> </div> <div class="pm-cluster pm-items-start"> <pm-input class="pm-grow" label="Email of a colleague" hide-label type="email" autocomplete="off" placeholder="[email protected]" icon-start="mail" data-ref="invite"></pm-input> <pm-select label="Role" hide-label options='[{"value":"member","label":"Member"},{"value":"admin","label":"Admin"},{"value":"viewer","label":"Viewer"}]' value="member" data-ref="role"></pm-select> <pm-button variant="outline" tone="neutral" icon-start="plus" data-action="add">Add</pm-button> </div> <pm-list bordered divided label="People to invite" data-ref="invites" hidden></pm-list> <p class="pm-text-sm pm-muted" data-ref="no-invites">Nobody yet. You can also do this later.</p> <div class="pm-cluster pm-justify-between"> <pm-button variant="ghost" tone="neutral" icon-start="arrow-left" data-action="back">Back</pm-button> <pm-button type="submit" icon-end="arrow-right" data-ref="next-1">Skip for now</pm-button> </div> </form> <form class="pm-stack" novalidate data-step="2" hidden> <div class="pm-stack pm-gap-1"> <h2 class="pm-text-2xl pm-heading">Make it yours</h2> <p class="pm-muted">We set up the first screens for what you choose.</p> </div> <pm-checkbox-group label="What will you use Lumen for?" variant="card" value="roadmap,tasks" data-ref="use"> <pm-choice value="roadmap" description="Plan quarters and share them">Roadmaps</pm-choice> <pm-choice value="tasks" description="Boards, sprints and due dates">Tasks</pm-choice> <pm-choice value="reports" description="Numbers for the weekly review">Reports</pm-choice> <pm-choice value="clients" description="Projects you share with customers">Client work</pm-choice> </pm-checkbox-group> <pm-radio-group label="Appearance" value="system" data-ref="theme"> <pm-radio value="system" description="Light by day, dark by night">Same as my device</pm-radio> <pm-radio value="light" description="Always light">Light</pm-radio> <pm-radio value="dark" description="Always dark">Dark</pm-radio> </pm-radio-group> <pm-switch label="Send me a summary every Monday" checked data-ref="summary"></pm-switch> <div class="pm-cluster pm-justify-between"> <pm-button variant="ghost" tone="neutral" icon-start="arrow-left" data-action="back">Back</pm-button> <pm-button type="submit" icon-end="arrow-right">Continue</pm-button> </div> </form> <form class="pm-stack" novalidate data-step="3" hidden> <div class="pm-stack pm-gap-1"> <h2 class="pm-text-2xl pm-heading">Check and create</h2> <p class="pm-muted">Open a step above to change something.</p> </div> <pm-description-list divided label="Your workspace"> <pm-description-item label="Name"> <span data-ref="sum-name"></span> </pm-description-item> <pm-description-item label="Address"> <span data-ref="sum-slug"></span> </pm-description-item> <pm-description-item label="People"> <span data-ref="sum-size"></span> </pm-description-item> <pm-description-item label="Invitations"> <span data-ref="sum-invites"></span> </pm-description-item> <pm-description-item label="Used for"> <span data-ref="sum-use"></span> </pm-description-item> <pm-description-item label="Appearance"> <span data-ref="sum-theme"></span> </pm-description-item> <pm-description-item label="Monday summary"> <span data-ref="sum-summary"></span> </pm-description-item> </pm-description-list> <div class="pm-cluster pm-justify-between"> <pm-button variant="ghost" tone="neutral" icon-start="arrow-left" data-action="back">Back</pm-button> <pm-button type="submit" size="lg" icon-start="check" data-ref="create">Create workspace</pm-button> </div> </form> </pm-card> </div> <pm-result status="success" heading="Your workspace is ready" heading-level="2" data-ref="done" hidden> <pm-button href="/dashboard" icon-end="arrow-right">Open the workspace</pm-button> </pm-result> </main> <div class="pm-display-corner"> <pm-theme-switch size="sm" class="pm-site-wide" variant="toggle"></pm-theme-switch> <pm-button size="sm" variant="ghost" tone="neutral" icon icon-start="settings" label="Display settings" commandfor="display-settings" command="--open"></pm-button> </div> <pm-drawer id="display-settings" heading="Display settings" description="Saved in this browser." side="end"> <pm-theme-settings></pm-theme-settings> </pm-drawer>

With the CLI

npx @prismora/cli add onboarding --write

Writes the page into your routes folder and both files into prismora/onboarding/.

With an AI agent (MCP)

scaffold_page({ pattern: "onboarding", framework: "html" })

Components in this template