@@ -49,6 +49,10 @@ Modern fullstack monorepo template with Next.js 16, FastAPI, Flutter, and GCP in
4949- ** i18n** : Single source of truth for translations (ARB format)
5050 - Auto-generates JSON for web (next-intl)
5151 - Auto-generates ARB for mobile (Flutter intl)
52+ - ** design-tokens** : Single source of truth for design tokens (OKLCH color space)
53+ - Edit at: ` packages/design-tokens/src/tokens.ts `
54+ - Auto-generates CSS variables for web (TailwindCSS v4)
55+ - Auto-generates Flutter Theme for mobile (Material3)
5256
5357## Project Structure
5458```
@@ -71,8 +75,11 @@ fullstack-starter/
7175│ │ └── fastlane/ # CI/CD automation
7276│ └── infra/ # Terraform infrastructure
7377├── packages/
74- │ └── i18n/ # Shared i18n (source of truth)
75- │ └── src/ # ARB source files
78+ │ ├── i18n/ # Shared i18n (source of truth)
79+ │ │ └── src/ # ARB source files
80+ │ ├── design-tokens/ # Shared design tokens (source of truth)
81+ │ │ └── src/ # tokens.ts (OKLCH color definitions)
82+ │ └── shared/ # Shared utilities
7683├── .agent/rules/ # AI agent guidelines
7784└── .github/workflows/ # CI/CD pipelines
7885```
@@ -92,12 +99,14 @@ fullstack-starter/
9299- Server Components by default
93100- Client Components only when needed (interactivity, hooks)
94101- Colocation of components with routes
102+ - Styling: TailwindCSS v4 with design-tokens (OKLCH color space)
95103- Proxy configuration in ` src/proxy.ts ` (security headers, i18n)
96104
97105### Mobile Layer
98106- Feature-first architecture
99107- Riverpod for DI and state
100108- Freezed for immutable models
109+ - Theme: Material3 with design-tokens (generated from OKLCH)
101110- Firebase Crashlytics for crash reporting
102111- Fastlane for build automation
103112
@@ -109,6 +118,14 @@ apps/web/src/config/messages/*.json (auto-generated)
109118apps/mobile/lib/i18n/messages/*.arb (auto-generated)
110119```
111120
121+ ### Design Tokens Flow
122+ ```
123+ packages/design-tokens/src/tokens.ts (edit here)
124+ ↓ mise //packages/design-tokens:build
125+ apps/web/src/app/[locale]/tokens.css (CSS variables - auto-generated)
126+ apps/mobile/lib/core/theme/generated_theme.dart (Flutter Theme - auto-generated)
127+ ```
128+
112129## Code Conventions
113130
114131### Naming
@@ -143,6 +160,9 @@ apps/mobile/lib/i18n/messages/*.arb (auto-generated)
143160- ` apps/api/ruff.toml ` - Python linting
144161- ` apps/mobile/analysis_options.yaml ` - Dart linting (very_good_analysis)
145162
163+ ### Design Tokens
164+ - ` packages/design-tokens/src/tokens.ts ` - OKLCH color definitions (source of truth)
165+
146166### API
147167- ` apps/api/src/lib/config.py ` - Environment settings
148168
0 commit comments