Prototype directory

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.

Primary (accent)
#2563eb
Primary light
#3b82f6
Navy (button)
#1e3a5f
Sidebar
#192842
Success
#22c55e
Info
#3b82f6
Destructive
oklch(.58 .25 27)
Secondary
gray-100
Muted
gray-50
Background
gray-100
Card / popover
#ffffff
Border
gray-200
Foreground
gray-900
Muted fg
gray-500
Ring
#60a5fa

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.

25
50
100
200
300
400
500
600
700
800
900
950

Typography

Inter throughout — both headings (font-heading) and body text (font-sans) resolve to the same self-hosted Inter 4.1.

Headings · Inter

Participant overview

Body · Inter

Participant overview

text-xs · 12pxThe quick brown fox
text-sm · 14pxThe quick brown fox
text-base · 16pxThe quick brown fox
text-lg · 18pxThe quick brown fox
text-xl · 20pxThe quick brown fox
text-2xl · 24pxThe quick brown fox
text-3xl · 30pxThe quick brown fox
AaNormal 400
AaMedium 500
AaSemibold 600
AaBold 700

Date formats

One shape per kind of date, so the same date reads the same on every screen. Rule 10.

WhereExampleHelper
A date in a table (money tables too), a read-out or a header band21 Oct 2026formatDate
When the time matters as much as the day21 Oct 2026, 9:00 amformatDateTime
A day inside a range the page already shows (a week of shifts)Wed 21 OctformatDay
The title of a page or panel about one dayWednesday 21 October 2026formatLongDate
A range of dates19 Oct – 25 Oct 2026formatDateRange
A time on its own9:00 amformatTime
A time span, ending the next day9:00 am – 7:00 am +1 dayformatTimeRange
A date with a time span (a shift)21 Oct 2026, 9:00 am – 7:00 am +1 dayformatDateTimeRange
A day that comes round every year (a birthday)21 OctformatDayMonth
Activity feeds and notifications only, with the exact time in a tooltip3 hours agoformatRelative
Typing a date into a text field21/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).

sm
md
lg
xl
2xl
3xl
4xl
full

Buttons

Variant is the button's role, size is where it sits. Read the buttons guide for which one to use where. Base UI button; icons use data-icon for correct padding.

Choosing between them? Read the buttons guide.

Primary
variant="default" · one per surface
Secondary
variant="secondary" · other actions
Tertiary
variant="ghost" · dismiss · icon · low weight
Control
variant="outline" · changes the view
Destructive
variant="destructive" · confirm dialogs only
Link
variant="link" · inline in text
Sizes
xs inline · sm cards, toolbars, rows · default page headers, footers
Icon only
icon-xs · icon-sm · icon — match the row's size
In context
header group — primary last
Split button
SplitButton — primary action with a persisted mode menu

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.

SizeLeadingTrailingButtons
Regular14px label16px14px
Small12.8px label14px12px
Extra-small12px label12px10px

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.

A button
not
A menu trigger
not
The top bar keeps its icons and takes no ↗User Guide says “opens in a new tab” in its tooltip and name. The book is all that's left when the bar goes icon-only.
not
A menu item keeps its icon, with a paler bare ↗ right after its labelThe icon holds the column, so the marker is the plain arrow, not the boxed one. The far-right slot is the submenu chevron's.
Sidebar Behaviour
My Profile
Training
Log out
not
Sidebar Behaviour
My Profile
Training
Log out

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.

Outline · colours
variant="outline"
grayredroseamberyellowgreenbluecyanpurpleindigo
Outline · with icon
data-icon
VerifiedDraftNew12
Solid · colours
variant="solid"
grayredroseamberyellowgreenbluecyanpurpleindigo
Strong · colours
variant="strong"
grayredroseamberyellowgreenbluecyanpurpleindigo
With icon
solid + strong
OverridePaidInfo

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.

Sizes
xs 4 · sm 7 · md 9 · lg 10 · xl 12 · 2xl 16
With a photo
initials stay underneath
Rounded square
shape="square"
Labelling a row
one neutral tint
Alex Rivera
Sam Chen
Jordan Blake
Morgan Lee
Taylor Reed
Casey Kim

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

Sizes
sm · default · disabled

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

DateNavigator — Mondays only, weekly presets
Week Starting

Input group

Inputs composed with leading / trailing add-ons, inline text, and buttons.

https://
$
AUD

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

variant="default"
Overview panel — a summary of the participant.
Card tabs · SegmentedSwitch · optionClassName="px-4"

Every support, as a list.

TabsFolderList / TabsFolderTab
The strip is the card's header — the action on the right belongs to the tab you're on, not to the card.

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.

Toggle
pressed / onPressedChange
Group · segmented
spacing={0} · single
Group · multi
spacing={1} · multi
[bold]

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.

Account
Billing
EditDuplicateArchive

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.

Table rows…
26-50 of 128

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.

Open the guide
GuideHeaderGuideSectionCardGuideStepRowAssigneePickerRegisterTableViewAsSwitcherGuideRailBarConfettiBurst

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

Just started
3%
Halfway
50%
Nearly there
85%
Complete
100%
Sizes
size="sm" | "md"
Usage
kind="usage" — amber from 80%, red at 100%
Segmented
segments + total

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.

Unassigned
dashed trigger
Assign
Assigned
initials avatar

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

Optional
Bring across the people you support so shifts and notes have a home.
Import your participant list from a spreadsheet
Set each participant's plan dates and budgetsAssign

Registers (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.au

Same 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.

Release status
StatusChip
LivePublic betaPrivate betaIn developmentBeing retired
Impact
ImpactChip
Action may be neededNew featureImprovement

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.

What’s new1/4

Shift Board

See every unfilled shift in one place and offer it to your team.

Learn moreDismiss

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 BoardSee every unfilled shift in one place and offer it to your team in a couple of clicks.

Watch (3:12)Got it

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.

New CalendarPublic beta

A faster calendar with drag-to-reschedule and a redesigned week view.

Exports remember your column selectionLive

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

With an icon
label · icon · 2 options
Direct Charges
Without an icon
icon is optional
Search Mode
Three options
"All" first when there is one
Assignment
Disabled
disabled · disabledReason → tooltip
Direct Charges
On the filter row
FilterBar leadingFilters
Status
  • 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.)

Count tiles
CountTiles — Stripe-style one-click filters with provider-wide counts; `attention` puts a red dot beside a non-zero count
NDIS numberTagsActions
Amelia Watson430 812 004ComplexWheelchair142 days ago
Ben Carter430 812 118Risks214 days ago
Chloe Nguyen430 812 220TherapyMental HealthNone recorded
Daniel Osei430 812 341Non VerbalNo check-in period
Ella Ferreira430 812 455SMS Only140 days ago
Finn Murray430 812 567Complex182 days ago
Grace Liang430 812 671WheelchairTherapy144 days ago
Harper Cole430 812 782RisksMental HealthNone recorded
Isla Roberts430 812 893Non Verbal225 days ago
Jack Dwyer430 812 904SMS OnlyNo check-in period
1-10 of 12

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.

Form status
forms/StatusBadge
PublishedUnpublishedArchived
Form type
forms/TypeBadge
InternalExternal
Auto-save
settings/SaveStatusPill
SavedUnsaved changesSaving…
Check-in
participants/CheckinCell
141 days ago214 days agoNone recordedNo check-in period
Tags
participants/TagBadges
RisksComplexWheelchairTherapy

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.

Copyable text
participants/CopyableText
430 812 004hello@astalty.com.au
Contact popover
participants/ContactPopover
Actions menu
participants/ActionsMenu

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

3

Details 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.

ReferenceStatusSubjectDetailsSubmitted byAssigned toCreatedUpdated
FB-2026-0142AcknowledgedDaily 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 NguyenZander Armstrong19 Oct 202620 Oct 2026
FB-2026-0141OpenTransport

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'BrienPriya Raman17 Oct 202617 Oct 2026
FB-2026-0139ResolvedRostering

Thank you for keeping the same two workers on weekends.

Hannah WhitcombeAdmin User12 Oct 202614 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)

3

Status 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.

StatusWorkerWhenReason
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.

Support
published · sky
Support, unpublished
white + dashed accent
Group support
published · indigo
Unpaid break
green
Internal shift
cyan
Unassigned
grey — beats the event type
Cancelled
red — beats unassigned
Past
grey — beats everything
Sleepover
chip in the time row

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.

Own calendar
navy fill, title then time
Plan review – Aileen Greenholt
10- 11:30am
Colour tag
the event's own colour, owner stripe on the left
Service Agreement Review
10- 11:30am
12 Wattle St, Fitzroy
Under 30 minutes
one line — title, then the start
Check in with Alford,
1
Light colour
black ink once the fill is light enough
Shift handover
10- 11:30am
System calendar
all-day chip with its icon
Pearline's Birthday
Coloured checkbox
ColourCheckboxRow — a calendar's colour on the box, border when clear, fill when ticked

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.