Premium Healthcare Redesign
Overview
Transform existing React healthcare SaaS pages into premium, modern interfaces with Apple/Uber-inspired aesthetics while guaranteeing zero breakage of existing logic. This skill enables complete visual redesigns where typography, colors, layouts, and component structures can be reimagined freely, but all hooks, state, API calls, and event handlers remain untouched.
Redesign Workflow
Follow this workflow for every redesign request:
Step 1: Pre-Redesign Analysis
Before making any changes, thoroughly analyze the existing code:
- Read the entire component to understand its structure and purpose
- Identify and document all protected logic:
- All hooks (useState, useEffect, useCallback, useMemo, custom hooks) - note their order
- State variables and setters
- API calls (endpoints, parameters, payloads, error handling)
- Event handlers (onClick, onChange, onSubmit, etc.)
- Props received and passed to children
- Conditional rendering logic
- Form validation patterns
- Refs and side effects
- Create a mental map of what can change (visuals) vs. what cannot (logic)
- Read references/logic-preservation-checklist.md to reinforce critical rules
Step 2: Design Thinking & Uniqueness
Before diving into code, commit to a DISTINCTIVE aesthetic direction that elevates the healthcare SaaS beyond generic interfaces:
Understand the context:
- Is this for patients or practitioners?
- What's the emotional tone? (Calming, efficient, empowering, professional)
- What makes this interface memorable?
Choose a BOLD aesthetic direction:
- NOT: Generic healthcare blue-and-white, predictable Material Design
- YES: Refined luxury (soft neutrals, sophisticated typography), Modern brutalism (bold type, dramatic contrast), Organic warmth (natural colors, flowing layouts), Editorial elegance (magazine-inspired, generous white space), Tech-forward (subtle gradients, glass morphism, modern sans-serif)
- Commit fully to the chosen direction - half-measures create forgettable designs
Make distinctive typography choices:
- Avoid: Inter, Roboto, Arial, generic system fonts
- Use: Distinctive pairings that match your aesthetic direction
- For luxury: "Instrument Serif" + "Söhne"
- For modern tech: "Sora" + "DM Sans"
- For editorial: "Fraunces" + "Synonym"
- For clean minimal: "Satoshi" + "Inter" (use sparingly)
- Vary between designs - never converge on the same font across multiple pages
Craft memorable visual details:
- Color: Go beyond blue - consider deep teals, soft lavenders, warm grays, sage greens
- Backgrounds: Not just white - try gradient meshes, subtle textures, color-shifted panels
- Micro-interactions: Smooth transitions (200-300ms), hover states that surprise, loading states that delight
- Spatial composition: Asymmetric layouts, overlapping elements, unexpected white space
Differentiation principle: Ask "What's the ONE thing users will remember about this interface?" Then design around that.
CRITICAL: Each redesign should feel uniquely crafted for its specific context. No two patient dashboards should look identical. No two practitioner schedules should use the same visual language. Avoid falling into a "house style" - interpret each interface fresh.
Step 3: Design Planning
With inspiration screenshots or general premium aesthetic goals:
- Read references/premium-design-patterns.md for foundational design principles
- Plan the visual transformation:
- New layout structure (while keeping same component hierarchy)
- Distinctive color scheme that fits the chosen aesthetic direction
- Typography system with characterful font choices
- Generous or intentional spacing patterns
- Modern component styling (cards, buttons, inputs) with unique touches
- Polished interactions (transitions, hover states, micro-animations)
- Consider shadcn/ui components as a base, but customize extensively to match your aesthetic
- Ensure accessibility is maintained (WCAG AA contrast, focus states, ARIA labels)
Step 4: Redesign Execution
Execute the redesign with extreme care for logic preservation AND commitment to distinctive aesthetics:
- Start with a copy of the original component
- Keep all hooks in exact same order at the top of the component
- Replace styling with creative intention:
- Apply your distinctive typography system with custom font imports
- Implement your chosen color palette with CSS variables for consistency
- Add wrapper divs for creative layouts without disrupting logic flow
- Create unique component styling that reflects your aesthetic direction
- Layer in micro-interactions and transitions (CSS or Framer Motion)
- Add atmospheric details: gradients, subtle shadows, texture overlays
- Preserve all functional code (CRITICAL):
- Keep all useState, useEffect, and custom hooks identical
- Keep all API calls with same parameters and payloads
- Keep all event handlers connected correctly
- Keep all conditional rendering logic unchanged
- Test mentally as you go:
- After each change, verify handlers are still connected
- Ensure state flows unchanged
- Check that API calls remain intact
Balance: Your creative choices on typography, colors, and layout should be BOLD. Your treatment of existing logic should be CONSERVATIVE. These are not in conflict - one enables the other.
Step 5: Verification
After redesign, verify nothing broke:
- Visual inspection:
- All interactive elements visible and distinctively styled
- Layout responsive and cohesive with chosen aesthetic
- Typography hierarchy clear and characterful
- Colors sophisticated and accessible
- Micro-interactions smooth and delightful
- Logic verification:
- Same number of hooks in same order
- All event handlers still connected
- API calls unchanged
- State management intact
- Conditional logic preserved
- Use references/logic-preservation-checklist.md for comprehensive verification
Step 6: Final Polish & Atmosphere
Add distinctive finishing touches that complete the experience:
- Micro-interactions & motion:
- Smooth transitions on all interactive elements (use transition-all duration-200)
- Creative hover states that match your aesthetic (not just opacity changes)
- Loading states with personality (skeleton loaders, animated spinners)
- Page load animations with staggered reveals (animation-delay)
- Atmospheric details:
- Background treatments: gradients, subtle patterns, color-shifted panels
- Depth through layered shadows and transparency
- Decorative elements that reinforce the aesthetic (custom cursors, borders, dividers)
- Context-specific textures or effects
- Refinement:
- Perfect spacing consistency throughout
- Typography scale harmony (use rem units, clear hierarchy)
- Color usage that follows your palette strictly
- Accessibility polish (focus rings, hover states, ARIA labels)
Remember: The goal is not just "premium" - it's MEMORABLE. Every redesign should have a clear point of view that makes it stand out from generic healthcare interfaces.
Handling Design Inspiration Screenshots
When the user provides inspiration screenshots:
- Analyze the inspiration for:
- Color palette and mood
- Spacing and layout patterns
- Typography hierarchy
- Component styling (buttons, cards, inputs)
- Interaction patterns
- Adapt, don't copy:
- Extract design principles rather than exact implementations
- Adjust for healthcare context (trust, professionalism, clarity)
- Ensure patterns work for both patient and practitioner interfaces
- Create a design system if requested:
- Extract reusable color variables
- Define typography scales
- Document button and component styles
- Can be applied consistently across multiple pages
Common Redesign Patterns
Dashboard Transformation
Before: Cramped, basic layout
After: Spacious card-based layout with generous white space
// Keep all hooks, state, and API calls exactly as they were
// Only change visual structure and styling
<div className="min-h-screen bg-slate-50">
<main className="max-w-7xl mx-auto px-6 py-8">
<h1 className="text-4xl font-semibold text-slate-900 mb-8">Dashboard</h1>
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6">
{/* Each card with existing logic, new styling */}
<div className="bg-white rounded-2xl shadow-sm border border-slate-100 p-6">
{/* Original content with preserved handlers */}
</div>
</div>
</main>
</div>
Form Redesign
Before: Basic form with simple inputs
After: Clean, modern form with proper spacing and styling
// Preserve all validation logic, onChange handlers, and onSubmit
// Update only visual presentation
<form className="max-w-2xl mx-auto space-y-6">
<div>
<label className="block text-sm font-medium text-slate-700 mb-2">
Patient Name
</label>
<input
value={name}
// PRESERVED
className="w-full px-4 py-3 rounded-xl border border-slate-200 focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 transition-all"
/>
</div>
<button
type="submit"
className="w-full px-6 py-3 bg-blue-600 text-white rounded-xl font-medium hover:bg-blue-700 transition-all shadow-sm hover:shadow-md"
>
Save Patient
</button>
</form>
Table Redesign
Before: Heavy borders, cramped spacing
After: Clean, spacious table with subtle styling
// Keep all data mapping logic, sorting, and click handlers
// Update only visual styling
<div className="bg-white rounded-2xl shadow-sm border border-slate-100 overflow-hidden">
<table className="w-full">
<thead className="bg-slate-50 border-b border-slate-200">
<tr>
<th className="px-6 py-4 text-left text-sm font-semibold text-slate-900">
Name
</th>
{/* More headers */}
</tr>
</thead>
<tbody className="divide-y divide-slate-100">
{patients.map(patient => ( // PRESERVED mapping logic
<tr key={patient.id} className="hover:bg-slate-50 transition-colors">
<td className="px-6 py-4 text-slate-700">{patient.name}</td>
<td className="px-6 py-4">
<button
=> handleEdit(patient.id)} // PRESERVED handler
className="text-blue-600 hover:text-blue-700"
>
Edit
</button>
</td>
</tr>
))}
</tbody>
</table>
</div>
Key Principles (Critical)
- Logic is Sacred: Hooks, state, API calls, and handlers are completely untouchable
- Visual Freedom: Layout, colors, typography, spacing, and component structure can change freely
- Preserve Functionality: Every button, input, and interaction must work exactly as before
- Distinctive Aesthetics: Each redesign should be memorable and context-specific, not generic
- Accessibility: Maintain contrast ratios, focus states, and semantic HTML
- shadcn/ui as Base: Use shadcn/ui components when appropriate, but customize extensively
Avoiding Generic Healthcare UI
NEVER create:
- Predictable blue-and-white medical interfaces
- Generic sans-serif typography (Inter, Roboto, Arial everywhere)
- Cookie-cutter Material Design patterns
- Identical layouts across different page types
- Timid, safe color choices without personality
- Flat, lifeless interactions with no motion or delight
- Dense, cramped layouts that feel utilitarian but uninspired
ALWAYS strive for:
- Distinctive font pairings that elevate the experience
- Sophisticated color palettes beyond healthcare blue (teals, lavenders, warm grays, sage)
- Unique layouts that fit the content (asymmetry, overlap, generous white space)
- Micro-interactions that surprise and delight
- Atmospheric backgrounds (gradients, textures, subtle patterns)
- Clear aesthetic point-of-view (luxury, editorial, modern tech, organic, brutalist)
- Context-specific design choices (patient dashboards ≠ practitioner schedules)
Design variation mandate: If you redesign 5 patient dashboards, they should use 5 different aesthetic approaches. Vary typography, color schemes, layout patterns, and visual treatments. Never converge on a "house style" - interpret each interface fresh based on its specific context and user needs.
References
- references/premium-design-patterns.md: Detailed design principles, component patterns, and examples for Apple/Uber-like aesthetics
- references/logic-preservation-checklist.md: Comprehensive checklist and rules for ensuring zero logic breakage during redesign
1---2name: premium-healthcare-redesign3description: Redesign React components and pages for healthcare SaaS with premium Apple/Uber-like aesthetics while preserving ALL existing logic, hooks, state management, API calls, and event handlers. Use this skill when the user requests to redesign, make premium, improve the look of, or beautify existing React code. Also use when the user provides design inspiration screenshots to adapt. The skill treats all functionality as sacred and focuses purely on visual transformation - layout, styling, typography, colors, spacing, and modern component structures can change freely, but hooks order, state management, backend communication, and all interactions must remain 100% intact.4---5
6# Premium Healthcare Redesign
7
8## Overview
9
10Transform existing React healthcare SaaS pages into premium, modern interfaces with Apple/Uber-inspired aesthetics while guaranteeing zero breakage of existing logic. This skill enables complete visual redesigns where typography, colors, layouts, and component structures can be reimagined freely, but all hooks, state, API calls, and event handlers remain untouched.
11
12## Redesign Workflow
13
14Follow this workflow for every redesign request:
15
16### Step 1: Pre-Redesign Analysis
17
18Before making any changes, thoroughly analyze the existing code:
19
201. **Read the entire component** to understand its structure and purpose
212. **Identify and document all protected logic**:
22 - All hooks (useState, useEffect, useCallback, useMemo, custom hooks) - note their order
23 - State variables and setters
24 - API calls (endpoints, parameters, payloads, error handling)
25 - Event handlers (onClick, onChange, onSubmit, etc.)
26 - Props received and passed to children
27 - Conditional rendering logic
28 - Form validation patterns
29 - Refs and side effects
303. **Create a mental map** of what can change (visuals) vs. what cannot (logic)
314. **Read references/logic-preservation-checklist.md** to reinforce critical rules
32
33### Step 2: Design Thinking & Uniqueness
34
35Before diving into code, commit to a DISTINCTIVE aesthetic direction that elevates the healthcare SaaS beyond generic interfaces:
36
371. **Understand the context**:
38 - Is this for patients or practitioners?
39 - What's the emotional tone? (Calming, efficient, empowering, professional)
40 - What makes this interface memorable?
41
422. **Choose a BOLD aesthetic direction**:
43 - **NOT**: Generic healthcare blue-and-white, predictable Material Design
44 - **YES**: Refined luxury (soft neutrals, sophisticated typography), Modern brutalism (bold type, dramatic contrast), Organic warmth (natural colors, flowing layouts), Editorial elegance (magazine-inspired, generous white space), Tech-forward (subtle gradients, glass morphism, modern sans-serif)
45 - Commit fully to the chosen direction - half-measures create forgettable designs
46
473. **Make distinctive typography choices**:
48 - **Avoid**: Inter, Roboto, Arial, generic system fonts
49 - **Use**: Distinctive pairings that match your aesthetic direction
50 - For luxury: "Instrument Serif" + "Söhne"
51 - For modern tech: "Sora" + "DM Sans"
52 - For editorial: "Fraunces" + "Synonym"
53 - For clean minimal: "Satoshi" + "Inter" (use sparingly)
54 - Vary between designs - never converge on the same font across multiple pages
55
564. **Craft memorable visual details**:
57 - **Color**: Go beyond blue - consider deep teals, soft lavenders, warm grays, sage greens
58 - **Backgrounds**: Not just white - try gradient meshes, subtle textures, color-shifted panels
59 - **Micro-interactions**: Smooth transitions (200-300ms), hover states that surprise, loading states that delight
60 - **Spatial composition**: Asymmetric layouts, overlapping elements, unexpected white space
61
625. **Differentiation principle**: Ask "What's the ONE thing users will remember about this interface?" Then design around that.
63
64**CRITICAL**: Each redesign should feel uniquely crafted for its specific context. No two patient dashboards should look identical. No two practitioner schedules should use the same visual language. Avoid falling into a "house style" - interpret each interface fresh.
65
66### Step 3: Design Planning
67
68With inspiration screenshots or general premium aesthetic goals:
69
701. **Read references/premium-design-patterns.md** for foundational design principles
712. **Plan the visual transformation**:
72 - New layout structure (while keeping same component hierarchy)
73 - Distinctive color scheme that fits the chosen aesthetic direction
74 - Typography system with characterful font choices
75 - Generous or intentional spacing patterns
76 - Modern component styling (cards, buttons, inputs) with unique touches
77 - Polished interactions (transitions, hover states, micro-animations)
783. **Consider shadcn/ui components** as a base, but customize extensively to match your aesthetic
794. **Ensure accessibility** is maintained (WCAG AA contrast, focus states, ARIA labels)
80
81### Step 4: Redesign Execution
82
83Execute the redesign with extreme care for logic preservation AND commitment to distinctive aesthetics:
84
851. **Start with a copy** of the original component
862. **Keep all hooks in exact same order** at the top of the component
873. **Replace styling with creative intention**:
88 - Apply your distinctive typography system with custom font imports
89 - Implement your chosen color palette with CSS variables for consistency
90 - Add wrapper divs for creative layouts without disrupting logic flow
91 - Create unique component styling that reflects your aesthetic direction
92 - Layer in micro-interactions and transitions (CSS or Framer Motion)
93 - Add atmospheric details: gradients, subtle shadows, texture overlays
944. **Preserve all functional code** (CRITICAL):
95 - Keep all useState, useEffect, and custom hooks identical
96 - Keep all API calls with same parameters and payloads
97 - Keep all event handlers connected correctly
98 - Keep all conditional rendering logic unchanged
995. **Test mentally as you go**:
100 - After each change, verify handlers are still connected
101 - Ensure state flows unchanged
102 - Check that API calls remain intact
103
104**Balance**: Your creative choices on typography, colors, and layout should be BOLD. Your treatment of existing logic should be CONSERVATIVE. These are not in conflict - one enables the other.
105
106### Step 5: Verification
107
108After redesign, verify nothing broke:
109
1101. **Visual inspection**:
111 - All interactive elements visible and distinctively styled
112 - Layout responsive and cohesive with chosen aesthetic
113 - Typography hierarchy clear and characterful
114 - Colors sophisticated and accessible
115 - Micro-interactions smooth and delightful
1162. **Logic verification**:
117 - Same number of hooks in same order
118 - All event handlers still connected
119 - API calls unchanged
120 - State management intact
121 - Conditional logic preserved
1223. **Use references/logic-preservation-checklist.md** for comprehensive verification
123
124### Step 6: Final Polish & Atmosphere
125
126Add distinctive finishing touches that complete the experience:
127
1281. **Micro-interactions & motion**:
129 - Smooth transitions on all interactive elements (use transition-all duration-200)
130 - Creative hover states that match your aesthetic (not just opacity changes)
131 - Loading states with personality (skeleton loaders, animated spinners)
132 - Page load animations with staggered reveals (animation-delay)
1332. **Atmospheric details**:
134 - Background treatments: gradients, subtle patterns, color-shifted panels
135 - Depth through layered shadows and transparency
136 - Decorative elements that reinforce the aesthetic (custom cursors, borders, dividers)
137 - Context-specific textures or effects
1383. **Refinement**:
139 - Perfect spacing consistency throughout
140 - Typography scale harmony (use rem units, clear hierarchy)
141 - Color usage that follows your palette strictly
142 - Accessibility polish (focus rings, hover states, ARIA labels)
143
144**Remember**: The goal is not just "premium" - it's MEMORABLE. Every redesign should have a clear point of view that makes it stand out from generic healthcare interfaces.
145
146## Handling Design Inspiration Screenshots
147
148When the user provides inspiration screenshots:
149
1501. **Analyze the inspiration** for:
151 - Color palette and mood
152 - Spacing and layout patterns
153 - Typography hierarchy
154 - Component styling (buttons, cards, inputs)
155 - Interaction patterns
1562. **Adapt, don't copy**:
157 - Extract design principles rather than exact implementations
158 - Adjust for healthcare context (trust, professionalism, clarity)
159 - Ensure patterns work for both patient and practitioner interfaces
1603. **Create a design system** if requested:
161 - Extract reusable color variables
162 - Define typography scales
163 - Document button and component styles
164 - Can be applied consistently across multiple pages
165
166## Common Redesign Patterns
167
168### Dashboard Transformation
169
170**Before**: Cramped, basic layout
171**After**: Spacious card-based layout with generous white space
172
173```jsx
174// Keep all hooks, state, and API calls exactly as they were
175// Only change visual structure and styling
176
177<div className="min-h-screen bg-slate-50">
178 <main className="max-w-7xl mx-auto px-6 py-8">
179 <h1 className="text-4xl font-semibold text-slate-900 mb-8">Dashboard</h1>
180 <div className="grid grid-cols-1 lg:grid-cols-3 gap-6">
181 {/* Each card with existing logic, new styling */}
182 <div className="bg-white rounded-2xl shadow-sm border border-slate-100 p-6">
183 {/* Original content with preserved handlers */}
184 </div>
185 </div>
186 </main>
187</div>
188```
189
190### Form Redesign
191
192**Before**: Basic form with simple inputs
193**After**: Clean, modern form with proper spacing and styling
194
195```jsx
196// Preserve all validation logic, onChange handlers, and onSubmit
197// Update only visual presentation
198
199<form onSubmit={handleSubmit} className="max-w-2xl mx-auto space-y-6">
200 <div>
201 <label className="block text-sm font-medium text-slate-700 mb-2">
202 Patient Name
203 </label>
204 <input
205 value={name}
206 onChange={handleNameChange} // PRESERVED
207 className="w-full px-4 py-3 rounded-xl border border-slate-200 focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 transition-all"
208 />
209 </div>
210 <button
211 type="submit"
212 className="w-full px-6 py-3 bg-blue-600 text-white rounded-xl font-medium hover:bg-blue-700 transition-all shadow-sm hover:shadow-md"
213 >
214 Save Patient
215 </button>
216</form>
217```
218
219### Table Redesign
220
221**Before**: Heavy borders, cramped spacing
222**After**: Clean, spacious table with subtle styling
223
224```jsx
225// Keep all data mapping logic, sorting, and click handlers
226// Update only visual styling
227
228<div className="bg-white rounded-2xl shadow-sm border border-slate-100 overflow-hidden">
229 <table className="w-full">
230 <thead className="bg-slate-50 border-b border-slate-200">
231 <tr>
232 <th className="px-6 py-4 text-left text-sm font-semibold text-slate-900">
233 Name
234 </th>
235 {/* More headers */}
236 </tr>
237 </thead>
238 <tbody className="divide-y divide-slate-100">
239 {patients.map(patient => ( // PRESERVED mapping logic
240 <tr key={patient.id} className="hover:bg-slate-50 transition-colors">
241 <td className="px-6 py-4 text-slate-700">{patient.name}</td>
242 <td className="px-6 py-4">
243 <button
244 onClick={() => handleEdit(patient.id)} // PRESERVED handler
245 className="text-blue-600 hover:text-blue-700"
246 >
247 Edit
248 </button>
249 </td>
250 </tr>
251 ))}
252 </tbody>
253 </table>
254</div>
255```
256
257## Key Principles (Critical)
258
2591. **Logic is Sacred**: Hooks, state, API calls, and handlers are completely untouchable
2602. **Visual Freedom**: Layout, colors, typography, spacing, and component structure can change freely
2613. **Preserve Functionality**: Every button, input, and interaction must work exactly as before
2624. **Distinctive Aesthetics**: Each redesign should be memorable and context-specific, not generic
2635. **Accessibility**: Maintain contrast ratios, focus states, and semantic HTML
2646. **shadcn/ui as Base**: Use shadcn/ui components when appropriate, but customize extensively
265
266## Avoiding Generic Healthcare UI
267
268**NEVER create**:
269- Predictable blue-and-white medical interfaces
270- Generic sans-serif typography (Inter, Roboto, Arial everywhere)
271- Cookie-cutter Material Design patterns
272- Identical layouts across different page types
273- Timid, safe color choices without personality
274- Flat, lifeless interactions with no motion or delight
275- Dense, cramped layouts that feel utilitarian but uninspired
276
277**ALWAYS strive for**:
278- Distinctive font pairings that elevate the experience
279- Sophisticated color palettes beyond healthcare blue (teals, lavenders, warm grays, sage)
280- Unique layouts that fit the content (asymmetry, overlap, generous white space)
281- Micro-interactions that surprise and delight
282- Atmospheric backgrounds (gradients, textures, subtle patterns)
283- Clear aesthetic point-of-view (luxury, editorial, modern tech, organic, brutalist)
284- Context-specific design choices (patient dashboards ≠ practitioner schedules)
285
286**Design variation mandate**: If you redesign 5 patient dashboards, they should use 5 different aesthetic approaches. Vary typography, color schemes, layout patterns, and visual treatments. Never converge on a "house style" - interpret each interface fresh based on its specific context and user needs.
287
288## References
289
290- **references/premium-design-patterns.md**: Detailed design principles, component patterns, and examples for Apple/Uber-like aesthetics
291- **references/logic-preservation-checklist.md**: Comprehensive checklist and rules for ensuring zero logic breakage during redesign