Style Guide
A catalogue of the prototype design system — the customisations layered on top of shadcn (Base UI) and the design decisions made along the way, plus the composed pieces built on them. Development preview only.
Jump to section
Colors
Brand and semantic tokens (defined in globals.css). Every token re-points in dark mode — swatches here show light values.
Note: the primary accent (links, active states, focus) is blue, while the primary action button fills with brand navy — two separate tokens on purpose.
Neutral scale
A single cool/slate-tinted grey ramp (gray-25 → gray-950). It's the source for both the gray-/neutral- utilities and the semantic tokens above; it is never inverted in dark mode.
Typography
Inter throughout — both headings (font-heading) and body text (font-sans) resolve to the same self-hosted Inter 4.1.
Participant overview
Participant overview
Date formats
One shape per kind of date, so the same date reads the same on every screen. Rule 10.
| Where | Example | Helper |
|---|---|---|
| A date in a table (money tables too), a read-out or a header band | 21 Oct 2026 | formatDate |
| When the time matters as much as the day | 21 Oct 2026, 9:00 am | formatDateTime |
| A day inside a range the page already shows (a week of shifts) | Wed 21 Oct | formatDay |
| The title of a page or panel about one day | Wednesday 21 October 2026 | formatLongDate |
| A range of dates | 19 Oct – 25 Oct 2026 | formatDateRange |
| A time on its own | 9:00 am | formatTime |
| A time span, ending the next day | 9:00 am – 7:00 am +1 day | formatTimeRange |
| A date with a time span (a shift) | 21 Oct 2026, 9:00 am – 7:00 am +1 day | formatDateTimeRange |
| A day that comes round every year (a birthday) | 21 Oct | formatDayMonth |
| Activity feeds and notifications only, with the exact time in a tooltip | 3 hours ago | formatRelative |
| Typing a date into a text field | 21/10/2026 | — |
Never ordinals (“21st”), never month-first (“June 20th, 2026”). Helpers in src/lib/date-format.ts; the reasoning is in docs/ux-guides/dates.md. Rule 10 — ruled (FB, 2026-10-26, DES-51).
Border radius
Radius scale, all derived from --radius (0.5rem base).
Trailing icons
An icon after the label (↗, ▾, →) is one size smaller than the leading icon and stays centred: 14px regular, 12px small, 10px extra-small. The kit Button draws it, so never size one yourself. DES-52.
| Size | Leading | Trailing | Buttons |
|---|---|---|---|
| Regular14px label | 16px | 14px | |
| Small12.8px label | 14px | 12px | |
| Extra-small12px label | 12px | 10px |
Text links
icon-trailing: 1em of the text, centred. 14px beside text-sm, 12px beside text-xs.
Leaving the app
SquareArrowOutUpRight leaves the app: a new tab, Xero, the user guide. ArrowUpRight goes to another page inside it, except in a menu, where a paler bare ↗ after the label leaves the app.
One icon per button
The icon that says what happens (▾, ↗) wins over a decorative one, and the new-tab icon always trails. Two places keep the leading icon: the top bar and menu items.
Badges
One badge system, three looks via variant. outline (default): white fill, grey border, dark text — colour shows as a leading dot, or as the icon tint when an icon is present (dot dropped); dot={false} for count pills. solid: tinted fill in a lighter shade of the colour, matching text/icon, no border. strong: saturated fill with white/black text for maximum emphasis.
Avatar
A neutral circle with the person's initials, and their photo over the top when they have one. Every monogram is the same grey: a colour per person carried no meaning and read as a status. xs–md label a row; lg and up identify a person, and are the only sizes a face survives. The rounded square is for the one photo that identifies the person a page is about, like the participant profile header.
Form inputs
Off-white fields, labels above inputs — the text input, textarea, and checkbox are backed by shadcn (Base UI) primitives. Required fields are marked with a red asterisk; optional fields carry no marker.
This field is required.
Helper text appears below.
Select & combobox
Three ways to pick one option, in order of list length. Select opens a styled popup (Base UI) instead of the native menu. Combobox turns the field itself into a type-ahead input. Searchable select keeps a Select's button trigger but puts the search inside the popup — the right choice when the field should still read as a value, not a text box.
Short lists. Click to open the popup.
Type into the field to filter.
Search sits inside the popup, not on the trigger.
Selected → fruit: — · timezone: Australia/Sydney · visibility: —
Why not just a Combobox?
A combobox input invites typing and shows a caret, so a field holding a settled value reads as editable free text. The searchable select keeps the value as a button — closed, it's a Select (with typeahead); open, the search only ever filters. Base UI does the role-swap for us: the trigger keeps aria-expanded, and the popup's input owns role="combobox" and aria-activedescendant, so the filtered list stays announced and arrow keys / Enter / Escape all work.
Multi-select
The same Base UI combobox with `multiple` on — selected options render as removable chips inside the field, which stays a type-ahead filter for adding more. shadcn ships no separate multi-select component; this chips-combobox is its blessed pattern, and every part already lived in ui/combobox.
This notification will only be triggered for Services under the selected categories.
Selected → 01, 02, 03
Interaction details, all from Base UI
Click a chip's × or press Backspace in the empty input to remove the last selection; picking a checked item again deselects it. The popup anchors to the chips container, so it stays attached as the field wraps to more rows. Roving focus covers the chips (arrow keys walk them), and the whole thing is one Combobox multiple — no separate multi-select component to maintain.
Switch
On/off toggles — settings, visibility, record flags. SwitchField pairs a switch with a label and an optional description, and the whole row is the hit target. Whether a boolean is a switch or a checkbox, and which layout it gets, is decided in the guide at /guides/switches-vs-checkboxes.
default — switch leads, text indented
children — revealed content under the label
bordered align="right" — the exception: one toggle as its own section
Date & time pickers
Calendar popovers bound to local date / datetime strings. The date-time picker pairs the calendar with a time field. The date navigator is the task board's stepped date: a labelled fieldset with prev/next and the range picker's preset rail, committing on click.
Selected → date: 2026-06-19 · dateTime: 2026-06-19T09:00
Input group
Inputs composed with leading / trailing add-ons, inline text, and buttons.
Tabs
Three looks. Card tabs: SegmentedSwitch leading a card or page header — the tabs settled on in DES-21 (Participant Supports, the participants list, Cost Codes, the Scheduling Costs breakdown). They read as clickable where the underlined line variant didn't, so line is retired — don't reach for it. default: a segmented control on a muted track, for tabs inside a form or panel. folder: TabsFolderList/TabsFolderTab — tabs that dock to the top edge of a card and paint themselves in its colour, so the strip doubles as the card's header and has room for the active tab's action on the right; use it when there are too many sections for the card tabs (the event drawer's participant panel).
Every support, as a list.
Toggle & toggle group
Standalone Toggle for a single on/off pressed state. ToggleGroup joins related toggles — spacing={0} welds them into a segmented control (single-select), or space them out (spacing={1}) for a multi-select filter row.
Tooltip
Dark chip with an arrow, shown on hover/focus. Composes onto any trigger via render (Base UI), so buttons keep their own styling. The provider (zero delay) lives in the root layout.
Dialog & sheet
Two presentations from the same Base UI dialog. DialogPopup is a centred modal for short, focused confirmations. DialogSheet is a detached right-side drawer for longer content — settings, previews, record detail.
Separator
A one-pixel divider in the border colour — horizontal (full width) or vertical (stretches to its row). Used between menu groups, toolbar clusters, and content blocks.
Toast
Transient confirmations via Sonner (bottom-right, mounted in the root layout). Call toast() for a neutral note, or toast.success / .error / .warning for tone. Used throughout for save/assign/undo feedback.
Pagination
The table footer used by every list screen — participants, forms (manage + section tables), settings templates, and shift approvals. An items-per-page select, a range readout, and prev / next. It always sits in a muted, top-bordered footer strip below the table.
Page size options are fixed at 10 / 25 / 50. Changing the size resets to page 1 — the caller owns that, as the state lives with the list.
Choice cards
A radio group rendered as selectable cards — pick one, with a title + description spelling out what each option means. Built on the accessible RadioGroup primitive (keyboard arrow-key navigation, one tab stop), so the whole card is the label and the selected card border + tint follow the nested radio's checked state.
Selected → plan: team · billing: monthly
Onboarding guide
A full feature built from the primitives above: an assignable, progress-tracked transition checklist with an admin view, a per-assignee preview, custom tasks, per-entity registers, and a support rail. The pieces below are the reusable building blocks — see the live screen for the interactive, stateful parts.
See it running
The section cards, step rows, assignee picker, register tables and “preview as” switcher are stateful (they persist demo progress to localStorage), so they're best explored live rather than embedded here.
Bar
One bar for every progress, utilisation and share bar in the app. There is no track: the done part and the remainder are segments with a card-coloured gap between them, so every segment's edge lands on the card and none of them needs an outline to be legible. Springs to its new share, so a checkbox tick reads as forward motion. Sizes sm (6px — rows, section headers, rails) and md (10px — page headers, breakdowns).
Assignee & avatars
Tasks are assigned to team members via a searchable person popover; once assigned, the person shows as an initials avatar (with a tooltip). Below are the picker's two resting states — open the live guide to use the popover itself.
Guide building blocks
How the primitives compose inside the guide. These are faithful static specimens — the live components carry the real interactive state.
Add your participants
OptionalBring across the people you support so shifts and notes have a home.3 of 6Registers (per-participant / per-worker matrix trackers) and the “preview as” switcher round out the guide — both are live-only.
Rail cards
The support rail alongside the guide (sticky on desktop, stacked on mobile). These are presentational and shown live below — the migration-offer CTA and support button both fire real toasts.
Let us migrate for you
Our team migrates your case notes, participant information and documents from your previous system, so you can focus on running your services.
From $1,500
Your account manager will help you locate and extract the right information from your current CRM.
Need a hand?
Use the Support button in the app for immediate help, or email us — we're across every transition.
support@astalty.com.auSame card shell backs the progress table-of-contents in the live rail.
Confetti
A tiny dependency-free particle burst that fires the moment a section is completed. Deterministic (no random), so it renders identically every time. Replay it below.
Status & impact chips
Live is filled and celebratory. Beta and In development are low-contrast outlines — cautionary. They mean opposite things and must never look alike.
Sidebar card deck
The only persistent ambient surface. Stack edges signal a queue; both footer actions carry equal weight. Dismiss files the item into /whats-new rather than deleting it.
Page tip
A page-scoped update, shown on the page it's about. Replaces the modal-on-arrival pattern for feature education — it costs nothing to ignore and is still there later.
Shift Board — See every unfilled shift in one place and offer it to your team in a couple of clicks.
Feed row
A row on /whats-new. The leading dot marks unread; the right-hand action changes with the update's status and the viewer's role.
A faster calendar with drag-to-reschedule and a redesigned week view.
The columns you picked last time are pre-selected next time.
Scope filter
An always-on filter with two to four mutually exclusive values that narrows the data — InlineChoiceFilter. It shares the filter pills' h-7 box: an optional icon, a muted label naming the dimension, a divider, then the values inline with the selected one tinted. It leads the filter row under the search (FilterBar's leadingFilters, or its own row below the search field) — only the Filter button sits beside a search — and is never pushed to the far end. Not for view modes (list/table, day/week — SegmentedSwitch) or navigation (Tabs).
- The label names the dimension (Status, Type, Assignment); the options are its values.
- Two to four options. More than that is a filter pill with an editor.
- Always has a value — a criterion the user adds and removes is a FilterPill instead.
- Rules: apps/next/docs/ux-guides/scope-filter.md.
Data table
The generic list toolkit — a Linear-style FilterBar (search + type-ahead filter pills), sortable column headers, the shared cell components, and a table footer with page size + range. Fully wired below: search, filter, sort and paginate a sample participant list. (Settings screens use a parallel table-bits toolkit with the same look.)
| NDIS number | Tags | Actions | ||
|---|---|---|---|---|
| Amelia Watson | 430 812 004 | ComplexWheelchair | 142 days ago | |
| Ben Carter | 430 812 118 | Risks | 214 days ago | |
| Chloe Nguyen | 430 812 220 | TherapyMental Health | None recorded | |
| Daniel Osei | 430 812 341 | Non Verbal | No check-in period | |
| Ella Ferreira | 430 812 455 | SMS Only | 140 days ago | |
| Finn Murray | 430 812 567 | Complex | 182 days ago | |
| Grace Liang | 430 812 671 | WheelchairTherapy | 144 days ago | |
| Harper Cole | 430 812 782 | RisksMental Health | None recorded | |
| Isla Roberts | 430 812 893 | Non Verbal | 225 days ago | |
| Jack Dwyer | 430 812 904 | SMS Only | No check-in period |
Status & cells
The small presentational pieces that populate list rows — each isolated here, and all in play in the table above. Domain wrappers over the badge/pill primitives so status reads consistently everywhere.
Row actions
Inline row affordances: copy a value in place, pop out a set of contact methods, or open a small actions menu. Destructive items in the menu stay neutral until hovered.
Long text in a table
A free-text column (feedback details, a reason, a note) is capped and clamped to two lines, so it can't push the columns after it off screen. When a table still overflows, the right edge shades until it's scrolled to the end.
Feedback
3Details clamps to two lines and the full text is one hover (or one row click) away. The right edge shades while columns are still hidden — scroll the table to see it go.
| Reference | Status | Subject | Details | Submitted by | Assigned to | Created | Updated |
|---|---|---|---|---|---|---|---|
| FB-2026-0142 | Acknowledged | Daily Living Team | Really happy with the new support worker. Mia is patient with Dad and always calls ahead if she's running late, which makes a big difference to his mornings. | Emily Nguyen | Zander Armstrong | 19 Oct 2026 | 20 Oct 2026 |
| FB-2026-0141 | Open | Transport | The bus to day program was 40 minutes late twice this week and nobody let us know. Can the driver or the coordinator text when there's a delay? | Liam O'Brien | Priya Raman | 17 Oct 2026 | 17 Oct 2026 |
| FB-2026-0139 | Resolved | Rostering | Thank you for keeping the same two workers on weekends. | Hannah Whitcombe | Admin User | 12 Oct 2026 | 14 Oct 2026 |
Approval column
A queue of records waiting for a decision: status is a badge on every row, Approve is a secondary row action beside the ⋯ menu, and the card's own action is secondary because the page holds more than one table.
Remote Work (Not On Call)
3Status is a badge on every row and never a button. Approve is a secondary row action — row actions are never primary — and the rest live in the ⋯ menu.
| Status | Worker | When | Reason | |
|---|---|---|---|---|
| Pending | Ava Chen Training | Thu 22 Oct 9:00 am – 11:30 am | Completing mandatory manual handling refresher | |
| Pending | Ava Chen Call | Tue 20 Oct 7:00 pm – 7:40 pm | Rostering call about Saturday's cover | |
| Approved | Ava Chen Meeting | Mon 19 Oct 6:00 pm – 7:00 pm | Online team meeting |
Schedule event card
One event on the schedule grid. Colour carries exactly one thing — the state that outranks the others — resolved by a fixed chain: past beats cancelled beats unassigned beats the event type. Published fills tinted; unpublished is always white with a dashed accent border, whichever palette won.
Calendar event block
One event on the Calendar page's grid. Fill is the owner's calendar colour — or the event's own colour tag, with the owner's colour as a left stripe — darkened only as far as white text needs. Under thirty minutes the block folds to one line. The rail's checkboxes wear the same colour.
Participant alerts
Notices pinned to a participant record, shown in full one per row — a warning tone for safety-critical flags and an info tone for context. Distinct from the general-purpose Banner: these carry edit / archive controls.
Allergy — penicillin
Do not administer penicillin. EpiPen located in the front pocket of the day bag.
6 Aug 2026
Prefers afternoon shifts and a consistent support worker where possible.
28 Jul 2026
Report header
The full-bleed header for built report pages — a back link, title, description and a filter row. The report's headline figures open the page body as ReportStatCards: one card per figure, an icon beside the label, equal widths whatever the count. The report filter bar has a fixed date-range pill (presets + a two-month range calendar) and a removable team multi-select.
Team billable hours
Billable hours by team member across the selected period.
Total hours
1,284
Total units
226
Support resources
A User Guide article card — shown under AI answers and feature suggestions in the support widget. Hover to preview the info-tinted affordance.