Skip to content

Open-source document signature platform. Not affiliated with DocuSign.

TypeScript

Bring the new compliance screens into the Soft Studio design

Claude184e00cf1f52
diff --git a/src/app/download/[token]/page.tsx b/src/app/download/[token]/page.tsx
index 339158d..dc2391f 100644
--- a/src/app/download/[token]/page.tsx
+++ b/src/app/download/[token]/page.tsx
@@ -20,7 +20,6 @@ export default async function ExpiredDownloadPage({
return (
<PublicDocumentShell
description="Download links work for a limited time. You can have new ones sent to the email address this document was sent to."
- lastUpdated="November 13, 2026"
title="This download link has expired"
>
<div className="mx-auto w-full max-w-[52rem]">
diff --git a/src/app/electronic-signatures/page.tsx b/src/app/electronic-signatures/page.tsx
index ce3b9dc..9803654 100644
--- a/src/app/electronic-signatures/page.tsx
+++ b/src/app/electronic-signatures/page.tsx
@@ -41,21 +41,21 @@ export default async function ElectronicSignaturesPage() {
title="What this is for"
>
<section className="space-y-3">
- <h2 className="text-xl font-semibold tracking-[-0.03em] text-(--fg)">
+ <h2 className="text-xl font-extrabold tracking-[-0.02em] text-(--fg)">
{WHAT_IT_IS.heading}
</h2>
<List items={WHAT_IT_IS.items} />
</section>
<section className="space-y-3">
- <h2 className="text-xl font-semibold tracking-[-0.03em] text-(--fg)">
+ <h2 className="text-xl font-extrabold tracking-[-0.02em] text-(--fg)">
{WHAT_IT_IS_NOT.heading}
</h2>
<List items={WHAT_IT_IS_NOT.items} />
</section>
<section className="space-y-3">
- <h2 className="text-xl font-semibold tracking-[-0.03em] text-(--fg)">
+ <h2 className="text-xl font-extrabold tracking-[-0.02em] text-(--fg)">
Do not send these documents (United States)
</h2>
<p>
@@ -67,7 +67,7 @@ export default async function ElectronicSignaturesPage() {
</section>
<section className="space-y-3">
- <h2 className="text-xl font-semibold tracking-[-0.03em] text-(--fg)">
+ <h2 className="text-xl font-extrabold tracking-[-0.02em] text-(--fg)">
Take care with these (European Union)
</h2>
<p>
@@ -78,7 +78,7 @@ export default async function ElectronicSignaturesPage() {
</section>
<section className="space-y-3">
- <h2 className="text-xl font-semibold tracking-[-0.03em] text-(--fg)">
+ <h2 className="text-xl font-extrabold tracking-[-0.02em] text-(--fg)">
Who decides
</h2>
<p>
diff --git a/src/app/signer-privacy/page.tsx b/src/app/signer-privacy/page.tsx
index 63354c0..f1ef9cf 100644
--- a/src/app/signer-privacy/page.tsx
+++ b/src/app/signer-privacy/page.tsx
@@ -41,7 +41,7 @@ export default async function SignerPrivacyPage() {
title="Privacy notice for signers"
>
<section className="space-y-3">
- <h2 className="text-xl font-semibold tracking-[-0.03em] text-(--fg)">
+ <h2 className="text-xl font-extrabold tracking-[-0.02em] text-(--fg)">
Who is responsible
</h2>
<p>
@@ -62,7 +62,7 @@ export default async function SignerPrivacyPage() {
</section>
<section className="space-y-3">
- <h2 className="text-xl font-semibold tracking-[-0.03em] text-(--fg)">
+ <h2 className="text-xl font-extrabold tracking-[-0.02em] text-(--fg)">
What is collected
</h2>
<ul className="list-disc space-y-2 pl-6">
@@ -81,7 +81,7 @@ export default async function SignerPrivacyPage() {
</section>
<section className="space-y-3">
- <h2 className="text-xl font-semibold tracking-[-0.03em] text-(--fg)">
+ <h2 className="text-xl font-extrabold tracking-[-0.02em] text-(--fg)">
Why, and on what basis
</h2>
<p>
@@ -95,7 +95,7 @@ export default async function SignerPrivacyPage() {
</section>
<section className="space-y-3">
- <h2 className="text-xl font-semibold tracking-[-0.03em] text-(--fg)">
+ <h2 className="text-xl font-extrabold tracking-[-0.02em] text-(--fg)">
Who else handles it
</h2>
<p>
@@ -110,7 +110,7 @@ export default async function SignerPrivacyPage() {
</section>
<section className="space-y-3">
- <h2 className="text-xl font-semibold tracking-[-0.03em] text-(--fg)">
+ <h2 className="text-xl font-extrabold tracking-[-0.02em] text-(--fg)">
How long it is kept
</h2>
<p>
@@ -120,7 +120,7 @@ export default async function SignerPrivacyPage() {
</section>
<section className="space-y-3">
- <h2 className="text-xl font-semibold tracking-[-0.03em] text-(--fg)">
+ <h2 className="text-xl font-extrabold tracking-[-0.02em] text-(--fg)">
Your rights
</h2>
<p>
diff --git a/src/app/verify/page.tsx b/src/app/verify/page.tsx
index 12708f6..e62c2be 100644
--- a/src/app/verify/page.tsx
+++ b/src/app/verify/page.tsx
@@ -13,13 +13,12 @@ export default function VerifyPage() {
return (
<PublicDocumentShell
description="Check that a signed PDF or audit certificate is exactly the file this site produced when signing finished. Any change to the file, however small, gives a different fingerprint."
- lastUpdated="November 13, 2026"
title="Verify a document"
>
<div className="mx-auto w-full max-w-[52rem] space-y-8">
<VerifyForm />
<section className="space-y-3">
- <h2 className="text-xl font-semibold tracking-[-0.03em] text-(--fg)">
+ <h2 className="text-xl font-extrabold tracking-[-0.02em] text-(--fg)">
Checking the seal in a PDF reader
</h2>
<p>
diff --git a/src/components/downloads/renew-download-button.tsx b/src/components/downloads/renew-download-button.tsx
index a3f19f8..7a28cc5 100644
--- a/src/components/downloads/renew-download-button.tsx
+++ b/src/components/downloads/renew-download-button.tsx
@@ -45,7 +45,7 @@ export function RenewDownloadButton({ token }: { token: string }) {
return (
<div className="space-y-4">
{state.kind === "sent" ? (
- <p role="status" className="font-semibold text-(--fg)">
+ <p role="status" className="notice notice-success">
New links are on their way to {state.maskedEmail}.
</p>
) : (
@@ -56,7 +56,7 @@ export function RenewDownloadButton({ token }: { token: string }) {
</ShellButton>
)}
{state.kind === "error" ? (
- <p role="alert" className="text-(--accent)">
+ <p role="alert" className="notice notice-danger">
{state.message}
</p>
) : null}
diff --git a/src/components/envelopes/signers-shell.tsx b/src/components/envelopes/signers-shell.tsx
index 53234d7..7156305 100644
--- a/src/components/envelopes/signers-shell.tsx
+++ b/src/components/envelopes/signers-shell.tsx
@@ -376,15 +376,13 @@ function SignerCard({
</label>
</div>
- <fieldset className="grid gap-3 border-t border-(--border) pt-4 text-sm">
+ <fieldset className="grid gap-3 rounded-2xl bg-white p-4 text-sm text-(--fg) sm:p-5">
<legend className="sr-only">Extra check before signing</legend>
- <p className="font-semibold text-(--fg)">
+ <p className="font-bold text-(--fg)">
Extra check before signing{" "}
- <span className="font-normal text-muted-foreground">
- (optional)
- </span>
+ <span className="font-normal text-(--secondary)">(optional)</span>
</p>
- <p className="text-xs leading-5 text-muted-foreground">
+ <p className="text-[0.8125rem] leading-5 text-(--secondary)">
By default anyone holding the emailed link can sign. Add a check
when the signer&apos;s identity matters.
</p>
@@ -392,7 +390,7 @@ function SignerCard({
<input
aria-label={`Email signer ${order} a one-time code`}
checked={signer.requireEmailCode}
- className="mt-1 size-4"
+ className="mt-0.5 size-4.5 shrink-0 cursor-pointer accent-(--accent)"
disabled={disabled}
onChange={(event: ChangeEvent<HTMLInputElement>) =>
onChecksChange({ requireEmailCode: event.target.checked })
@@ -402,7 +400,7 @@ function SignerCard({
<span>Email a one-time code when they open the link</span>
</label>
<label className="grid gap-2">
- <span>
+ <span className="text-[0.8125rem] font-semibold text-(--secondary)">
Access code you will give them yourself, for example by phone
{signer.hasAccessCode && !signer.removeAccessCode
? " (a code is set; type a new one to change it)"
@@ -413,7 +411,7 @@ function SignerCard({
aria-invalid={accessCodeError ? true : undefined}
aria-label={`Signer ${order} access code`}
autoComplete="off"
- className="min-h-11 flex-1 rounded-none border border-(--border) bg-popover px-4 text-(--fg) outline-none placeholder:text-(--placeholder)"
+ className="field-input flex-1"
disabled={disabled}
maxLength={64}
onChange={(event: ChangeEvent<HTMLInputElement>) =>
@@ -432,7 +430,7 @@ function SignerCard({
/>
{signer.hasAccessCode && !signer.removeAccessCode ? (
<button
- className="min-h-11 border border-(--border) px-4 text-xs font-semibold text-muted-foreground hover:border-black hover:text-(--fg)"
+ className="btn-quiet btn-quiet-danger min-h-12"
disabled={disabled}
onClick={() =>
onChecksChange({ accessCode: "", removeAccessCode: true })
@@ -445,7 +443,7 @@ function SignerCard({
</div>
{accessCodeError ? (
<span
- className="text-xs font-semibold text-(--accent)"
+ className="text-xs font-semibold text-(--danger)"
role="alert"
>
{accessCodeError}
diff --git a/src/components/layout/public-document-shell.tsx b/src/components/layout/public-document-shell.tsx
index 0c4453b..adf9769 100644
--- a/src/components/layout/public-document-shell.tsx
+++ b/src/components/layout/public-document-shell.tsx
@@ -7,7 +7,8 @@ import { PublicSessionMenu } from "@/components/layout/public-session-menu";
type PublicDocumentShellProps = {
children: ReactNode;
description: string;
- lastUpdated: string;
+ /** For policies. A page that is a tool, not a policy, leaves it out. */
+ lastUpdated?: string;
title: string;
};
@@ -33,8 +34,12 @@ export function PublicDocumentShell({
data-animate="enter"
>
<div className="px-6 pb-2 pt-9 sm:px-12 sm:pt-12">
- <p className="section-eyebrow">Last updated {lastUpdated}</p>
- <h1 className="mt-3 max-w-[20ch] text-[clamp(2rem,4.5vw,3rem)] font-extrabold leading-[1.06] tracking-[-0.035em] text-(--fg)">
+ {lastUpdated ? (
+ <p className="section-eyebrow mb-3">
+ Last updated {lastUpdated}
+ </p>
+ ) : null}
+ <h1 className="max-w-[20ch] text-[clamp(2rem,4.5vw,3rem)] font-extrabold leading-[1.06] tracking-[-0.035em] text-(--fg)">
{title}
</h1>
<p className="mt-4 max-w-[680px] text-base leading-7 text-(--secondary) sm:text-[1.0625rem]">
diff --git a/src/components/settings/organization-settings.tsx b/src/components/settings/organization-settings.tsx
index a117821..aabf7ac 100644
--- a/src/components/settings/organization-settings.tsx
+++ b/src/components/settings/organization-settings.tsx
@@ -313,9 +313,13 @@ export function OrganizationSettings({
value={values.privacyUrl}
/>
</div>
- <p className="max-w-2xl text-sm leading-6 text-muted-foreground">
+ <p className="max-w-2xl text-sm leading-6 text-(--secondary)">
Without a privacy policy link, signers see{" "}
- <a className="underline" href="/signer-privacy" target="_blank">
+ <a
+ className="font-semibold text-(--accent-ink) underline decoration-[rgba(83,64,214,0.35)] underline-offset-4"
+ href="/signer-privacy"
+ target="_blank"
+ >
a notice built from these settings
</a>
. Check that it is right for your organization.
@@ -325,10 +329,10 @@ export function OrganizationSettings({
<div className="space-y-5 border-t border-(--border) pt-8">
<div className="space-y-2">
- <h3 className="text-xl font-bold tracking-[-0.03em] text-(--fg)">
+ <h3 className="text-lg font-extrabold tracking-[-0.02em] text-(--fg)">
How long to keep finished documents
</h3>
- <p className="max-w-2xl text-sm leading-6 text-muted-foreground">
+ <p className="max-w-2xl text-sm leading-6 text-(--secondary)">
Optional. After this many days a completed, declined or voided
envelope is deleted with its audit trail. Its sender is emailed
30 days before. Leave empty to keep them until someone deletes
diff --git a/src/components/settings/signer-data-panel.tsx b/src/components/settings/signer-data-panel.tsx
index 252c7a1..cb36a0c 100644
--- a/src/components/settings/signer-data-panel.tsx
+++ b/src/components/settings/signer-data-panel.tsx
@@ -67,10 +67,10 @@ export function SignerDataPanel() {
return (
<div className="space-y-5 border-t border-(--border) pt-8">
<div className="space-y-2">
- <h3 className="text-xl font-bold tracking-[-0.03em] text-(--fg)">
+ <h3 className="text-lg font-extrabold tracking-[-0.02em] text-(--fg)">
Signer data requests
</h3>
- <p className="max-w-2xl text-sm leading-6 text-muted-foreground">
+ <p className="max-w-2xl text-sm leading-6 text-(--secondary)">
When a signer asks what you hold about them, download it here. When
they ask for it to be erased, you can delete every finished envelope
they signed, with its files and audit trail. Signed records are often
@@ -90,10 +90,8 @@ export function SignerDataPanel() {
/>
<a
aria-disabled={trimmed.length === 0}
- className={`w-fit border border-(--border) px-5 py-3 text-sm font-semibold ${
- trimmed.length === 0
- ? "pointer-events-none text-(--placeholder)"
- : "text-(--fg) hover:border-black"
+ className={`btn-quiet min-h-12 w-fit px-5 text-sm ${
+ trimmed.length === 0 ? "pointer-events-none" : ""
}`}
download
href={exportHref}
@@ -109,7 +107,7 @@ export function SignerDataPanel() {
value={confirmation}
/>
<ShellButton
- className="w-fit"
+ className="w-fit border-[rgba(180,35,24,0.35)] text-(--danger) hover:border-(--danger) hover:bg-(--danger-soft) hover:text-(--danger)"
disabled={
trimmed.length === 0 ||
confirmation.trim().toLowerCase() !== trimmed.toLowerCase()
@@ -122,7 +120,9 @@ export function SignerDataPanel() {
</ShellButton>
{message ? (
<p
- className={`text-sm ${message.tone === "error" ? "text-(--accent)" : "text-muted-foreground"}`}
+ className={`notice ${
+ message.tone === "error" ? "notice-danger" : "notice-success"
+ }`}
role={message.tone === "error" ? "alert" : "status"}
>
{message.text}
diff --git a/src/components/signing/signer-verification-screen.tsx b/src/components/signing/signer-verification-screen.tsx
index 5aec733..9648782 100644
--- a/src/components/signing/signer-verification-screen.tsx
+++ b/src/components/signing/signer-verification-screen.tsx
@@ -1,5 +1,6 @@
"use client";
+import { ShieldCheckIcon } from "lucide-react";
import { useState, type FormEvent } from "react";
import { Brand } from "@/components/layout/brand";
@@ -101,18 +102,27 @@ export function SignerVerificationScreen({
const step = state.required.indexOf(method) + 1;
return (
- <div className="flex min-h-screen flex-col bg-white">
- <header className="border-b border-(--border) bg-white">
- <div className="mx-auto flex max-w-[1360px] items-center px-4 py-5 sm:px-6 lg:px-8">
+ <div className="flex min-h-screen flex-col">
+ <header>
+ <div className="page-width flex items-center py-4">
<Brand href="/" />
</div>
</header>
- <main className="mx-auto flex w-full max-w-[1360px] flex-1 items-center justify-center px-4 py-12 sm:px-6 lg:px-8">
- <section className="editorial-panel w-full max-w-[560px] px-6 py-10 sm:px-10">
- <h1 className="text-[28px] font-extrabold tracking-[-0.04em] text-(--fg)">
+ <main className="page-width flex flex-1 items-center justify-center py-10">
+ <section
+ className="panel w-full max-w-[560px] px-6 py-10 sm:px-10 sm:py-12"
+ data-animate="enter"
+ >
+ <span
+ aria-hidden="true"
+ className="inline-flex size-14 items-center justify-center rounded-2xl bg-(--accent-soft) text-(--accent)"
+ >
+ <ShieldCheckIcon className="size-6" strokeWidth={2.2} />
+ </span>
+ <h1 className="mt-6 text-[clamp(1.625rem,4vw,2rem)] font-extrabold leading-tight tracking-[-0.03em] text-(--fg)">
Confirm it&apos;s you
</h1>
- <p className="mt-3 text-base leading-7 text-muted-foreground">
+ <p className="mt-3 text-base leading-7 text-(--secondary)">
{state.senderName} asked for a check before you open &ldquo;
{state.envelopeTitle}&rdquo;.
{state.required.length > 1
@@ -130,12 +140,12 @@ export function SignerVerificationScreen({
value={code}
/>
{notice ? (
- <p className="text-sm text-muted-foreground" role="status">
+ <p className="notice notice-accent" role="status">
{notice}
</p>
) : null}
{error ? (
- <p className="text-sm text-(--accent)" role="alert">
+ <p className="notice notice-danger" role="alert">
{error}
</p>
) : null}
diff --git a/src/components/signing/signing-live-shell.tsx b/src/components/signing/signing-live-shell.tsx
index 372bd8f..098f291 100644
--- a/src/components/signing/signing-live-shell.tsx
+++ b/src/components/signing/signing-live-shell.tsx
@@ -1,5 +1,6 @@
"use client";
+import { DownloadIcon } from "lucide-react";
import Image from "next/image";
import {
type PointerEvent as ReactPointerEvent,
@@ -633,11 +634,12 @@ export function SigningLiveShell({ record }: { record: SigningPayload }) {
</div>
<div className="flex items-center gap-3">
<a
- className="inline-flex min-h-11 items-center px-2 text-sm font-semibold text-(--fg) underline decoration-[rgba(17,17,17,0.35)] underline-offset-4"
+ className="btn-quiet min-h-11 px-3 sm:px-4"
download="document.pdf"
href={`${record.documentUrl}?download=1`}
>
- Download PDF
+ <DownloadIcon aria-hidden="true" className="size-4" />
+ <span className="sr-only sm:not-sr-only">Download PDF</span>
</a>
<ShellButton
className="min-h-11 px-4"
@@ -992,10 +994,10 @@ export function SigningLiveShell({ record }: { record: SigningPayload }) {
onClose={() => undefined}
title="Before you sign"
>
- <div className="max-h-[45vh] space-y-4 overflow-y-auto border border-(--border) bg-(--surface) px-4 py-4 text-sm leading-6 text-muted-foreground">
+ <div className="well max-h-[45vh] space-y-4 overflow-y-auto px-4 py-4 text-sm leading-6 text-(--secondary) sm:px-5">
{record.disclosure.sections.map((section) => (
<section key={section.heading}>
- <h3 className="font-semibold text-(--fg)">{section.heading}</h3>
+ <h3 className="font-bold text-(--fg)">{section.heading}</h3>
<p className="mt-1">{section.text}</p>
</section>
))}
@@ -1013,7 +1015,7 @@ export function SigningLiveShell({ record }: { record: SigningPayload }) {
<span>{record.disclosure.statement}</span>
</label>
{consentError ? (
- <div className="border border-[rgba(180,35,53,0.18)] bg-[rgba(180,35,53,0.08)] px-4 py-3 text-sm text-(--accent)">
+ <div className="notice notice-danger" role="alert">
{consentError}
</div>
) : null}
@@ -1764,10 +1766,7 @@ function DialogFrame({
}) {
return (
<Dialog open onOpenChange={(open) => !open && onClose()}>
- <DialogContent
- className="max-w-[600px] p-0"
- showCloseButton={false}
- >
+ <DialogContent className="max-w-[600px] p-0" showCloseButton={false}>
<div>
<DialogHeader className="space-y-2 px-6 pt-6 sm:px-8 sm:pt-8">
<DialogTitle>{title}</DialogTitle>
diff --git a/src/components/verify/verify-form.tsx b/src/components/verify/verify-form.tsx
index 0cec82d..324651d 100644
--- a/src/components/verify/verify-form.tsx
+++ b/src/components/verify/verify-form.tsx
@@ -87,17 +87,17 @@ export function VerifyForm() {
return (
<div className="space-y-6">
- <label className="block border border-dashed border-(--border) bg-(--surface) px-6 py-8 text-center">
- <span className="block text-sm font-semibold text-(--fg)">
+ <label className="block cursor-pointer rounded-[1.25rem] border-2 border-dashed border-(--border-strong) bg-(--surface) px-6 py-8 text-center transition hover:border-(--accent) hover:bg-(--accent-softer)">
+ <span className="block text-[0.9375rem] font-bold text-(--fg)">
Choose a signed PDF or audit certificate
</span>
- <span className="mt-1 block text-sm text-muted-foreground">
+ <span className="mt-1 block text-sm text-(--secondary)">
The file stays on your device. Only its SHA-256 fingerprint is sent.
</span>
<input
accept="application/pdf,.pdf"
aria-label="PDF to verify"
- className="mx-auto mt-4 block text-sm"
+ className="mx-auto mt-4 block max-w-full text-sm text-(--secondary) file:mr-3 file:min-h-10 file:cursor-pointer file:rounded-xl file:border-0 file:bg-(--accent) file:px-4 file:text-sm file:font-bold file:text-white hover:file:bg-(--accent-hover)"
// One file at a time, so a verdict cannot land on the wrong one.
disabled={isChecking}
onChange={handleFile}
@@ -107,17 +107,17 @@ export function VerifyForm() {
<div aria-live="polite" className="space-y-3" role="status">
{isChecking ? <p>Checking {fileName}...</p> : null}
- {error ? <p className="text-(--accent)">{error}</p> : null}
+ {error ? <p className="notice notice-danger">{error}</p> : null}
{answer?.match === true ? (
- <div className="border border-[rgba(24,132,74,0.3)] bg-[rgba(24,132,74,0.06)] px-5 py-4 text-(--fg)">
- <p className="font-semibold">
+ <div className="rounded-2xl bg-(--success-soft) px-5 py-4">
+ <p className="font-bold text-(--success)">
This file is unchanged. It is the{" "}
{answer.fileKind === "signed-document"
? "signed document"
: "audit certificate"}{" "}
this site produced for &ldquo;{answer.title}&rdquo;.
</p>
- <p className="mt-2 text-sm text-muted-foreground">
+ <p className="mt-2 text-sm text-(--secondary)">
The envelope was {STATUS_WORDS[answer.status]}
{answer.finishedAt
? ` on ${dateFormatter.format(new Date(answer.finishedAt * 1000))} UTC`
@@ -129,9 +129,9 @@ export function VerifyForm() {
</div>
) : null}
{answer?.match === false ? (
- <div className="border border-[rgba(180,35,53,0.18)] bg-[rgba(180,35,53,0.06)] px-5 py-4 text-(--fg)">
- <p className="font-semibold">No match.</p>
- <p className="mt-2 text-sm text-muted-foreground">
+ <div className="rounded-2xl bg-(--danger-soft) px-5 py-4">
+ <p className="font-bold text-(--danger)">No match.</p>
+ <p className="mt-2 text-sm text-(--secondary)">
This site did not produce this exact file. It may have been
changed, saved again by another program, or come from somewhere
else. Ask the sender for the copy kept on this site.
@@ -139,7 +139,7 @@ export function VerifyForm() {
</div>
) : null}
{hash ? (
- <p className="break-all font-mono text-xs text-muted-foreground">
+ <p className="well break-all px-4 py-3 font-mono text-xs text-(--secondary)">
SHA-256: {hash}
</p>
) : null}