flutter-design-system
Installation
SKILL.md
Flutter Design System Enforcement
Priority: P0 (CRITICAL)
Zero tolerance for hardcoded design values.
Phase 0: Context Discovery (MANDATORY)
Before any UI refactoring, you MUST identify the project's Theme Archetype:
- Check
main.dart: Look forMaterialApptheme configuration. - Determine Pattern:
- Theme-Driven (Adaptive): If you see
VThemeData(...).toThemeData()or extensiveThemeDataoverrides, you MUST useTheme.of(context).textThemeortheme.textThemefor feature code. - Token-Driven (Static): Only use static tokens (
VTypography.*) if there is no global theme bridge or if you are defining the theme itself.
- Theme-Driven (Adaptive): If you see