49 lines
1.4 KiB
Dart
49 lines
1.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'app_colors.dart';
|
|
|
|
/// UnionFlow Mobile App - Typographie Globale (Ultra Minimaliste)
|
|
/// RÈGLE : AUCUN gros titre. Tailles limitées entre 10px et 14px pour maximiser l'information.
|
|
class AppTypography {
|
|
static const String _fontFamily = 'Roboto'; // Peut être changé pour 'Inter' si ajouté au pubspec.yaml
|
|
|
|
// --- Titres (Max 14px) ---
|
|
static const TextStyle headerSmall = TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 14.0,
|
|
fontWeight: FontWeight.w700, // Bold
|
|
letterSpacing: -0.2,
|
|
);
|
|
|
|
// --- Corps de texte (Max 12px) ---
|
|
static const TextStyle bodyTextSmall = TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 12.0,
|
|
fontWeight: FontWeight.w400, // Regular
|
|
height: 1.4,
|
|
);
|
|
|
|
// --- Boutons et Actions (Max 13px) ---
|
|
static const TextStyle actionText = TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 13.0,
|
|
fontWeight: FontWeight.w600, // SemiBold
|
|
letterSpacing: 0.1,
|
|
);
|
|
|
|
// --- Sous-titres, dates, labels (Max 11px) ---
|
|
static const TextStyle subtitleSmall = TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 11.0,
|
|
fontWeight: FontWeight.w300, // Light
|
|
letterSpacing: 0.2,
|
|
);
|
|
|
|
// --- Badges, Piles, Métriques très denses (Max 10px) ---
|
|
static const TextStyle badgeText = TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 10.0,
|
|
fontWeight: FontWeight.w500, // Medium
|
|
);
|
|
}
|