inou-mobile/lib/core/theme.dart

32 lines
1.0 KiB
Dart

import 'package:flutter/material.dart';
/// App theme configuration
class AppTheme {
static const Color primaryColor = Color(0xFF6366F1); // Indigo
static const Color secondaryColor = Color(0xFF8B5CF6); // Violet
static const Color backgroundColor = Color(0xFF0F172A); // Slate 900
static const Color surfaceColor = Color(0xFF1E293B); // Slate 800
static const Color textColor = Color(0xFFF8FAFC); // Slate 50
static ThemeData get darkTheme => ThemeData(
useMaterial3: true,
brightness: Brightness.dark,
colorScheme: ColorScheme.dark(
primary: primaryColor,
secondary: secondaryColor,
surface: surfaceColor,
),
scaffoldBackgroundColor: backgroundColor,
appBarTheme: const AppBarTheme(
backgroundColor: backgroundColor,
foregroundColor: textColor,
elevation: 0,
),
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
backgroundColor: surfaceColor,
selectedItemColor: primaryColor,
unselectedItemColor: Colors.grey,
),
);
}