textTheme static method
Implementation
static TextTheme textTheme({required bool darkMode}) {
final baseColor = darkMode ? Colors.white : const Color(0xFF0F172A);
final muted = baseColor.withOpacity(0.74);
return TextTheme(
displayLarge: displayLarge.copyWith(color: baseColor),
displayMedium: displayMedium.copyWith(color: baseColor),
headlineLarge: headlineLarge.copyWith(color: baseColor),
titleLarge: titleLarge.copyWith(color: baseColor),
bodyLarge: bodyLarge.copyWith(color: muted),
bodyMedium: bodyLarge.copyWith(fontSize: 14, color: muted),
bodySmall:
bodyLarge.copyWith(fontSize: 12, color: muted.withOpacity(0.8)),
labelLarge: labelLarge.copyWith(color: baseColor),
labelMedium: labelLarge.copyWith(fontSize: 12, color: muted),
);
}