After Framework

Designsystem

Tokens, Themedaten, Komponenten und Markenerweiterung in after_design_system.

Doku-Version: supercore main · Pakete 1.0.0

ThemedatenLink zu diesem Abschnitt: Themedaten

Die gemeinsame visuelle Sprache: Tokens für Farbe, Abstände, Radien, Motion und Typografie, Material 3-Themedaten und gemeinsame Komponenten, identisch über alle Produktlinien.

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)),
);

Quelle supercore/packages/after_design_system/lib/src/foundations/theme.dart (öffnet in neuem Tab)

TokensLink zu diesem Abschnitt: Tokens

TokenWert
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

KomponentenLink zu diesem Abschnitt: Komponenten

Buttons, Karten, Eingabefelder, Navigation, Dialoge, Diagramme, Dashboard, Leer- und Ladezustände, Einstellungsbereiche und die obere Shell-Leiste.

  • 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

MarkenerweiterungLink zu diesem Abschnitt: Markenerweiterung

Jede Produkt-Spec deklariert Akzent und Monogramm. Das Theme übernimmt den Akzent über accentOverride; alles andere bleibt in der Familie.

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