After Framework

デザインシステム

after_design_system のトークン、テーマデータ、コンポーネント、ブランド拡張について説明します。

ドキュメントのバージョン: supercore main · パッケージ 1.0.0

テーマデータこのセクションへのリンク: テーマデータ

共通のビジュアル言語です。カラー、スペーシング、角丸、モーション、タイポグラフィのトークン、Material 3 のテーマデータ、共有コンポーネントを提供し、プロダクトラインを問わず同一です。

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

ソース supercore/packages/after_design_system/lib/src/foundations/theme.dart (新しいタブで開きます)

トークンこのセクションへのリンク: トークン

トークン値
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

コンポーネントこのセクションへのリンク: コンポーネント

ボタン、カード、入力、ナビゲーション、ダイアログ、チャート、ダッシュボード、空状態と読み込み状態、設定セクション、シェルのトップバー。

  • 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

ブランド拡張このセクションへのリンク: ブランド拡張

各プロダクトの仕様でアクセントとモノグラムを宣言します。テーマは accentOverride でアクセントを受け取り、それ以外はファミリー共通のままです。

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