MIF_E31232435/lib/theme/text_styles.dart

135 lines
2.9 KiB
Dart

import 'package:flutter/material.dart';
class AppTextStyles {
// Display
static const TextStyle displayLarge = TextStyle(
fontSize: 32,
fontWeight: FontWeight.bold,
letterSpacing: -0.5,
color: Color(0xFF1F2937),
);
static const TextStyle displayMedium = TextStyle(
fontSize: 28,
fontWeight: FontWeight.bold,
letterSpacing: -0.25,
color: Color(0xFF1F2937),
);
static const TextStyle displaySmall = TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
color: Color(0xFF1F2937),
);
// Headline
static const TextStyle headlineLarge = TextStyle(
fontSize: 20,
fontWeight: FontWeight.w700,
color: Color(0xFF1F2937),
);
static const TextStyle headlineMedium = TextStyle(
fontSize: 18,
fontWeight: FontWeight.w700,
color: Color(0xFF1F2937),
);
static const TextStyle headlineSmall = TextStyle(
fontSize: 16,
fontWeight: FontWeight.w700,
color: Color(0xFF1F2937),
);
// Title
static const TextStyle titleLarge = TextStyle(
fontSize: 16,
fontWeight: FontWeight.w600,
letterSpacing: 0.15,
color: Color(0xFF1F2937),
);
static const TextStyle titleMedium = TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
letterSpacing: 0.1,
color: Color(0xFF1F2937),
);
static const TextStyle titleSmall = TextStyle(
fontSize: 12,
fontWeight: FontWeight.w600,
letterSpacing: 0.1,
color: Color(0xFF1F2937),
);
// Body
static const TextStyle bodyLarge = TextStyle(
fontSize: 16,
fontWeight: FontWeight.w400,
letterSpacing: 0.5,
color: Color(0xFF374151),
);
static const TextStyle bodyMedium = TextStyle(
fontSize: 14,
fontWeight: FontWeight.w400,
letterSpacing: 0.25,
color: Color(0xFF374151),
);
static const TextStyle bodySmall = TextStyle(
fontSize: 12,
fontWeight: FontWeight.w400,
letterSpacing: 0.4,
color: Color(0xFF6B7280),
);
// Label
static const TextStyle labelLarge = TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
letterSpacing: 0.1,
color: Color(0xFF1F2937),
);
static const TextStyle labelMedium = TextStyle(
fontSize: 12,
fontWeight: FontWeight.w500,
letterSpacing: 0.5,
color: Color(0xFF374151),
);
static const TextStyle labelSmall = TextStyle(
fontSize: 11,
fontWeight: FontWeight.w500,
letterSpacing: 0.5,
color: Color(0xFF6B7280),
);
// Custom Styles
static const TextStyle appBarTitle = TextStyle(
fontSize: 20,
fontWeight: FontWeight.w700,
color: Color(0xFFFFFFFF),
);
static const TextStyle buttonText = TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
letterSpacing: 0.1,
);
static const TextStyle errorText = TextStyle(
fontSize: 12,
fontWeight: FontWeight.w400,
color: Color(0xFFEF4444),
);
static const TextStyle hintText = TextStyle(
fontSize: 14,
fontWeight: FontWeight.w400,
color: Color(0xFF9CA3AF),
);
}