Redesign: Warm Sanctuary aesthetic for core pages

- Implement cohesive 'Warm Sanctuary' design system
- Add Playfair Display + Source Sans 3 typography
- Create paper texture background and warm color palette
- Redesign Today Dashboard with elegant cards and animations
- Redesign Medication Form with step-by-step visual flow
- Redesign Emergency Card with clear visual hierarchy
- Redesign Onboarding with floating blobs and welcoming feel
- Update Tailwind config with new colors, shadows, and animations
This commit is contained in:
Gemini Agent
2026-03-01 07:06:58 +00:00
parent a5181cf6fe
commit 065250c1cf
8 changed files with 1078 additions and 552 deletions

View File

@@ -9,55 +9,93 @@ const config: Config = {
theme: {
extend: {
colors: {
// Calm, healing palette
// Warm Sanctuary - Primary: Soft sage green (healing, calm)
primary: {
50: '#f0f9f4',
100: '#dcf1e4',
200: '#bbe3cc',
300: '#8dcda8',
400: '#5bb17f',
500: '#3a9563',
600: '#2a784e',
700: '#235f40',
800: '#1f4c35',
900: '#1b3f2d',
950: '#0d2319',
50: '#f4f7f4',
100: '#e3ebe3',
200: '#c5d9c5',
300: '#9bbf9b',
400: '#729f72',
500: '#528252',
600: '#3f663f',
700: '#345234',
800: '#2b412b',
900: '#243624',
950: '#121f12',
},
// Warm neutrals - cream, stone, warm gray
cream: {
50: '#fdfcfa',
100: '#faf7f2',
200: '#f5efe6',
300: '#ede3d5',
400: '#e0d0bc',
500: '#d4bfa3',
600: '#c4a882',
700: '#a88b65',
800: '#8a7255',
900: '#705d47',
950: '#3d3226',
},
// Secondary: Warm stone gray (sophisticated, grounded)
secondary: {
50: '#f5f7fa',
100: '#ebeef3',
200: '#d2dae5',
300: '#aab9ce',
400: '#7c93b3',
500: '#5c769a',
600: '#485e80',
700: '#3b4d68',
800: '#344257',
900: '#2f3a4a',
950: '#1f2631',
50: '#f8f7f6',
100: '#f0eeeb',
200: '#e0dcd5',
300: '#ccc6bb',
400: '#b5ad9f',
500: '#a09484',
600: '#857a6d',
700: '#6d6359',
800: '#5a524a',
900: '#4a443f',
950: '#262320',
},
// Accent: Terracotta (warmth, energy, gentle urgency)
accent: {
50: '#fef6ee',
100: '#fdebd7',
200: '#fad3ae',
300: '#f6b37b',
400: '#f18946',
500: '#ed6b22',
600: '#de5118',
700: '#b83c16',
800: '#93311a',
900: '#772b18',
950: '#40130b',
50: '#fdf8f6',
100: '#faeee9',
200: '#f5dcd2',
300: '#ecc0b0',
400: '#e09b82',
500: '#d67b58',
600: '#c6603e',
700: '#a54c30',
800: '#88402b',
900: '#703728',
950: '#3d1a11',
},
background: '#fafbfc',
// Alert red (emergency - softened)
alert: {
50: '#fdf5f4',
100: '#fce8e6',
200: '#f9d5d2',
300: '#f4b7b1',
400: '#ec8c85',
500: '#e0635a',
600: '#c9453d',
700: '#a83832',
800: '#8b322e',
900: '#742f2c',
950: '#3e1514',
},
// Semantic aliases
background: '#faf7f2',
surface: '#ffffff',
muted: '#f1f5f9',
border: '#e2e8f0',
muted: '#f0eeeb',
border: '#e0dcd5',
},
fontFamily: {
sans: ['Inter', 'system-ui', '-apple-system', 'sans-serif'],
// Playfair Display for elegant headings
display: ['Playfair Display', 'Georgia', 'serif'],
// Source Sans 3 for warm, readable body text
sans: ['Source Sans 3', 'system-ui', 'sans-serif'],
},
fontSize: {
'display-xl': ['3.5rem', { lineHeight: '1.1', letterSpacing: '-0.02em' }],
'display-lg': ['2.75rem', { lineHeight: '1.15', letterSpacing: '-0.02em' }],
'display-md': ['2.25rem', { lineHeight: '1.2', letterSpacing: '-0.01em' }],
'display-sm': ['1.875rem', { lineHeight: '1.25', letterSpacing: '-0.01em' }],
// Large text mode sizes
'lg-base': '1.125rem',
'lg-lg': '1.25rem',
@@ -67,17 +105,61 @@ const config: Config = {
},
spacing: {
// Touch-friendly spacing
'touch': '44px',
'touch-lg': '56px',
'touch': '48px',
'touch-lg': '60px',
},
borderRadius: {
'card': '16px',
'button': '12px',
'card': '20px',
'card-lg': '28px',
'button': '14px',
'pill': '9999px',
},
boxShadow: {
'card': '0 1px 3px 0 rgb(0 0 0 / 0.04), 0 1px 2px -1px rgb(0 0 0 / 0.04)',
'card-hover': '0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05)',
'button': '0 1px 2px 0 rgb(0 0 0 / 0.05)',
// Soft, warm shadows
'card': '0 2px 8px -2px rgba(93, 82, 70, 0.06), 0 4px 16px -4px rgba(93, 82, 70, 0.04)',
'card-hover': '0 8px 24px -4px rgba(93, 82, 70, 0.08), 0 4px 12px -2px rgba(93, 82, 70, 0.05)',
'button': '0 1px 3px rgba(93, 82, 70, 0.08)',
'button-hover': '0 4px 12px -2px rgba(93, 82, 70, 0.15)',
'soft': '0 2px 16px rgba(93, 82, 70, 0.06)',
'elevated': '0 8px 32px -4px rgba(93, 82, 70, 0.1)',
},
animation: {
// Gentle, breathing animations
'breathe': 'breathe 4s ease-in-out infinite',
'fade-up': 'fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards',
'fade-in': 'fadeIn 0.4s ease-out forwards',
'scale-in': 'scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards',
'slide-up': 'slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards',
'pulse-soft': 'pulseSoft 2s ease-in-out infinite',
},
keyframes: {
breathe: {
'0%, 100%': { opacity: '1', transform: 'scale(1)' },
'50%': { opacity: '0.9', transform: 'scale(1.02)' },
},
fadeUp: {
'0%': { opacity: '0', transform: 'translateY(20px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
scaleIn: {
'0%': { opacity: '0', transform: 'scale(0.95)' },
'100%': { opacity: '1', transform: 'scale(1)' },
},
slideUp: {
'0%': { opacity: '0', transform: 'translateY(30px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
pulseSoft: {
'0%, 100%': { opacity: '1' },
'50%': { opacity: '0.7' },
},
},
transitionTimingFunction: {
'sanctuary': 'cubic-bezier(0.16, 1, 0.3, 1)',
},
},
},