getTLightTheme function
Implementation
ThemeData getTLightTheme() {
final base = ThemeData(
brightness: Brightness.light,
primarySwatch: AppColors.primary,
colorScheme: ColorScheme.light(
primary: AppColors.primary,
onPrimary: Colors.white,
primaryContainer: AppColors.primary.shade50,
onPrimaryContainer: AppColors.primary,
secondary: AppColors.secondary,
onSecondary: Colors.white,
secondaryContainer: AppColors.secondary.shade50,
onSecondaryContainer: AppColors.secondary,
error: AppColors.danger,
onError: Colors.white,
errorContainer: AppColors.danger.shade50,
onErrorContainer: AppColors.danger,
surface: Colors.white,
surfaceDim: AppColors.grey.shade50,
surfaceContainerLowest: AppColors.grey.shade300,
surfaceContainerLow: AppColors.grey.shade200,
surfaceContainer: AppColors.grey.shade100.withAlpha(200),
surfaceContainerHigh: AppColors.grey.shade100.withAlpha(150),
onSurface: AppColors.grey[950]!,
onSurfaceVariant: AppColors.grey.shade800,
outline: AppColors.grey.shade300,
outlineVariant: AppColors.grey.shade100,
shadow: AppColors.grey.shade200.withAlpha(100),
scrim: AppColors.grey.shade900.withAlpha(150),
),
);
return base.copyWith(
textTheme: base.textTheme.apply(fontFamily: 'Lexend', package: 'te_widgets'),
extensions: [TWidgetThemeExtension().copyWith(layoutFrame: AppColors.grey.shade800)],
);
}