You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.7 KiB
80 lines
1.7 KiB
import 'package:flutter/material.dart';
|
|
import 'app_colors.dart';
|
|
|
|
class TextStyles {
|
|
// Headings
|
|
static const TextStyle heading1 = TextStyle(
|
|
fontSize: 28,
|
|
fontWeight: FontWeight.bold,
|
|
color: AppColors.textPrimary,
|
|
height: 1.2,
|
|
);
|
|
|
|
static const TextStyle heading2 = TextStyle(
|
|
fontSize: 24,
|
|
fontWeight: FontWeight.bold,
|
|
color: AppColors.textPrimary,
|
|
height: 1.2,
|
|
);
|
|
|
|
static const TextStyle heading3 = TextStyle(
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.bold,
|
|
color: AppColors.textPrimary,
|
|
height: 1.2,
|
|
);
|
|
|
|
// Title and subtitle
|
|
static const TextStyle title = TextStyle(
|
|
fontSize: 18,
|
|
fontWeight: FontWeight.w600,
|
|
color: AppColors.textPrimary,
|
|
height: 1.3,
|
|
);
|
|
|
|
static const TextStyle subtitle = TextStyle(
|
|
fontSize: 16,
|
|
fontWeight: FontWeight.w500,
|
|
color: AppColors.textPrimary,
|
|
height: 1.3,
|
|
);
|
|
|
|
// Body text
|
|
static const TextStyle body = TextStyle(
|
|
fontSize: 16,
|
|
fontWeight: FontWeight.normal,
|
|
color: AppColors.textPrimary,
|
|
height: 1.5,
|
|
);
|
|
|
|
static const TextStyle bodySmall = TextStyle(
|
|
fontSize: 14,
|
|
fontWeight: FontWeight.normal,
|
|
color: AppColors.textPrimary,
|
|
height: 1.5,
|
|
);
|
|
|
|
// Button text
|
|
static const TextStyle button = TextStyle(
|
|
fontSize: 16,
|
|
fontWeight: FontWeight.w500,
|
|
color: AppColors.textPrimary,
|
|
letterSpacing: 0.5,
|
|
);
|
|
|
|
// Caption and overline
|
|
static const TextStyle caption = TextStyle(
|
|
fontSize: 12,
|
|
fontWeight: FontWeight.normal,
|
|
color: AppColors.textSecondary,
|
|
height: 1.4,
|
|
);
|
|
|
|
static const TextStyle overline = TextStyle(
|
|
fontSize: 10,
|
|
fontWeight: FontWeight.w500,
|
|
color: AppColors.textSecondary,
|
|
letterSpacing: 1.5,
|
|
height: 1.4,
|
|
);
|
|
}
|