Skip to content

[UI/UX Design] Add density modes (Comfortable, Cozy, Compact) across data-dense views #157

Description

@thlpkee20-wq

Description

Power users browsing ledger, audit trail, and reports want denser views. Add Comfortable/Cozy/Compact density modes via design tokens that adjust line-height, padding, and row height, with a per-user toggle.

Requirements and context

  • Must be accessible (WCAG 2.1 AA), responsive, and documented in the design system
  • Should be consistent with existing patterns and easy to review
  • Relevant code: src/index.css
  • Compact mode must still meet 44x44 minimum touch target on mobile interactive controls

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b uiux/density-modes
  • Implement changes
    • Define density tokens and corresponding CSS variables
    • Add density toggle in user preferences
    • Document component opt-in/opt-out
  • Validate accessibility and responsive assumptions

Test and commit

  • Run checks
    • npm run lint and component/visual tests
  • Cover edge cases
    • Tables, forms, navigation, mobile touch targets, persistence across sessions
  • Include screenshots/before-after and accessibility (axe) notes

Example commit message

design: density modes via tokens

Guidelines

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions