Auth Signup Steps
Three-step signup wizard: ruled step tabs (done in ink, current in yellow) fused to a card with account fields, team size and use-case tile choices, Back/Continue and a success state.
brutalist/layout/auth-signup-stepsSource
"use client";
import { useId, useState, type FormEvent } from "react";
import { cn } from "@/lib/utils";
export interface AuthSignupValues {
name: string;
email: string;
company: string;
teamSize: string;
useCase: string;
}
export interface AuthSignupStepsProps {
brand?: string;
onComplete?: (values: AuthSignupValues) => void | Promise<void>;
teamSizes?: string[];
useCases?: string[];
className?: string;
}
const STEPS = ["You", "Team", "Goal"] as const;
export function AuthSignupSteps({
brand = "Shipyard",
onComplete,
teamSizes = ["Just me", "2–10", "11–50", "51–200", "200+"],
useCases = ["Public changelog", "In-app announcements", "Release emails", "All of it"],
className,
}: AuthSignupStepsProps) {
const [step, setStep] = useState(0);
const [values, setValues] = useState<AuthSignupValues>({ name: "", email: "", company: "", teamSize: "2–10", useCase: "All of it" });
const [done, setDone] = useState(false);
const id = useId();
const set = (k: keyof AuthSignupValues, v: string) => setValues((s) => ({ ...s, [k]: v }));
async function next(e: FormEvent<HTMLFormElement>) {
e.preventDefault();
if (step < STEPS.length - 1) return setStep(step + 1);
await onComplete?.(values);
setDone(true);
}
const field = "da-focus da-stroke h-12 w-full bg-da-input px-3 text-base text-da-fg";
const label = "font-da-mono text-xs font-bold tracking-da-label uppercase";
const choice = (k: "teamSize" | "useCase", options: string[], legend: string) => (
<fieldset>
<legend className={label}>{legend}</legend>
<div className="mt-3 grid grid-cols-2 gap-2">
{options.map((o) => (
<label
key={o}
className={cn("da-stroke flex cursor-pointer items-center gap-2 px-3 py-3 font-bold has-[:focus-visible]:outline-[length:var(--da-ring-width)] has-[:focus-visible]:outline-da-ring has-[:focus-visible]:outline-solid", values[k] === o ? "bg-da-primary text-da-primary-fg shadow-da-sm" : "bg-da-surface")}
>
<input type="radio" name={`${id}-${k}`} value={o} checked={values[k] === o} onChange={() => set(k, o)} className="sr-only" />
{o}
</label>
))}
</div>
</fieldset>
);
return (
<div className={cn("grid min-h-full place-items-center bg-da-bg px-4 py-12 text-da-fg", className)}>
<div className="w-full max-w-lg">
<p className="font-da-display text-2xl tracking-da-display uppercase">{brand}</p>
<ol className="mt-6 grid grid-cols-3" aria-label="Signup progress">
{STEPS.map((s, i) => (
<li key={s} aria-current={i === step ? "step" : undefined} className={cn("da-stroke -ml-[var(--da-border-width)] px-3 py-2 font-da-mono text-xs font-bold uppercase first:ml-0", i < step ? "bg-da-fg text-da-bg" : i === step ? "bg-da-primary text-da-primary-fg" : "bg-da-surface text-da-muted-fg")}>
{i + 1}. {s}
</li>
))}
</ol>
<div className="da-stroke -mt-[var(--da-border-width)] bg-da-surface p-6 text-da-surface-fg shadow-da-lg sm:p-8">
{done ? (
<div role="status">
<h1 className="font-da-display text-4xl leading-none tracking-da-display uppercase">You're in, {values.name.split(" ")[0] || "friend"}.</h1>
<p className="mt-4 text-da-muted-fg">Your workspace for {values.company || "your team"} is ready. Next: connect a repository.</p>
<a href="#connect" className="da-focus da-stroke mt-6 inline-block bg-da-fg px-5 py-3 font-bold text-da-bg shadow-da-sm">
Connect GitHub →
</a>
</div>
) : (
<form onSubmit={next} className="grid gap-5">
<h1 className="font-da-display text-3xl leading-none tracking-da-display uppercase">
{step === 0 ? "Create your account" : step === 1 ? "Tell us about the team" : "What will you ship?"}
</h1>
{step === 0 && (
<>
<div className="grid gap-1.5">
<label htmlFor={`${id}-name`} className={label}>
Full name
</label>
<input id={`${id}-name`} required autoComplete="name" value={values.name} onChange={(e) => set("name", e.target.value)} className={field} />
</div>
<div className="grid gap-1.5">
<label htmlFor={`${id}-email`} className={label}>
Work email
</label>
<input id={`${id}-email`} type="email" required autoComplete="email" value={values.email} onChange={(e) => set("email", e.target.value)} className={field} />
</div>
</>
)}
{step === 1 && (
<>
<div className="grid gap-1.5">
<label htmlFor={`${id}-company`} className={label}>
Company
</label>
<input id={`${id}-company`} required autoComplete="organization" value={values.company} onChange={(e) => set("company", e.target.value)} className={field} />
</div>
{choice("teamSize", teamSizes, "Team size")}
</>
)}
{step === 2 && choice("useCase", useCases, "Main use case")}
<div className="flex gap-3 pt-2">
{step > 0 && (
<button type="button" onClick={() => setStep(step - 1)} className="da-focus da-stroke bg-da-surface px-5 py-3 font-bold">
Back
</button>
)}
<button type="submit" className="da-focus da-stroke flex-1 bg-da-fg px-5 py-3 font-bold text-da-bg shadow-da-sm hover:translate-x-[3px] hover:translate-y-[3px] hover:shadow-none">
{step === STEPS.length - 1 ? "Create workspace" : "Continue →"}
</button>
</div>
</form>
)}
</div>
</div>
</div>
);
}
export default AuthSignupSteps;
modules/brutalist/layout/auth-signup-steps/index.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| brand | string | "Shipyard" | Brand name. |
| onComplete | (values: AuthSignupValues) => void | Promise<void> | — | Receives { name, email, company, teamSize, useCase }. |
| teamSizes / useCases | string[] | — | Tile options. |
| className | string | — | Classes on the root. |
Other auth screen variants in Brutalist
Auth Card
Centered login card on a dotted paper background: tilted wordmark sticker, ink title band, GitHub button, email + password with forgot link, error slot and a big pressable yellow submit.
Auth Magic Link
Passwordless login split screen: blue product panel with staggered pipeline cards (desktop), huge uppercase headline, single email field and yellow send button, then a 'Check your inbox' state with open-mail and retry actions.
Auth Screen
Split sign-in / sign-up page: form column with GitHub & Google buttons, email + password (show/hide), remember-me, error slot and pending state; yellow grid panel with a big customer quote on desktop.
Auth screen in other art directions
Auth Floating
Sign-up screen: centered glass card (Google button, divider, email magic-link form with success state) surrounded on desktop by floating, bobbing glass preview cards and a gradient orb.
Auth Onboarding
Three-step onboarding glass card: workspace name with URL preview, role radio chips, calendar connection buttons; gradient progress bar, back/continue and a finish screen.
Auth Passkey
Passkey sign-in glass card: glowing gradient fingerprint orb, account email, ‘Sign in with passkey’ with waiting / success / error states and email-link or password fallbacks.
Auth Screen
Centered 40px-blur glass panel over the mesh and two soft orbs: gradient logo, Google/Microsoft buttons, email + password (show/hide), forgot link, error slot, gradient pill submit. Sign-in and sign-up modes.
Auth Screen
Centered passwordless login in three steps: provider choice (Google, email, SAML SSO) → email form → "check your email" confirmation. Faint indigo glow on top, legal footer.
Auth Split
Split sign-in screen: form on the left (email, password with reveal, remember me, error alert) and an always-dark brand panel with indigo glow, grid, customer quote and three stats on large screens.
Auth Sso
SSO-first sign-in card on a tinted page: key icon, Google / GitHub / Microsoft buttons, an ‘or use SAML SSO’ divider and work-email discovery with inline arrow submit, legal links below.
Auth Verify
Email verification screen: mail icon, six single-digit mono boxes (split 3 + 3) with auto-advance, paste, arrow/backspace navigation, auto-submit, error and success states and a resend countdown.
Auth Centered
Minimal centered sign-in with lots of air: logo, small title, two hairline-boxed fields stacked edge to edge, ink button, “or continue with” text links and a mono legal line at the very bottom.
Auth Magic
Passwordless: a huge “Enter your email” prompt with a single oversized underline input and ↵ button; after submit, a large confirmation with the address and a mono resend link.
Auth Screen
Split sign-in: the left half is an ink panel with a large statement and mono footer; the right half holds a minimal underline form (email, password), an ink button and text links. Panel hides on mobile.
Auth Steps
Three-step sign-up with an index header “01 / 03 — Your account” and segmented hairline progress; underline fields per step, Back text link and ink Continue; final step shows the site address preview.
Auth Screen
Centered sign-in card on a surface-2 page: logo, Google + SSO buttons, “or” divider, email/password (show/hide toggle, forgot link), remember me, blue submit, sign-up link and legal footer.
Auth Split
Split sign-up page: form on the left (name, work email, company, password with live strength checklist), blue gradient panel on the right with benefits, a customer quote and compliance badges (panel hidden below lg).
Auth Sso
Enterprise SSO sign-in: email-first step that detects the domain; SSO domains show the org + identity provider and a “Continue with Okta” button, others fall back to a password field.
Auth Verify
Two-factor verification screen: shield icon, 6 separate digit boxes (auto-advance, backspace, paste support), error/success states, resend with 30s countdown and “use a recovery code” link.
Auth Magic
Passwordless sign-in: one rounded email field and “Send me a link”, then a gentle sent state with an open-envelope in a sage circle, the address, resend and change-email links.
Auth Onboarding
Post-signup onboarding: two gentle steps (industry as pill radio cards, goals as check cards) with a leaf progress bar, back/continue pills and a warm “all set” finish.
Auth Screen
Centered sign-in on cream with two soft blobs behind a rounded card: serif welcome, filled inputs, password reveal, sage pill submit, Google alternative and a sign-up link.
Auth Split
Split sign-up: form on cream (name, email, company, team-size pills) and an arch-topped landscape illustration panel with sun and hills plus a quote card (hidden below lg).
Auth Magic
“Check your inbox” screen: flat envelope with a gently bobbing letter, email in bold, Gmail/Outlook shortcut pills, resend with countdown and change-email link.
Auth Screen
Centered friendly sign-in: big rounded white card among pastel shapes, shape logo, Google button, rounded divider, soft email/password fields with reveal, error alert and periwinkle pill.
Auth Split
Sign-up split: lavender panel with a flat illustration of tilted task cards and perk list on large screens, roomy name + email form with a success message on the other side.
Auth Welcome
First-run profile setup: big live avatar preview, grid of pastel emoji avatars (native radios), display-name field with preview chip and a “Let’s go” button enabled once named.