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

Sign in

Sign-in beside a brand panel: checked fields, a failed and a successful attempt, a single sign-on step for company domains, and a passkey check.

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/alert'; import '@prismora/elements/avatar'; import '@prismora/elements/button'; import '@prismora/elements/checkbox'; import '@prismora/elements/divider'; import '@prismora/elements/drawer'; import '@prismora/elements/icon'; import '@prismora/elements/input'; import '@prismora/elements/result'; import '@prismora/elements/theme-settings'; import '@prismora/elements/theme-switch'; import { registerIcons } from '@prismora/elements/icon'; import { arrowRight, building, fingerprint, globe, lock, mail, settings, shieldCheck, zap } from '@prismora/icons'; import { data } from './prismora/sign-in/data'; import { setup } from './prismora/sign-in/behavior'; registerIcons([arrowRight, building, fingerprint, globe, lock, mail, settings, shieldCheck, zap]); setup(document.body, data); </script> <div class="pm-auth"> <aside class="pm-auth-aside" aria-label="About Lumen"> <a href="/" class="pm-brand"> <pm-icon name="zap"></pm-icon> <span class="pm-brand-name">Lumen</span> </a> <figure class="pm-quote"> <blockquote class="pm-text-2xl pm-weight-medium">“We replaced three tools, and the planning meeting got thirty minutes shorter.”</blockquote> <figcaption> <pm-avatar name="Grace Hopper"></pm-avatar> <span class="pm-stack pm-gap-0"> <strong>Grace Hopper</strong> <span class="pm-muted">VP Product, Northwind</span> </span> </figcaption> </figure> <ul class="pm-stack pm-gap-3 pm-text-sm" role="list"> <li class="pm-cluster"> <pm-icon name="shield-check" class="pm-text-accent"></pm-icon> <span class="pm-grow">Single sign-on, passkeys and two-step verification</span> </li> <li class="pm-cluster"> <pm-icon name="lock" class="pm-text-accent"></pm-icon> <span class="pm-grow">Your data is encrypted in transit and at rest</span> </li> <li class="pm-cluster"> <pm-icon name="globe" class="pm-text-accent"></pm-icon> <span class="pm-grow">Hosted in the region you choose</span> </li> </ul> </aside> <main class="pm-auth-main"> <a href="/" class="pm-brand"> <pm-icon name="zap"></pm-icon> <span class="pm-brand-name">Lumen</span> </a> <div class="pm-stack pm-gap-2" data-ref="intro"> <h1 class="pm-text-3xl pm-heading">Welcome back</h1> <p class="pm-muted"> Sign in to your workspace. New here? <a href="/sign-up">Create an account</a> </p> </div> <pm-alert tone="danger" heading="Sign-in failed" data-ref="error" hidden> <span data-ref="error-text"></span> </pm-alert> <pm-alert tone="info" data-ref="notice" hidden> <span data-ref="notice-text"></span> </pm-alert> <form class="pm-stack" novalidate data-ref="form"> <pm-input label="Email" type="email" name="email" autocomplete="username webauthn" icon-start="mail" required data-ref="email"></pm-input> <div class="pm-stack pm-gap-4" data-ref="password-part"> <pm-input label="Password" type="password" name="password" autocomplete="current-password" password-toggle required data-ref="password"></pm-input> <div class="pm-cluster pm-justify-between"> <pm-checkbox name="remember" label="Keep me signed in"></pm-checkbox> <a href="/forgot-password" class="pm-text-sm">Forgot password?</a> </div> </div> <pm-button type="submit" size="lg" data-ref="submit">Sign in</pm-button> </form> <div class="pm-stack pm-gap-3" data-ref="other"> <pm-divider>or</pm-divider> <pm-button variant="outline" tone="neutral" icon-start="fingerprint" data-action="passkey" data-ref="passkey">Sign in with a passkey</pm-button> <pm-button variant="outline" tone="neutral" icon-start="building" data-action="sso" data-ref="sso">Use single sign-on</pm-button> </div> <pm-result status="success" heading="You are signed in" heading-level="2" data-ref="done" hidden> <pm-button href="/dashboard" icon-end="arrow-right">Go to the dashboard</pm-button> </pm-result> <p class="pm-text-xs pm-muted"> By signing in you accept the <a href="/terms">terms</a> and the <a href="/privacy">privacy policy</a> </p> </main> </div> <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 sign-in --write

Writes the page into your routes folder and both files into prismora/sign-in/.

With an AI agent (MCP)

scaffold_page({ pattern: "sign-in", framework: "html" })

Components in this template