---
type: handoff
company: all-the-colors
client: highwire-ican
status: draft for handoff-v1.1
updated: 2026-10-19
---

# Accounts on Clerk: what design gives Nvok

v1.1, ledger item 1 (`reference/HANDOFF-V1.1-LEDGER.md`), October 19, 2026. The November baseline: a reader creates an account, verifies it, signs in, and lands on an account page that shows what they follow, their calendar and their saved videos. No onboarding; the full member experience is January.

Everything below is drawn in `prototype/` and opens by double-click. Clerk's components are drawn static to Clerk's own anatomy (decision D5): every class named `cl-*` is the `appearance.elements` key of the same part, so each `.cl-*` rule in `prototype/css/components.css` (section "Accounts on Clerk") is an override to pass to Clerk. The Controls bar's **Account** switch shows every page signed out, signed in, or as a new member (signed in, nothing followed or saved yet).

Checked against Clerk's live docs on October 19, 2026 (Core 3). Lines marked **verify** are behaviors design assumed and Nvok should confirm on a test key before building around them.

## The screens

| Screen | Prototype | Clerk |
| --- | --- | --- |
| Sign in: email and password, with Forgot password? | `sign-in.html` | `<SignIn />` at `/sign-in`, path routing |
| Forgot password: a code to the email, then a new password | `sign-in.html?step=reset`, `?step=newpass` | SignIn's forgot-password and reset-password steps |
| Create account: username, email, password, consent | `sign-up.html` | `<SignUp />` at `/sign-up` |
| Verify the email, once, at sign-up | `sign-up.html?step=verify` | SignUp's email code step |
| Clerk's errors | `sign-in.html?error=password`, `not-found`; `sign-up.html?error=email-taken`, `username-taken`, `password-weak`, `incorrect`, `expired` | field errors under the field, code errors under the code |
| The sign-in dialog at the moment of value | `index.html?modal=follow` (also `save`, `chat`; `&step=signup`, `verify`, `reset` or `newpass`) | our dialog, Clerk's `<SignIn />` inside it, our Sign up opening Clerk's `<SignUp />` (below) |
| The header signed in | any page, Account: Signed in | ours: the avatar and username, one link to `/account` (no menu) |
| The account page | `account.html` (`?p=calendar`, `saved`, `profile`, `security`) | `<UserProfile />` at `/account`, three `UserProfile.Page`s of ours |
| Empty states of our three pages | `account.html`, Account: New member | our pages |
| Live chat signed in | `watch.html?live=live`, Account: Signed in | ours; the username comes from Clerk |

In the prototype's flows, any address signs in as the dummy member `nora_b` with any password but `000000`, so a sign-in always lands on the filled account; only Create account or Sign up makes a new member, with nothing followed yet. `nora_b@example.com` and `nora_b` are taken, a password under 8 characters is too short, and the code `000000` is wrong. "No account for that email" is drawn at `sign-in.html?error=not-found`. The member is dummy content.

**Email and password (Jeremy, October 19, 2026).** This replaces decision D3's email code: a reader signs in with an email address and a password, and Forgot password? resets it with a code sent to the email. The email is still verified once, with a six-digit code, when the account is made. No Google or Apple at launch, as before.

## Components and props

- **Header.** `<Show when="signed-out">` holds the Sign in link (to `/sign-in`); `<Show when="signed-in">` holds, in the same slot, the member's avatar and username as **one link to `/account`**, which opens on Following. No menu (Jeremy, October 19, 2026): the account page is the member's dashboard, and Sign out lives in its nav. Clerk's `<UserButton />` always opens its popover, so build this link from `useUser()` (`user.imageUrl`, `user.username`) instead. The username is cut to 12 characters (`--user-button-name-max`), the link keeps the nav's 44px pill and hover, and it holds the `--accent-soft` tint on the account page (`aria-current="page"`). Under 900px it hides with Sign in (`--nav-signin-display`); the phone menu's signed-in rows are for the mobile pass (ledger item 12).
- **The sign-in dialog.** Follow, Save or Sign in to chat while signed out opens it. It's our dialog (a native modal `<dialog>`, its backdrop `--clerk-color-modal-backdrop`) with our reason line as its title ("Sign in to follow Tracy Beanz"), and Clerk's `<SignIn routing="hash" />` inside it, flush, with `appearance={{ elements: { headerTitle: { display: 'none' }, footer: { display: 'none' } } }}` so Clerk's subtitle still changes with each step under our title. Why not `openSignIn()`: Clerk's own modal has no place for the reason line. The first step is the email and password with two buttons under them (Jeremy, October 19): Clerk's Continue, and our Sign up, which swaps the dialog's content to Clerk's `<SignUp routing="hash" />` with the typed email carried over. A returning member goes email and password, Continue, done; a new reader goes Sign up, then username, email, password and consent, then the code, done. **Verify** that Clerk's SignIn shows the password on the first step beside the email; if it asks for it on a second step, a custom flow with `useSignIn` puts them together. The dialog closes and the reader is where they started. Clerk has no "finish what you clicked": carry the pending action in the redirect (`forceRedirectUrl` back to the same page with `?follow=<id>`, `?save=<id>`), run it once signed in, and strip the parameter. Chat keeps what the reader had typed and moves it into the member's field.
- **Sign-in page.** `<SignIn />` (no `withSignUp`: an unknown email is told to sign up, and the footer's Create an account opens `/sign-up`). A finished sign-in returns to `redirect_url` or home.
- **Create-account page.** `<SignUp />`. A finished sign-up lands on `/account` (Following, with its empty state).
- **Account page.** `<UserProfile path="/account" routing="path" />`, full page in the site's shell, flush (a hairline, no shadow). Order: our Following, Calendar and Saved (`UserProfile.Page` with label, icon and URL), then Clerk's account page (labeled Profile) and Security (`UserProfile.Page label="account"` and `label="security"`, which can be reordered but not trimmed). Last, under a hairline, **Sign out**: a `UserProfile.Link` to a `/sign-out` route that runs Clerk's `signOut()` and lands on home, signed out. It's the only way to sign out now the header has no menu. The prototype opens on Following at `/account`; **verify** that Clerk shows the first page in the order at the root, or redirect `/account` to `/account/following`. Signed out, `/account` sends the visitor to `/sign-in?redirect_url=/account` (middleware); the prototype draws that stop in place.
- **Following** lists shows, contributors, topics, and cases and named things, each with an email switch (D2: Email alerts fold into Follow) and Unfollow. **Calendar** lists what the member has added, each show with its day and time, with Remove. **Saved** is the site's video cards, three across, with Remove. Each has an empty state with a way to start. These live in Payload against the Clerk user ID, not in Clerk's metadata (8KB cap); Clerk's `user.created`, `user.updated` and `user.deleted` webhooks keep the member record in step.

## Theme

**Variables.** Clerk reads `--clerk-*` custom properties straight off `:root`, so the block in `tokens.css` (and the handoff's `tokens/highwire-tokens.css`) is the whole theme; nothing goes in `appearance.variables`. Clerk derives its shades with `color-mix()`, so it needs Chrome 119 or Safari 16.4 and up. If a browser needs plain values, the resolved ones are in `tokens/highwire-tokens.json`. Brand 5, from 1200px up:

| Variable | Token | Value |
| --- | --- | --- |
| `--clerk-color-primary` | `--accent` | `#fbc374` |
| `--clerk-color-primary-foreground` | `--text-on-accent` | `#14120f` |
| `--clerk-color-background` | `--raised` | `#fffdfa` |
| `--clerk-color-foreground` | `--text` | `#1c1a17` |
| `--clerk-color-muted` | `--ground` | `#faf7f1` |
| `--clerk-color-muted-foreground` | `--text-2` | `#403e3b` |
| `--clerk-color-neutral` | `--text` | `#1c1a17` |
| `--clerk-color-border` | `--border` | `#e1dfdc` |
| `--clerk-color-input` | `--sunk` | `#efedea` |
| `--clerk-color-input-foreground` | `--text` | `#1c1a17` |
| `--clerk-color-ring` | `--focus` | `#fbc374` |
| `--clerk-color-shadow` | `--g950` | `#14120f` |
| `--clerk-color-shimmer` | `--raised` | `#fffdfa` |
| `--clerk-color-modal-backdrop` | `--overlay` | `color-mix(in srgb, #14120f 60%, transparent)` |
| `--clerk-color-danger` | `--error` | `#a33a26` |
| `--clerk-color-success` | `--accent-text` | `#8d6830` |
| `--clerk-color-warning` | `--accent-text` | `#8d6830` |
| `--clerk-font-family` | `--font-ui` | `"Geist", system-ui, sans-serif` |
| `--clerk-font-family-buttons` | `--font-ui` | `"Geist", system-ui, sans-serif` |
| `--clerk-font-size` | `--text-ui` | `0.9375rem` (15px; Clerk's default is 13) |
| `--clerk-border-radius` | `--radius-button` | `12px` |
| `--clerk-spacing` | `--space-2` | `16px` |

`fontWeight` is an object in Clerk and stays on its defaults (400, 500, 600, 700), which Geist has. There's no green in the system, so success and warning take the bronze.

**Elements.** What the variables can't reach. Each is a `.cl-*` rule in `components.css`; port the values (all tokens):

| Element | What it sets |
| --- | --- |
| `cardBox` | 400px wide, `--radius-card-lg` corners (Clerk would derive a larger one from the button radius), hairline, `--shadow-2`; flush (no border, radius or shadow) inside the dialog and on the account page |
| `card` | 32px padding, 24px between header, fields and button |
| `logoBox` | hidden: the site header above already carries the mark |
| `headerTitle` | the display face (Wix Madefor Display) at 24px, display weight and tracking, like every page title; hidden inside the dialog |
| `headerSubtitle` | `--text-2` |
| `formFieldInput` | 44px, the site's field (`--sunk`, `--border`, `--border-strong` on hover); `--error` border when invalid |
| `formFieldErrorText` | 14px medium in `--error`, with the alert mark |
| `formFieldCheckboxInput`, `formFieldCheckboxLabel` | a 20px box in a 44px row; links in the bronze, underlined |
| `formButtonPrimary` | 44px, full width, gold with ink, `--shadow-2` on hover, the site's pressed state |
| `otpCodeFieldInput` | six 48px boxes, 8px apart, 20px tabular numerals |
| `formResendCodeLink` | "Didn't get a code? Resend", Resend in the bronze, 44px target |
| `identityPreview`, `identityPreviewEditButton` | the address in medium weight with a 44px pencil that goes back |
| `footer`, `footerActionLink` | the muted strip under the card; the link bronze, underlined, 44px tall |
| the header link (ours, not a Clerk element) | the avatar and the username on the nav's 44px pill, `--accent-soft` on hover and on the account page |
| `avatarBox` | 32px in the header link, 40px on Profile |
| `navbar`, `navbarButton` | 240px on the muted ground; 44px rows, `--accent-soft` on hover and on the current page; a hairline between our three pages and Clerk's two, and another above Sign out |
| `pageScrollBox`, `profileSection` | 32px padding; each section a 200px label column and its content, hairlines between. At phone 24px top and bottom, 16 at the sides |
| `navbarMobileMenuRow`, `navbarMobileMenuButton` | Clerk's own small-screen nav (below): the "Your account" row at the top of the page, a 44px text button with Clerk's menu mark, `--accent-soft` on hover and while open; the panel it opens is the `navbar` above, 240px over the card's left edge with `--shadow-2` |
| `profileSectionPrimaryButton` | bronze text button, 44px; Delete account in `--error` |
| `badge` | 12px on the muted ground with a hairline |

**Options** (`appearance.options`): `termsPageUrl: '/terms'`, `privacyPageUrl: '/privacy'`, no logo in the components (`logoBox` hidden; the dashboard logo still brands the emails), and `animations: false` (it was `layout.animations` before Core 3; check the key): Clerk slides its small-screen nav in and fades its modal, and the site has no motion (CLAUDE.md rule 4).

**At phone** (ledger item 12, October 19, 2026). Clerk lays its own components out for small screens; the drawings follow what it does, at the site's breakpoints:

- **UserProfile.** At 768px and under (Clerk's `md`) the nav column gives way to `navbarMobileMenuRow`: a row at the top of the page labeled with the nav's title (`userProfile.navbar.title`, "Your account") that opens the nav as a 240px panel over the card. At 992 and under (Clerk's `lg`) each `profileSection` puts its title over its rows. The prototype makes both turns at 900, where the site's phone header starts; between 769 and 992 trust what Clerk renders. Our rows on Following, Calendar and Saved fold under 640: the picture beside the name and meta, the email switch and Unfollow or Remove on a line under the name; Saved runs one card across.
- **Fields.** `formFieldInput` text is 17px under 640 (`--account-input-size`, `elements.formFieldInput` in a media query, or a global rule on `.cl-formFieldInput`): under 16, iOS zooms the page when a field is tapped. Clerk's `fontSize` variable stays 15 for everything else.
- **The sign-in and create account pages.** Ours: the card sits 24px under the header (64 at desktop), so the keyboard covers its foot, not its fields. Clerk keeps the card's own padding at every width.
- **The sign-in dialog.** Ours, with Clerk's `SignIn` inside: under 640 it sits 40px from the top (plus the safe area), as Clerk's own modal does on a small screen, and scrolls inside itself.

## Dashboard settings (no code)

- **Email address:** on, required, verified at sign-up with an **email code** (not a link). Not a sign-in method on its own: members sign in with their password (Jeremy, October 19, replacing D3's email code).
- **Password:** on and required at sign-up; sign in with email and password. Clerk's default rules (8 characters or more, and its check against known-leaked passwords). Forgot password resets it with a code to the email.
- **Username:** on and required (Q9, Jeremy, October 19: live chat shows a username). Keep Clerk's default rules: 4 to 64 characters and no special characters such as dots (underscores are fine). The drawn chat's names follow them (`kelly_rn`, `anna_p` since October 19). The host line, The HighWire with its Host badge, is a staff account the chat names its own way, not a member username.
- **First and last name:** off.
- **Social connections:** none at launch (D3). Google or Apple can be added later without a redesign.
- **Legal:** "Require express consent to legal documents" on, Terms `/terms`, Privacy `/privacy`.
- **Bot protection:** on (Clerk's smart CAPTCHA shows inside the form only when it needs to).
- **Sign-up mode:** public.
- **Default avatar:** a solid fill with initials, `#f8eee1` with `#8d6830` (`--member-avatar-fill` and `--member-avatar-ink`), so every member without a photo gets the same quiet disc and your own reads as yours beside the chat's gray ones.
- **Environment:** `NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in`, `NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up`, sign-in fallback redirect `/`, sign-up fallback redirect `/account`.
- **Plan:** The HighWire and Nvok choose and pay for Clerk's plan (Jeremy, October 19, 2026). The screens are drawn as Pro shows them: no "Secured by Clerk" badge, and verification emails in the site's branding. On Hobby the badge appears under each form and the emails use Clerk's default template.

## Our copy (Clerk's localization)

Set through the `localization` prop. Sentence case, no exclamation points.

| Where | Key | Copy |
| --- | --- | --- |
| Sign in, title | `signIn.start.title` | Sign in to The HighWire |
| Sign in, subtitle | `signIn.start.subtitle` | Welcome back. Sign in with your email and password. |
| Sign in, footer | `signIn.start.actionText`, `actionLink` | New here? Create an account |
| Forgot password | `formFieldAction__forgotPassword` | Forgot password? |
| Reset, title | `signIn.forgotPassword.title` (**verify** the key) | Reset your password |
| Reset, subtitle | `signIn.forgotPassword.subtitle` | Enter the six-digit code we sent to |
| New password, title | `signIn.resetPassword.title` | Set a new password |
| New password, subtitle | ours | Then you're signed in. |
| Code, subtitle | `signUp.emailCode.subtitle` | Enter the six-digit code we sent to |
| Resend | `signIn.forgotPassword.resendButton`, `signUp.emailCode.resendButton` | Didn't get a code? Resend |
| Password placeholder | `formFieldInputPlaceholder__password` | Enter your password (sign in); Create a password (create account) |
| Password rule | under the field | 8 or more characters |
| Create account, title | `signUp.start.title` | Create your account |
| Create account, subtitle | `signUp.start.subtitle` | Follow shows and people, save videos and join the live chat under your username. |
| Create account, footer | `signUp.start.actionText`, `actionLink` | Already have an account? Sign in |
| Verify, title | `signUp.emailCode.title` | Verify your email |
| Consent | `signUp.legalConsent.checkbox.label__termsOfServiceAndPrivacyPolicy` | I agree to the Terms and Privacy policy |
| Username placeholder | `formFieldInputPlaceholder__username` | Your name in the live chat |
| Email placeholder | `formFieldInputPlaceholder__emailAddress` | Enter your email address |
| Account nav | `userProfile.navbar.title`, `description` | Your account; the member's email |
| Email in use | `unstable__errors.form_identifier_exists__email_address` | That email already has an account. Sign in instead. |
| Username taken | `unstable__errors.form_identifier_exists__username` | That username is taken. Try another. |
| Wrong code | `unstable__errors.form_code_incorrect` | That code isn't right. Try again. |
| Expired code | `unstable__errors.verification_expired` | That code has expired. Resend for a new one. |
| Wrong password | `unstable__errors.form_password_incorrect` | That password isn't right. Try again, or reset it. |
| No account | `unstable__errors.form_identifier_not_found` | There's no account for that email. Sign up to make one. |
| Short password | `unstable__errors.form_password_length_too_short` | Use 8 or more characters. |

**Ours, outside Clerk:** the dialog's reason lines (Sign in to follow [name], Sign in to save this video, Sign in to join the live chat) and its line for the dialog's first step (New here? Choose Sign up below to create your account.), its Sign up button, and the sign-up step's line (Pick a username for the live chat, and a password to sign in with.); the account pages' titles, intros and empty states (in `account.html`); the chat's "Chatting as [username]".

## Member actions: Follow, Save and Add to calendar

Ledger item 2, October 19, 2026. Drawn in `prototype/js/member-actions.js` on every page; the Controls bar's Account switch shows them signed out, signed in and as a new member. Try them on The HighWire's show page (`show.html?s=the-highwire`), signed in.

| | Signed out | Signed in | Done |
| --- | --- | --- | --- |
| Follow | Opens the sign-in dialog with its reason; once signed in, the follow completes (carry `?follow=<id>`) | Follow | Following |
| Save | Opens the dialog (Sign in to save this video; carry `?save=<id>`) | Save | Saved |
| Add to calendar | Works: a calendar file or feed needs no account. The button reads Added for that visit, and nothing lands on an account | Opens the chooser | Added to calendar; the chooser adds Remove |

- **The done state:** the bronze with light ink (5.0:1), a check before the label, the label of its own, and a second click takes it back (Jeremy, October 19). Tokens `--action-done-fill`, `--action-done-border`, `--action-done-ink`, `--action-done-fill-hover`, `--action-check`, `--action-chevron`. Follow and Save carry `aria-pressed`; Add to calendar carries `aria-haspopup="dialog"` and `aria-expanded`.
- **Follow carries the email alerts** (D2, Jeremy confirmed it on October 19). There is no Email alerts button anywhere. A new follow emails when there's something new, on to start, and each follow has its switch on the account page's Following. On a show, topic, shelf or named-thing head, a quiet line under the buttons once followed: "We'll email you when there's something new. Switch it off in your account." With the switch off: "Email is off for this. Switch it on in your account." Home's calendar head, where Email alerts was, has Follow the shows: the three shows at once.
- **One id per thing.** Shows, contributors, topics, shelves, named things and cases can be followed. A contributor's tile and their named-thing page are one follow (`person:aaron-siri` on home, the legal hub and his page), so following on one shows on the others. The account page groups them: Shows, Contributors, Topics (topics and shelves), and Cases and named things, newest first.
- **Save** saves the video playing: the episode, or the segment when the watch page is pointed at one.

**Add to calendar's chooser.** A popover off the button (`.action-menu`, tokens `--action-menu-*`). The reader makes one choice, where to (Jeremy, October 19: "so they don't have to select two things"):

- **What gets added is said, not chosen,** in one line with the day and time under it. A show's head and the episode beside This week: "Add The HighWire to your calendar to stay updated." over "Every Thursday at 1 pm PT, live". Home's calendar head: "Add this week's shows to your calendar to stay updated." (the three shows, and special reports as they're booked). The account page's Calendar: "Add everything on your calendar here to your calendar app."
- **Where to,** each calendar by its own mark: Google Calendar (Google's event template, in a new tab), Apple Calendar (an `.ics` download, which iCal opens too), Outlook (Outlook.com and Microsoft 365), and Copy feed link (a `webcal://` feed, which stays up to date). The marks are image files in `prototype/img/brands/` in their owners' colors, the one place color enters the chooser; each file names its source and license (SVG Logos, CC0; theSVG, MIT). The prototype copies an example feed address; the path is yours. **Verify** that Outlook's compose link takes a weekly repeat; if it doesn't, send Outlook the `.ics`.
- **The times are confirmed** (Jeremy, October 19): The Download Mondays at 11 am PT, live; The HighWire Thursdays at 1 pm PT, live; Off The Record released Fridays at 3 pm PT, never live. Each entry repeats weekly at its show's time. A special report carries its booking's time.
- **Signed in,** any of the four also puts it on the member's Calendar. Once it's there, the chooser offers Remove from your calendar, which takes it off the account (and so off the feed). Events already copied into Google, Apple or Outlook stay until the member deletes them there.

**The note that confirms**, bottom left after each action (`.toast`, tokens `--toast-*`): `role="status"`, stays for `--toast-dwell` (6s), longer while it's hovered or focused, and goes on Escape, its close button or the next action.

| After | Note | Link |
| --- | --- | --- |
| Follow | You're following [name]. We'll email you when there's something new. | Your account |
| Unfollow | You've unfollowed [name]. | Undo |
| Save | Saved to your account. | See saved |
| Unsave | Removed from your saved videos. | Undo |
| Google Calendar | Added [what] to Google Calendar. | See your calendar (signed in) |
| Apple Calendar | Downloaded the calendar file for [what]. | See your calendar (signed in) |
| Outlook | Added [what] to Outlook. | See your calendar (signed in) |
| Copy feed link | Copied the feed link for [what]. Paste it into your calendar app to subscribe. | See your calendar (signed in) |
| Remove | Removed [what] from your calendar. | Undo |

[what] is the show's name, "this week's shows" or "your calendar".

**The account page's three lists** read the same records: Following (with each follow's email switch), Calendar (in week order, each show with its day and time, and its own Add to your calendar app for everything on it) and Saved (the site's video cards). Removing a row offers Undo. In the prototype they live in `localStorage` (`hw-member`), seeded for the dummy member with real shows (The HighWire and The Download), contributors, topics, a case and six real videos; switching to New member empties them. In the build they live in Payload against the Clerk user ID: a follow is an id plus its email flag, a calendar entry a show id or `specials`, a save a video id.

## Open

- **Contributor pages** (ledger item 4) should follow by the same `person:` ids, so a follow made on home shows on the new page.
- **Between 900 and 1023px** the header runs 24px past the page signed out at 900 (outside the designed widths, from before v1.1). Signed in it now shows the avatar alone there, a 44px pill, so it runs 4px past at 900 and fits from 904 (it ran 61px past with the username).

Done in item 12, round 1 (October 19): the phone menu signed in shows the member's avatar and username in Sign in's row, to `/account`; Add to calendar's chooser is a sheet from the foot of the screen at phone, over a scrim, with 48px rows; the confirming note runs the screen's width above the home indicator, its action on a line under the words. Both are ours, not Clerk's.
- **Where this file lives for Nvok:** it isn't on the hub yet. Decide at ship (ledger item 13).
