Skip to main content

UI/UX Design Overview

This document provides an overview of the UI/UX design system and screen specifications for iHospita HMS.


Design Principles

1. Clarity First

  • Clear visual hierarchy
  • Obvious call-to-action buttons
  • Minimal cognitive load

2. Efficiency

  • Minimize clicks for common tasks
  • Keyboard shortcuts for power users
  • Quick search and filters

3. Consistency

  • Unified component library
  • Consistent navigation patterns
  • Predictable interactions

4. Accessibility

  • WCAG 2.1 AA compliance
  • High contrast support
  • Screen reader friendly

Technology Stack

ApplicationFrameworkUI Library
PortalReact + ViteAnt Design v5
ConsoleNext.js 15Ant Design v5
Queue DisplayNext.js 15Tailwind CSS
LandingNext.js 15Tailwind + shadcn/ui

Color Palette

Primary Colors

ColorHexUsage
Primary#1890ffButtons, links, active states
Primary Dark#096dd9Hover states
Primary Light#40a9ffBackgrounds

Semantic Colors

ColorHexUsage
Success#52c41aSuccess messages, confirmations
Warning#faad14Warnings, cautions
Error#ff4d4fErrors, destructive actions
Info#1890ffInformation messages

Neutral Colors

ColorHexUsage
Title#262626Headings
Text#595959Body text
Secondary#8c8c8cSecondary text
Border#d9d9d9Borders, dividers
Background#f5f5f5Page backgrounds

Typography

Font Family

  • Primary: Inter, -apple-system, BlinkMacSystemFont
  • Khmer: Battambang, Noto Sans Khmer

Font Sizes

ScaleSizeUsage
h138pxPage titles
h230pxSection titles
h324pxCard titles
h420pxSubsections
body14pxBody text
small12pxCaptions, labels

Layout Structure

Portal Layout

┌─────────────────────────────────────────────────────────────────┐
│ Header: Logo │ Search │ Notifications │ User Menu │
├──────────┬──────────────────────────────────────────────────────┤
│ │ │
│ Sidebar │ Main Content Area │
│ │ │
│ • Menu │ ┌────────────────────────────────────────────────┐ │
│ • Items │ │ Page Header with Breadcrumb │ │
│ │ ├────────────────────────────────────────────────┤ │
│ │ │ │ │
│ │ │ Content Area │ │
│ │ │ │ │
│ │ └────────────────────────────────────────────────┘ │
│ │ │
└──────────┴──────────────────────────────────────────────────────┘

Screen Categories

Portal Screens

  1. Dashboard - Overview and key metrics
  2. Patient Management - Patient list, profile, registration
  3. Enrollment - Service selection, invoice creation
  4. Clinical - Consultation, prescriptions
  5. Pharmacy - Dispensing, inventory
  6. Laboratory - Test orders, results
  7. Billing - Payments, receipts

Console Screens

  1. Hospital Management - CRUD operations
  2. User Management - Admin user creation
  3. Analytics - Platform metrics

Component Library

Based on Ant Design v5:

  • Buttons: Primary, Secondary, Text, Link
  • Forms: Input, Select, DatePicker, Upload
  • Tables: Pro Table with sorting, filtering
  • Cards: Standard, Statistics, Feature
  • Modals: Confirmation, Form, Information
  • Notifications: Toast, Alert, Message

Responsive Breakpoints

BreakpointWidthTarget
xs< 576pxMobile
sm>= 576pxSmall tablets
md>= 768pxTablets
lg>= 992pxSmall desktops
xl>= 1200pxDesktops
xxl>= 1600pxLarge screens