feat(frontend): scaffold Flutter Web app with ENSUP home screen
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import "package:flutter/material.dart";
|
||||
|
||||
/// Couleurs de la charte graphique ENSUP.
|
||||
class EnsupColors {
|
||||
EnsupColors._();
|
||||
|
||||
static const Color cyan = Color(0xFF009CE0);
|
||||
static const Color blue1 = Color(0xFF006DAC);
|
||||
static const Color blue2 = Color(0xFF0090D7);
|
||||
static const Color blue3 = Color(0xFF005CAA);
|
||||
static const Color teal = Color(0xFF198AB4);
|
||||
static const Color purple = Color(0xFF7E5AA2);
|
||||
static const Color red = Color(0xFFDD1B3D);
|
||||
static const Color green = Color(0xFF16A34A);
|
||||
|
||||
static const Color text = Color(0xFF0F172A);
|
||||
static const Color text2 = Color(0xFF334155);
|
||||
static const Color muted = Color(0xFF64748B);
|
||||
static const Color line = Color(0xFFE2E8F0);
|
||||
static const Color soft = Color(0xFFF8FAFC);
|
||||
static const Color white = Color(0xFFFFFFFF);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import "package:flutter/material.dart";
|
||||
import "package:google_fonts/google_fonts.dart";
|
||||
import "ensup_colors.dart";
|
||||
|
||||
/// Thème global : couleurs ENSUP et police de corps Titillium Web.
|
||||
/// Les titres utilisent Darker Grotesque, appliqué directement dans les widgets.
|
||||
ThemeData buildEnsupTheme() {
|
||||
final base = ThemeData(
|
||||
useMaterial3: true,
|
||||
colorScheme: ColorScheme.fromSeed(
|
||||
seedColor: EnsupColors.cyan,
|
||||
primary: EnsupColors.cyan,
|
||||
),
|
||||
scaffoldBackgroundColor: EnsupColors.soft,
|
||||
);
|
||||
|
||||
return base.copyWith(
|
||||
textTheme: GoogleFonts.titilliumWebTextTheme(base.textTheme).apply(
|
||||
bodyColor: EnsupColors.text,
|
||||
displayColor: EnsupColors.text,
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user