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.
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
| Token | Value |
|---|---|
| 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.xs | 4 |
| AfterSpacing.sm | 8 |
| AfterSpacing.md | 12 |
| AfterSpacing.lg | 16 |
| AfterSpacing.xxl | 24 |
| AfterSpacing.xxxl | 32 |
| AfterSpacing.massive | 48 |
| AfterSpacing.hero | 64 |
| AfterRadius · xs | 6 |
| AfterRadius · sm · control | 8 |
| AfterRadius · md · surface | 12 |
| AfterRadius · lg · panel | 16 |
| AfterRadius · xl · media | 20 |
| AfterMotion · instant | 100ms |
| AfterMotion · fast · micro | 180ms |
| AfterMotion · normal · page | 280ms |
| AfterMotion · slow · modal | 420ms |
| AfterMotion · emphasis | 560ms |
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