Define paleta de colores AppColors (dark theme) y helpers appHeadline() (Manrope) y appLabel() (Inter) centralizados. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
50 lines
2.0 KiB
Dart
50 lines
2.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
|
|
// ─── Paleta de colores ────────────────────────────────────────────────────────
|
|
class AppColors {
|
|
static const surfaceLowest = Color(0xFF0A0E14);
|
|
static const surfaceLow = Color(0xFF181C22);
|
|
static const surface = Color(0xFF1C2026);
|
|
static const surfaceHigh = Color(0xFF262A31);
|
|
static const surfaceHighest = Color(0xFF31353C);
|
|
static const primary = Color(0xFFB0C6FF);
|
|
static const primaryContainer= Color(0xFF002359);
|
|
static const error = Color(0xFFFFB4AB);
|
|
static const onError = Color(0xFF690005);
|
|
static const tertiary = Color(0xFFFFB3B3);
|
|
static const tertiaryContainer = Color(0xFF54000E);
|
|
static const secondary = Color(0xFFB4CAD6);
|
|
static const secondaryContainer = Color(0xFF374C56);
|
|
static const onSecondaryContainer = Color(0xFFA6BCC7);
|
|
static const onSurface = Color(0xFFDFE2EB);
|
|
static const onSurfaceVariant= Color(0xFFC4C6CF);
|
|
static const outline = Color(0xFF8E9199);
|
|
static const outlineVariant = Color(0xFF44474E);
|
|
}
|
|
|
|
// ─── Estilos de texto ─────────────────────────────────────────────────────────
|
|
TextStyle appHeadline({
|
|
double size = 14,
|
|
FontWeight weight = FontWeight.bold,
|
|
Color color = AppColors.onSurface,
|
|
double spacing = 0,
|
|
}) =>
|
|
GoogleFonts.manrope(
|
|
fontSize: size,
|
|
fontWeight: weight,
|
|
color: color,
|
|
letterSpacing: spacing);
|
|
|
|
TextStyle appLabel({
|
|
double size = 12,
|
|
FontWeight weight = FontWeight.normal,
|
|
Color color = AppColors.onSurfaceVariant,
|
|
double spacing = 0,
|
|
}) =>
|
|
GoogleFonts.inter(
|
|
fontSize: size,
|
|
fontWeight: weight,
|
|
color: color,
|
|
letterSpacing: spacing);
|