Calm Dashboard UI
Create dashboards that feel composed, practical, and consistent across desktop and mobile. The identity comes from spacing, typography, alignment, and predictable interactions. Use decoration sparingly.
Begin with the product
Inspect the existing app, component system, routing, and target pages. Preserve working behavior and the user's stack. Decide the primary task, relevant navigation, important data, and actions before arranging cards.
For a new interface, start with assets/calm-dashboard.css and the working component preview. When image viewing is available, inspect the desktop visual reference. The CSS is framework independent and namespaced with cd-. Adapt it to the project's tokens/components rather than layering a second conflicting theme. Do not copy the preview's mock content as product requirements.
For an existing interface, map its components to these conventions and change only the requested scope. This skill concerns presentation and interaction; it does not authorize backend changes, data migration, deployment, or publishing.
Recognizable defaults
- Neutral surfaces: off-white pages, white panels, understated gray borders. Dark mode uses charcoal and near-black, with no green-tinted background wash.
- One configurable accent. Green is the included starting palette, not a requirement for every product. Keep white labels on filled primary actions; use the dedicated, deeper action token for contrast.
- Inter when already available; otherwise use a competent local sans-serif stack. Body 14px, secondary copy 12–13px, desktop page titles 24/32px at weight 600, mobile titles 22/28px.
- A 272px desktop sidebar that collapses to 64px. Mobile navigation becomes a sliding drawer, not a squeezed desktop rail.
- One page title in the content area. The top bar holds utilities and the account menu; it does not repeat that title.
- Rounded pill actions and compact filter triggers; form fields use a softer rectangular 14px radius. Panel radius 12px, dialog radius 16px.
- Plain status labels with a small solid indicator. Counts use ordinary or tabular text. Avoid pale colored status pills, tinted number badges, decorative icon tiles, gradients, glows, or ornamental filler.
- Line icons, usually 16–20px, from one existing family. Icon-only buttons have accessible names and usable touch targets.
Apply the relevant references
Read only what the work needs:
| Work | Reference |
|---|---|
| Palette, density, layout, typography, branding | references/design-system.md |
| Sidebar, tables, filters, forms, tabs, accounts, states | references/components.md |
| Dropdowns, dialogs, drawers, animation, flicker | references/motion-and-overlays.md |
| Implementation review, mobile and keyboard checks | references/verification.md |
Interaction requirements
Keep filters and pagination in place. Background queries must not replace a populated table with a full-page loader, remount an open control, move keyboard focus, or scroll the page to the top. Apply multiple checkbox selections while the popover stays open; debounce expensive work instead of reloading the page per selection.
Keep controls aligned in a shared padded toolbar. Short filters fit their labels; full-width fields are for forms. Long values may truncate in a trigger, but options remain readable. Keep the chevron inset at about 10px from the right edge.
On mobile, preserve compact related actions on one row when they fit. Stack at a genuine content constraint. Tables scroll inside their own container; the document itself must not overflow sideways. Account for the keyboard and safe-area insets.
Use product-styled confirmation dialogs for consequential actions. State the affected item or count, provide explicit confirm/cancel labels, and show pending/error results. Respect the actual application's deletion/recovery behavior.
Animate open and close. Maintain stable keys, retain the closing overlay until its animation ends, and make it non-interactive during exit. Let the positioning library finish measuring before an enter animation starts. Never add animation: ... !important to a positioned dropdown: it can override the library's temporary inline animation: none and cause a flash.
Use semantic controls or established accessible primitives. Prefer the project's current component library; do not install a new stack just for this appearance. Honor reduced-motion preferences with a short fade and no large movement.
Finish against evidence
Compare a complete page and its open states, not just individual components. Verify at 360–390px, around the 760px navigation breakpoint, and a desktop width. Include light and dark themes, long labels, multiple selections, and nested dropdowns inside a mobile sheet.
Run relevant existing checks. Report what changed, what was actually verified, and any untested environment, such as physical Android/iOS hardware. Do not claim an interaction works because its CSS exists.