first commit
This commit is contained in:
68
lib/theme/app_text_styles.dart
Normal file
68
lib/theme/app_text_styles.dart
Normal file
@@ -0,0 +1,68 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'app_colors.dart';
|
||||
|
||||
/// Typography styles following the design spec
|
||||
/// Uses Nunito font family from Google Fonts
|
||||
class AppTextStyles {
|
||||
// App Title
|
||||
static final appTitle = GoogleFonts.nunito(
|
||||
fontSize: 24,
|
||||
fontWeight: FontWeight.w700, // Bold
|
||||
color: AppColors.textPrimary,
|
||||
);
|
||||
|
||||
// Timer Display
|
||||
static final timerDisplay = GoogleFonts.nunito(
|
||||
fontSize: 64,
|
||||
fontWeight: FontWeight.w800, // ExtraBold
|
||||
letterSpacing: 2,
|
||||
color: AppColors.textPrimary,
|
||||
);
|
||||
|
||||
// Button Text
|
||||
static final buttonText = GoogleFonts.nunito(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.w600, // SemiBold
|
||||
color: AppColors.white,
|
||||
);
|
||||
|
||||
// Body Text
|
||||
static final bodyText = GoogleFonts.nunito(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w400, // Regular
|
||||
color: AppColors.textPrimary,
|
||||
);
|
||||
|
||||
// Helper Text
|
||||
static final helperText = GoogleFonts.nunito(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w300, // Light
|
||||
color: AppColors.textSecondary,
|
||||
);
|
||||
|
||||
// Headline
|
||||
static final headline = GoogleFonts.nunito(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.w600, // SemiBold
|
||||
color: AppColors.textPrimary,
|
||||
);
|
||||
|
||||
// Large number (for focus minutes display)
|
||||
static final largeNumber = GoogleFonts.nunito(
|
||||
fontSize: 32,
|
||||
fontWeight: FontWeight.w700, // Bold
|
||||
color: AppColors.textPrimary,
|
||||
);
|
||||
|
||||
// Encouragement quote (italic)
|
||||
static final encouragementQuote = GoogleFonts.nunito(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w400,
|
||||
fontStyle: FontStyle.italic,
|
||||
color: AppColors.textSecondary,
|
||||
);
|
||||
|
||||
// Prevent instantiation
|
||||
AppTextStyles._();
|
||||
}
|
||||
Reference in New Issue
Block a user