After Framework

Sistema di design

Token, theme data, componenti ed estensione del brand in after_design_system.

Versione della documentazione: supercore main · pacchetti 1.0.0

Dati del temaLink a questa sezione: Dati del tema

Il linguaggio visivo condiviso: token di colore, spaziatura, raggio, animazione e tipografia, theme data Material 3 e componenti condivisi, identici in tutte le linee di prodotto.

dart
abstract final class AfterThemeData {
  static ThemeData light({
    AfterTypography typography = AfterTypography.garage,
    Color? accentOverride,
  }) { … }

  static ThemeData dark({
    AfterTypography typography = AfterTypography.garage,
    Color? accentOverride,
  }) { … }
}

// Product: same family, own accent (spec branding.accent).
MaterialApp(
  theme: AfterThemeData.light(accentOverride: const Color(0xFF22D3EE)),
  darkTheme: AfterThemeData.dark(accentOverride: const Color(0xFF22D3EE)),
);

Sorgente supercore/packages/after_design_system/lib/src/foundations/theme.dart (si apre in una nuova scheda)

TokenLink a questa sezione: Token

TokenValore
AfterColors.accent#38BDF8
AfterColors.accentDeep#0284C7
AfterColors.graphite950#0B0C0F
AfterColors.graphite800#222831
AfterColors.steel#8A919D
AfterColors.lightBackground#FAFBFC
AfterColors.success#22C55E
AfterColors.warning#F59E0B
AfterColors.danger#EF4444
AfterSpacing.xs4
AfterSpacing.sm8
AfterSpacing.md12
AfterSpacing.lg16
AfterSpacing.xxl24
AfterSpacing.xxxl32
AfterSpacing.massive48
AfterSpacing.hero64
AfterRadius · xs6
AfterRadius · sm · control8
AfterRadius · md · surface12
AfterRadius · lg · panel16
AfterRadius · xl · media20
AfterMotion · instant100ms
AfterMotion · fast · micro180ms
AfterMotion · normal · page280ms
AfterMotion · slow · modal420ms
AfterMotion · emphasis560ms

ComponentiLink a questa sezione: Componenti

Pulsanti, schede, campi di input, navigazione, finestre di dialogo, grafici, dashboard, stati vuoti e di caricamento, sezioni delle impostazioni e barra superiore della shell.

  • lib/src/components/buttons.dart
  • lib/src/components/cards.dart
  • lib/src/components/inputs.dart
  • lib/src/components/navigation_bar.dart
  • lib/src/components/dialogs.dart
  • lib/src/components/charts.dart
  • lib/src/components/dashboard.dart
  • lib/src/components/empty_states.dart
  • lib/src/components/loading.dart
  • lib/src/components/settings_section.dart
  • lib/src/components/shell_top_bar.dart

Estensione del brandLink a questa sezione: Estensione del brand

Ogni spec di prodotto dichiara un accento e un monogramma. Il tema riceve l’accento tramite accentOverride; tutto il resto resta nella famiglia.

  • SuperGarage#22D3EE · SG
  • SuperKids#F472B6 · SK
  • SuperHospital#F43F5E · SH
  • SuperFactory#F59E0B · SF