import 'package:flutter/material.dart'; class AppTheme { AppTheme._(); static const seedColor = Color(0xFF2563EB); static const background = Color(0xFFF6F7FB); static const surface = Colors.white; static const textPrimary = Color(0xFF111827); static const textSecondary = Color(0xFF6B7280); static const border = Color(0xFFE5E7EB); static const success = Color(0xFF16A34A); static const warning = Color(0xFFF59E0B); static const danger = Color(0xFFDC2626); static ThemeData get light { final scheme = ColorScheme.fromSeed( seedColor: seedColor, brightness: Brightness.light, surface: surface, ); return ThemeData( useMaterial3: true, colorScheme: scheme, scaffoldBackgroundColor: background, appBarTheme: const AppBarTheme( centerTitle: true, elevation: 0, scrolledUnderElevation: 0, backgroundColor: surface, foregroundColor: textPrimary, ), elevatedButtonTheme: ElevatedButtonThemeData( style: ElevatedButton.styleFrom( minimumSize: const Size(88, 44), shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)), ), ), textButtonTheme: TextButtonThemeData( style: TextButton.styleFrom( shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)), ), ), outlinedButtonTheme: OutlinedButtonThemeData( style: OutlinedButton.styleFrom( minimumSize: const Size(88, 44), side: const BorderSide(color: border), shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)), ), ), ); } static ThemeData get dark { final scheme = ColorScheme.fromSeed( seedColor: seedColor, brightness: Brightness.dark, ); return ThemeData( useMaterial3: true, colorScheme: scheme, appBarTheme: const AppBarTheme( centerTitle: true, elevation: 0, scrolledUnderElevation: 0, ), ); } } class AppSpacing { AppSpacing._(); static const double xs = 4; static const double sm = 8; static const double md = 12; static const double lg = 16; static const double xl = 24; static const double xxl = 32; }