After Framework

Design system

Tokens, theme data, components and brand extension in after_design_system.

Docs version: supercore main · packages 1.0.0

Theme dataLink to this section: Theme data

The shared visual language: color, spacing, radius, motion and typography tokens, Material 3 theme data and shared components, identical across product lines.

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

Source supercore/packages/after_design_system/lib/src/foundations/theme.dart (opens in a new tab)

TokensLink to this section: Tokens

TokenValue
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

ComponentsLink to this section: Components

Buttons, cards, inputs, navigation, dialogs, charts, dashboard, empty and loading states, settings sections and the shell top bar.

  • 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

Brand extensionLink to this section: Brand extension

Each product spec declares an accent and monogram. The theme takes the accent through accentOverride; everything else stays in the family.

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