import 'package:flutter/material.dart';
import 'kc_colors.dart';

ThemeData buildKcTheme() {
  final base = ThemeData(useMaterial3: true);

  return base.copyWith(
    scaffoldBackgroundColor: KcColors.background,
    colorScheme: ColorScheme.fromSeed(
      seedColor: KcColors.denimBlue,
      primary: KcColors.denimBlue,
      secondary: KcColors.skyBlue,
      surface: KcColors.surface,
    ),
    appBarTheme: const AppBarTheme(
      backgroundColor: KcColors.surface,
      foregroundColor: KcColors.deepTeal,
      elevation: 0,
      centerTitle: false,
    ),
    cardTheme: const CardThemeData(
      color: KcColors.surface,
      elevation: 0,
      margin: EdgeInsets.zero,
    ),
    textTheme: base.textTheme.copyWith(
      headlineMedium: const TextStyle(
        fontSize: 28,
        fontWeight: FontWeight.w700,
        color: KcColors.deepTeal,
      ),
      titleLarge: const TextStyle(
        fontSize: 20,
        fontWeight: FontWeight.w600,
        color: KcColors.deepTeal,
      ),
      bodyLarge: const TextStyle(
        fontSize: 16,
        color: KcColors.deepTeal,
      ),
      bodyMedium: const TextStyle(
        fontSize: 14,
        color: KcColors.deepTeal,
      ),
    ),
  );
}