import 'package:flutter/material.dart';

import 'kc_colors.dart';
import 'kc_typography.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: KcTypography.applyKcTypography(base.textTheme),
  );
}
