Enhance Next.js configuration and dependencies for improved functionality and localization support. Added support for internationalization with next-intl, updated global styles, and integrated new fonts. Removed default home page and updated README with project details and setup instructions.
This commit is contained in:
1 parent
2911dea00b
commit
44f4fa98e2
320 files changed
+31666
-220
No files matched your search
@@ -0,0 +1,165 @@
|
||||
---
|
||||
name: material-design
|
||||
description: >-
|
||||
Material Design 3 / M3 Expressive principles, color roles, typography scale,
|
||||
elevation, motion, and anti-patterns. Use when designing or reviewing UI,
|
||||
building design tokens, choosing component patterns, accessibility defaults,
|
||||
or when the user mentions Material, M3, design system foundation, or visual consistency.
|
||||
---
|
||||
# Material Design
|
||||
|
||||
## OVERVIEW
|
||||
Google's comprehensive open-source design system providing guidelines, components, and tools for building high-quality digital experiences. Launched 2014, evolved to Material 3 (2021), Material 3 Expressive (2025). Unified approach across Android, web, iOS, and Flutter platforms.
|
||||
|
||||
**Why this matters**: Accelerates development with pre-built components, ensures accessibility compliance, maintains cross-platform consistency, backed by extensive documentation and community support.
|
||||
|
||||
## WHEN TO USE
|
||||
- Designing Android applications (native design language)
|
||||
- Creating cross-platform products requiring consistent experience
|
||||
- Building design systems from established foundation
|
||||
- Rapid prototyping with pre-built specifications
|
||||
- Products requiring strong accessibility defaults (WCAG-compliant)
|
||||
- Teams needing shared designer-developer vocabulary
|
||||
- Brands wanting modern design without starting from scratch
|
||||
|
||||
**Trigger**: Need to ship polished UI quickly or maintain consistency across multiple platforms.
|
||||
|
||||
## KEY PRINCIPLES
|
||||
|
||||
### 1. Material is the Metaphor
|
||||
**Concept**: Digital elements behave like physical materials with tactile qualities, depth, and realistic motion.
|
||||
|
||||
**Application**:
|
||||
- Surfaces have elevation (z-axis positioning creating shadows)
|
||||
- Elements respond to touch with ripple effects
|
||||
- Transitions maintain spatial relationships
|
||||
- Depth communicates hierarchy and focus
|
||||
|
||||
**Implementation**: Cards at 2dp elevation, FAB at 6dp, navigation drawer at 16dp, modals at 24dp.
|
||||
|
||||
### 2. Bold, Graphic, Intentional
|
||||
**Concept**: Use vibrant colors, prominent typography, and deliberate white space to create clear visual hierarchy.
|
||||
|
||||
**Application**:
|
||||
- Dynamic color system generates cohesive palettes
|
||||
- Typography scale with consistent hierarchy (Display, Headline, Title, Body, Label)
|
||||
- Purposeful use of color to guide attention
|
||||
- Generous spacing for clarity
|
||||
|
||||
**Implementation**: Extract brand colors, generate 65 tokens (13 tones × 5 roles), apply type scale.
|
||||
|
||||
### 3. Motion Provides Meaning
|
||||
**Concept**: Animation is not decoration—it guides understanding and maintains context.
|
||||
|
||||
**Application**:
|
||||
- Spring physics for organic, responsive feel (Material 3 Expressive)
|
||||
- Shared element transitions maintain spatial continuity
|
||||
- Motion emphasizes hierarchy and relationships
|
||||
- Respect prefers-reduced-motion for accessibility
|
||||
|
||||
**Implementation**: Replace duration-based easing with spring animations, use morphing shapes.
|
||||
|
||||
## EXECUTION STEPS
|
||||
|
||||
### Phase 1: Establish Foundation
|
||||
1. **Define color palette** - Use Theme Builder to extract from brand assets
|
||||
2. **Set up typography scale** - Choose Display/Headline/Title/Body/Label sizes
|
||||
3. **Configure shape system** - Define corner radius scale (None to Full)
|
||||
4. **Implement elevation system** - Establish z-axis hierarchy
|
||||
|
||||
### Phase 2: Build Component Library
|
||||
5. **Import Material components** - Use Material UI (React), MDC-Web, or Flutter Material
|
||||
6. **Customize theme tokens** - Override color, typography, shape as needed
|
||||
7. **Test accessibility** - Verify contrast ratios, keyboard navigation, screen readers
|
||||
8. **Create responsive layouts** - Apply 12-column grid with breakpoints (Compact/Medium/Expanded)
|
||||
|
||||
### Phase 3: Implement Motion & Refinement
|
||||
9. **Add spring physics** - Replace linear animations with organic motion
|
||||
10. **Implement state changes** - Hover, focus, active, disabled states
|
||||
11. **Test cross-platform** - Verify consistency across web/iOS/Android
|
||||
12. **Document patterns** - Catalog custom implementations for team reference
|
||||
|
||||
## SUCCESS METRICS
|
||||
- **Development velocity** - 2-3x faster with pre-built components
|
||||
- **Accessibility compliance** - WCAG AA/AAA pass rate ≥ 95%
|
||||
- **Cross-platform consistency** - User recognition across platforms ≥ 85%
|
||||
- **Design-dev handoff time** - 50%+ reduction vs. custom designs
|
||||
- **User task completion** - Familiar patterns increase success rates
|
||||
|
||||
## REAL-WORLD EXAMPLES
|
||||
|
||||
### Google Photos
|
||||
Comprehensive Material 3 implementation demonstrating dynamic color theming that adapts to user wallpaper. Spring animations for photo grid interactions.
|
||||
|
||||
### Todoist
|
||||
Cross-platform task manager using Material Design Web for consistency. Custom color theming while maintaining Material component patterns.
|
||||
|
||||
### Cash App
|
||||
Fintech product using Material elevation and components but customizing colors and shapes for brand differentiation. Passed accessibility audit first attempt.
|
||||
|
||||
## ANTI-PATTERNS
|
||||
**What NOT to do**:
|
||||
- **Mixing design systems** - Combining Material with HIG or Fluent creates inconsistency
|
||||
- **Arbitrary elevation** - Random z-axis values break hierarchy
|
||||
- **Color without testing** - Skipping contrast ratio verification
|
||||
- **Ignoring breakpoints** - Fixed layouts that break on tablets
|
||||
- **Custom motion timing** - Replacing Material physics with linear easing
|
||||
- **Recreating components** - Building from scratch vs. using libraries
|
||||
- **Overriding accessibility** - Changing touch targets or keyboard navigation
|
||||
- **Treating as rigid** - Material is flexible; customize thoughtfully
|
||||
|
||||
## EDGE CASES
|
||||
- **Strong brand identity** - Customize color/shape/typography but keep interaction patterns
|
||||
- **iOS-first products** - Material works on iOS but consider HIG for platform conventions
|
||||
- **High-security contexts** - Material's bold colors may conflict with conservative aesthetics
|
||||
- **Low-bandwidth environments** - Material components can be heavy; consider lite versions
|
||||
- **Highly specialized interfaces** - Complex data tools may need custom components
|
||||
|
||||
## INTEGRATION
|
||||
**Pairs well with**:
|
||||
- **Design Tokens** - Material 3 built on token architecture
|
||||
- **Atomic Design** - Component hierarchy methodology
|
||||
- **Storybook** - Document Material components
|
||||
- **Figma UI Kits** - Design with official Material templates
|
||||
- **Accessibility Standards** - WCAG compliance built-in
|
||||
|
||||
**Contrasts with**:
|
||||
- **Human Interface Guidelines** - Apple's iOS/macOS design language
|
||||
- **Fluent Design** - Microsoft's Windows design system
|
||||
- **Custom design systems** - Bespoke vs. established framework
|
||||
|
||||
## TOOLS & RESOURCES
|
||||
- **Official site**: m3.material.io (comprehensive documentation)
|
||||
- **Theme Builder**: Material Theme Builder (Figma plugin)
|
||||
- **Component libraries**: Material UI (React), MDC-Web, Flutter Material
|
||||
- **Design kits**: Official Figma/Sketch UI kits
|
||||
- **Color tool**: Material palette generator
|
||||
- **Motion guidelines**: Material motion system documentation
|
||||
|
||||
## 2025 UPDATE: Material 3 Expressive
|
||||
Announced at The Android Show (May 2025) for Android 16 and Wear OS 6:
|
||||
- Spring-based physics replacing duration-based easing
|
||||
- 35 new morphing shapes with fluid transitions
|
||||
- Enhanced color expressiveness with more vibrant defaults
|
||||
- Improved animation smoothness and responsiveness
|
||||
|
||||
## FURTHER READING
|
||||
- **Primary Source**: Material Design 3 documentation (m3.material.io)
|
||||
- **Implementation**: Material Components libraries for each platform
|
||||
- **Case Studies**: Google Design Medium publication
|
||||
- **Related**: *Design Systems* by Alla Kholmatova
|
||||
- **Advanced**: Building Design Systems (Brad Frost)
|
||||
|
||||
## SCORING RATIONALE
|
||||
**Total: 47/50**
|
||||
|
||||
| Criterion | Score | Reasoning |
|
||||
|-----------|-------|-----------|
|
||||
| Practitioner | 10/10 | Google ships Material across all products; battle-tested at scale |
|
||||
| Clarity | 10/10 | Comprehensive docs, code examples, design kits, clear specifications |
|
||||
| ROI | 10/10 | 2-3x faster development, accessibility built-in, reduces design debt |
|
||||
| Novelty | 7/10 | Innovative in 2014; now standard but evolving with Expressive |
|
||||
| Cross-Domain | 10/10 | Works across web, mobile, desktop, wearables, automotive |
|
||||
|
||||
**Evidence**: Billions of Android devices, adoption by non-Google products (Todoist, Cash App), open-source community, continuous evolution (Material 3 Expressive 2025).
|
||||
|
||||
Reference in new issue
Block a user