Accessible components, tokens, and public-service UI patterns for LegalTech and civic products.
- Colour, spacing, radius, type, and focus tokens in
src/tokens.js - Contrast helper output for common foreground/background pairs
- Component inventory metadata for risk cards, client intake, document upload, complaint timelines, and escalation panels
- Copyable HTML snippets and usage notes for each component pattern
filterComponentInventory(components, { type })for filtering byintake,document,timeline,escalation, orriskcreateTokenExport(tokens)for CSS custom properties and formatted JSON token exportscreateLocalActionPack(patterns, selectedNames, options)for turning shortlisted patterns into a service-team review and handoff packserializeSavedShortlist(names)andparseSavedShortlist(value, components)for localStorage-safe component favourites- Demo controls for copying CSS tokens, copying a local action pack, downloading JSON tokens, and saving component shortlist items locally
- Static demo rendering in
src/app.js, with no backend or analytics dependency
- Keep cards at 8px radius or less.
- Use visible focus outlines and semantic HTML before custom ARIA.
- Pair colour with text labels for risk, urgency, and status.
- Show evidence requirements, retention/fallback notes, and next actions in plain English.
Open index.html in a browser. This repository is intentionally no-backend and keeps user data local to the browser.
- Code: MIT licence
- Content/templates: use with attribution under CC BY 4.0 where marked
- Accessibility target: WCAG 2.2 AA
- Contributions: start with issues labelled
good first issue
This project provides information and drafting support, not legal advice. Users should check deadlines, local rules, and professional advice where needed.