Component Playbook
8 Foundational UI Component Microcopy Rules
Mathematical constraints, grammatical standards, and live code token definitions
for core components in your design library.
1. CTA Buttons & Action Anchors
Max 24 chars | 1-3 words | Sentence case | 0 end punctuation
Do: "Export monthly invoice" (Verb-first, specific object)
Don't: "CLICK HERE TO SUBMIT!" (Vague, all-caps, punctuation)
tokens.content.buttons.primaryAction("export_invoice")
2. Destructive Confirmation Modals
Header: Max 45 chars | Body: Max 120 chars | Explicit irreversibility
Do: "Delete billing profile? This subscription will cancel immediately."
Don't: "Are you sure? You might miss out on awesome features!"
tokens.content.dialogs.destructiveConfirm({ entity: "billing_profile" })
3. Form Fields & Inline Validation
Label: Max 30 chars | Persistent label | Constructive recovery prompt
Do: "Use at least 8 characters with one number." (Actionable fix)
Don't: "ERROR 0x824: Regex pattern mismatch." (Cryptic tech code)
tokens.content.forms.validation.passwordRules()
4. Empty States & Zero-Data Dashboards
Headline: Max 40 chars | Body: Max 110 chars | Clear creation onramp
Do: "No invoices yet. Send your first invoice to get paid in <48 hrs."
Don't: "EMPTY LIST! Zero records found in database."
tokens.content.emptyStates.onramp({ entity: "invoices" })
5. Toast Notifications & System Banners
Max 65 chars | Past-tense verb | Inline 'Undo' action
Do: "Project archived. [Undo]" (Past tense, immediate reversal)
Don't: "Database record updated with HTTP status 200 OK."
tokens.content.toasts.successWithUndo("project_archived")
6. Tooltips & Contextual Infotips
Max 90 chars | Explains WHY action is disabled | Never repeats label
Do: "Requires admin role. Contact owner to change billing."
Don't: "This is the settings button where you adjust settings."
tokens.content.tooltips.disabledReason("admin_required")
7. Steppers & Multi-Step Wizards
Step Title: Max 20 chars | Parallel syntax | Pacing time estimate
Do: "Step 2 of 4: Team permissions (Takes ~2 mins)"
Don't: "Phase II: Miscellaneous Parameters Configuration"
tokens.content.stepper.progress({ current: 2, total: 4 })
8. Irreversible Warnings & Typed Gates
Enumerate affected assets | Require typing exact entity identifier
Do: "Delete cluster prod-us-east-1? 48 worker nodes will terminate."
Don't: "Are you really, really sure? Bad things will happen!"
tokens.content.dialogs.typeToConfirm({ name: "prod-us-east-1" })