Skip to content

No.387 · Authentication

Workspace Sign-in

Type your company's workspace and the sign-in panel recognises it — its monogram flips in, the whole panel takes on that company's colour, and the right SSO button appears.

The prompt

Copy this text

Automatic copying is unavailable. Copy the selected text using your device’s copy command.

The design brief behind this component — reuse it to regenerate, remix, or explain it.

Build an enterprise SSO sign-in that becomes the customer's once it recognises them. A dark 20px-radius panel: mono 'Single sign-on' eyebrow, serif 'Find your workspace', and a field made of a monogram tile, a text input ('your-company', letters/digits/hyphens only) and a mono '.vitrine.app' suffix. Typing triggers a debounced lookup (450ms, a spinner replaces the suffix). When a workspace resolves, the whole panel takes on its colour: a registered @property --ws (<color>) transitions over 700ms, and everything references it — eyebrow, focus ring, hairline border mix, a radial glow from the top of the panel, the monogram tile (its letter flips in with a rotateY), the heading ('Sign in to *Northstar*' with the name tinted) and the full-width continue button ('Continue with Okta'). The status line gives members and identity provider. Unknown names show a rose 'No workspace with that name.' and a 'Create “…” as a new workspace →' link; the button stays disabled until a match. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: Type a workspace name; recognised workspaces recolour the panel and enable their SSO button. Motion: Registered colour property transitions 700ms across every themed element; monogram flips 520ms; glow fades 600ms; lookup spinner. Accessibility: Labelled input (16px text), polite status updates, a real disabled/enabled button naming the identity provider. Reduced motion makes the recolour instant. Responsive behavior: Fluid to 25rem. Touch: Nothing hover-dependent; autocomplete=organization. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.

Notes

Interaction
Type a workspace name; recognised workspaces recolour the panel and enable their SSO button.
Motion
Registered colour property transitions 700ms across every themed element; monogram flips 520ms; glow fades 600ms; lookup spinner.
Accessibility
Labelled input (16px text), polite status updates, a real disabled/enabled button naming the identity provider. Reduced motion makes the recolour instant.
Responsive
Fluid to 25rem.
On touch
Nothing hover-dependent; autocomplete=organization.