Handoff home

Spec for Nvok, from handoff/CLERK-SPEC.md

Spec for Nvok

Accounts on Clerk: what design gives Nvok

Updated October 19, 2026. The same file as Markdown

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

ScreenPrototypeClerk
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 passwordsign-in.html?step=reset, ?step=newpassSignIn's forgot-password and reset-password steps
Create account: username, email, password, consentsign-up.html<SignUp /> at /sign-up
Verify the email, once, at sign-upsign-up.html?step=verifySignUp's email code step
Clerk's errorssign-in.html?error=password, not-found; sign-up.html?error=email-taken, username-taken, password-weak, incorrect, expiredfield errors under the field, code errors under the code
The sign-in dialog at the moment of valueindex.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 inany page, Account: Signed inours: the avatar and username, one link to /account (no menu)
The account pageaccount.html (?p=calendar, saved, profile, security)<UserProfile /> at /account, three UserProfile.Pages of ours
Empty states of our three pagesaccount.html, Account: New memberour pages
Live chat signed inwatch.html?live=live, Account: Signed inours; 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

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:

VariableTokenValue
--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--overlaycolor-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-ui0.9375rem (15px; Clerk's default is 13)
--clerk-border-radius--radius-button12px
--clerk-spacing--space-216px

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):

ElementWhat it sets
cardBox400px 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
card32px padding, 24px between header, fields and button
logoBoxhidden: the site header above already carries the mark
headerTitlethe display face (Wix Madefor Display) at 24px, display weight and tracking, like every page title; hidden inside the dialog
headerSubtitle--text-2
formFieldInput44px, the site's field (--sunk, --border, --border-strong on hover); --error border when invalid
formFieldErrorText14px medium in --error, with the alert mark
formFieldCheckboxInput, formFieldCheckboxLabela 20px box in a 44px row; links in the bronze, underlined
formButtonPrimary44px, full width, gold with ink, --shadow-2 on hover, the site's pressed state
otpCodeFieldInputsix 48px boxes, 8px apart, 20px tabular numerals
formResendCodeLink"Didn't get a code? Resend", Resend in the bronze, 44px target
identityPreview, identityPreviewEditButtonthe address in medium weight with a 44px pencil that goes back
footer, footerActionLinkthe 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
avatarBox32px in the header link, 40px on Profile
navbar, navbarButton240px 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, profileSection32px padding; each section a 200px label column and its content, hairlines between. At phone 24px top and bottom, 16 at the sides
navbarMobileMenuRow, navbarMobileMenuButtonClerk'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
profileSectionPrimaryButtonbronze text button, 44px; Delete account in --error
badge12px 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:

Dashboard settings (no code)

Our copy (Clerk's localization)

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

WhereKeyCopy
Sign in, titlesignIn.start.titleSign in to The HighWire
Sign in, subtitlesignIn.start.subtitleWelcome back. Sign in with your email and password.
Sign in, footersignIn.start.actionText, actionLinkNew here? Create an account
Forgot passwordformFieldAction__forgotPasswordForgot password?
Reset, titlesignIn.forgotPassword.title (verify the key)Reset your password
Reset, subtitlesignIn.forgotPassword.subtitleEnter the six-digit code we sent to
New password, titlesignIn.resetPassword.titleSet a new password
New password, subtitleoursThen you're signed in.
Code, subtitlesignUp.emailCode.subtitleEnter the six-digit code we sent to
ResendsignIn.forgotPassword.resendButton, signUp.emailCode.resendButtonDidn't get a code? Resend
Password placeholderformFieldInputPlaceholder__passwordEnter your password (sign in); Create a password (create account)
Password ruleunder the field8 or more characters
Create account, titlesignUp.start.titleCreate your account
Create account, subtitlesignUp.start.subtitleFollow shows and people, save videos and join the live chat under your username.
Create account, footersignUp.start.actionText, actionLinkAlready have an account? Sign in
Verify, titlesignUp.emailCode.titleVerify your email
ConsentsignUp.legalConsent.checkbox.label__termsOfServiceAndPrivacyPolicyI agree to the Terms and Privacy policy
Username placeholderformFieldInputPlaceholder__usernameYour name in the live chat
Email placeholderformFieldInputPlaceholder__emailAddressEnter your email address
Account navuserProfile.navbar.title, descriptionYour account; the member's email
Email in useunstable__errors.form_identifier_exists__email_addressThat email already has an account. Sign in instead.
Username takenunstable__errors.form_identifier_exists__usernameThat username is taken. Try another.
Wrong codeunstable__errors.form_code_incorrectThat code isn't right. Try again.
Expired codeunstable__errors.verification_expiredThat code has expired. Resend for a new one.
Wrong passwordunstable__errors.form_password_incorrectThat password isn't right. Try again, or reset it.
No accountunstable__errors.form_identifier_not_foundThere's no account for that email. Sign up to make one.
Short passwordunstable__errors.form_password_length_too_shortUse 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 outSigned inDone
FollowOpens the sign-in dialog with its reason; once signed in, the follow completes (carry ?follow=<id>)FollowFollowing
SaveOpens the dialog (Sign in to save this video; carry ?save=<id>)SaveSaved
Add to calendarWorks: a calendar file or feed needs no account. The button reads Added for that visit, and nothing lands on an accountOpens the chooserAdded to calendar; the chooser adds Remove

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"):

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.

AfterNoteLink
FollowYou're following [name]. We'll email you when there's something new.Your account
UnfollowYou've unfollowed [name].Undo
SaveSaved to your account.See saved
UnsaveRemoved from your saved videos.Undo
Google CalendarAdded [what] to Google Calendar.See your calendar (signed in)
Apple CalendarDownloaded the calendar file for [what].See your calendar (signed in)
OutlookAdded [what] to Outlook.See your calendar (signed in)
Copy feed linkCopied the feed link for [what]. Paste it into your calendar app to subscribe.See your calendar (signed in)
RemoveRemoved [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

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.