I'll build a comprehensive, premium mobile-first medical appointment booking SaaS app. Let me start by exploring the project structure.
Let me gather assets and install the icon library in parallel.
Now let me set up the design system CSS and generate a welcome illustration.
Now the data layer with types and rich mock data:
Now the app store (router, theme, role, toasts):
Now the atomic components layer:
Now molecules — search, cards, calendar, charts, sheets:
Now organisms — headers, navigation, phone shell:
Now the onboarding & authentication screens:
Now the patient home, doctor listing and doctor profile screens:
Now the multi-step booking flow and appointments screens:
Now messages, notifications, and medical records screens:
Now payments, profile, settings, and subscription plan screens:
Now the doctor & admin dashboards plus a UI components gallery:
Now the app router, shell, and desktop presentation layer:
Fixing type issues and updating the HTML shell:
Let me replace the hero image with a self-contained composed illustration (safer for single-file builds):
A few polish fixes — layout flex sizing and small class cleanups:
Final cleanup of leftover re-exports:
Medivo — a premium, mobile-first SaaS medical appointment booking app — is built and building cleanly.
Architecture (Atomic Design)
| Layer | File | Contents |
|---|
| Tokens | src/index.css | Brand blue/mint scales, ink surfaces, shadows, 9 keyframe animations, dark variant, skeleton shimmer |
| Data | src/data/mock.ts | Typed models: doctors, clinics, appointments, reviews, chats, records, invoices, plans, analytics series |
| State | src/lib/store.tsx | Stack router (push/replace/reset/back + direction), role, dark mode, language, toasts, plan |
| Atoms | components/atoms.tsx | Button (7 variants/3 sizes), IconButton, Card, Badge, IconTile, Chip, Avatar, Input, TextArea, Switch, Checkbox, Stars, Skeleton, Segmented, Progress, Spinner, Divider |
| Molecules | components/molecules.tsx | SearchBar, SectionHeader, StatCard, Sparkline, BarChart, LineChart, DonutChart, DoctorCard, DoctorMiniCard, QuickAction, ListRow, EmptyState, BottomSheet, Dialog, Calendar, Stepper |
| Organisms | components/organisms.tsx | Screen, TopBar, role-aware BottomNav, ToastHost, StatusBar, PhoneShell |
24 screens delivered
- Onboarding/Auth: animated Splash (ECG draw + pulse rings), Welcome with composed floating-card hero, Login (role picker, biometrics, Google/Apple), Register (password strength), Forgot password, 6-digit OTP with auto-advance & resend timer
- Patient: Home (search, next-visit card, 5 quick actions, categories, nearby/available-today/popular doctors, skeleton loading), Doctor listing (live filters sheet: specialty, gender, experience, price, rating, availability + sorting), Doctor profile (hero photo, stats, About/Reviews/Clinic tabs, sticky price CTA + video/chat)
- Booking: 5-step flow (clinic → calendar → time slots → patient details → payment with Stripe/PayPal/Apple/Google Pay + promo) and animated confirmation
- My Appointments: upcoming/completed/cancelled, join call, reschedule bottom-sheet calendar, cancel dialog with refund note
- Comms: Notifications (filters, unread, mark-all), Messages (stories row + threads), Chat (text/image/voice waveform/PDF bubbles, attachment sheet, recording state), Medical Records (Rx/labs/imaging) and a dark PDF viewer
- Business: Payments (balance card, invoices, history charts, payment methods, virtual card), Profile, Settings (EN/AR/FR, notifications, security, biometrics, dark mode, GDPR), Subscription plans (monthly/yearly, comparison matrix)
- Pro: Doctor dashboard (availability toggle, KPIs, revenue chart, schedule, requests, weekly availability, notes sheet) and Admin console (MRR, growth line chart, plan donut, approvals, manage tiles) plus a Design System gallery
Desktop shows a branded side panel with a jump-to-screen index and theme toggle; mobile renders edge-to-edge with a device frame on tablets/desktop.
Files built: src/index.css, src/data/mock.ts, src/lib/store.tsx, src/components/atoms.tsx, src/components/molecules.tsx, src/components/organisms.tsx, src/screens/onboarding.tsx, src/screens/patient-home.tsx, src/screens/booking.tsx, src/screens/comms.tsx, src/screens/account.tsx, src/screens/pro.tsx, src/App.tsx, index.html