Component Anatomy
Most Lumo UI components follow a consistent pattern with these customization points:- Colors - Container, content, border colors with state variants
- Shape - Corner radius and border styling
- Elevation - Shadow depth and hover effects
- Size - Padding, minimum dimensions, and spacing
- Content - Icons, labels, and custom content slots
Customizing Buttons
Using Built-in Variants
Buttons come with pre-defined variants covering common use cases:Creating Custom Button Styles
For advanced customization, create your own button configuration:Before and After Example
- Default
- Customized
- Black background (
AppTheme.colors.primary) - White text (
AppTheme.colors.onPrimary) - 12dp corner radius
- No elevation
Customizing Cards
Card Variants
Cards come in three pre-built variants:Custom Card Colors and Elevation
Interactive Cards
Make cards clickable with hover states:Customizing Text Fields
TextField Color Customization
TextField with Icons and Helper Text
Before and After: TextField
Customizing Other Components
Badge
Chip
Switch
Advanced Customization Patterns
Creating a Custom Defaults Object
Create reusable component defaults for your design system:Component Composition
Build complex components from simpler ones:Best Practices
Use Theme Colors
Prefer
AppTheme.colors.* over hardcoded colors for consistencyCreate Defaults
Build reusable defaults objects for your design system
State Management
Use
remember and state for interactive customizationsComposition
Compose complex components from simpler building blocks
Next Steps
Theming Guide
Learn how to customize the global theme
Component Reference
Explore all component APIs and parameters