Before you begin
Make sure you’ve installed the plugin in your project.Step 1: Initialize the plugin
Run the initialization command to create the configuration file:Terminal
lumo.properties file in your project root with the following structure:
lumo.properties
Configure your project paths
Edit the
lumo.properties file to match your project structure:The
ComponentsDir should be an absolute or relative path from your project root. The plugin will create this directory if it doesn’t exist.Setup the theme
Generate the theme files (colors, typography, and theme configuration):This creates three files in your components directory:
Terminal
Color.kt- Color palette with light and dark mode supportTypography.kt- Typography scale and text stylesTheme.kt- Main theme composable with AppTheme wrapper
The setup command also validates your configuration and ensures all paths are correct.
Add your first component
Generate your first component. Let’s start with a Button:This creates
Terminal
Button.kt in your components directory with:- Multiple button variants (Primary, Secondary, Destructive)
- Different styles (Filled, Outlined, Elevated, Ghost)
- Disabled states
- Loading support
- Full customization options
Command reference
Here are the most common Lumo UI commands:Example output
When you add a component, you’ll see output similar to this:Terminal output
Customize components
Since components are copied into your project, you have full control to modify them:Button.kt
Available components
Lumo UI provides 30+ production-ready components:Accordion
AlertDialog
Badge
Button
Card
Checkbox
Chip
Divider
Icon
IconButton
ModalBottomSheet
NavigationBar
OTPTextField
ProgressIndicators
RadioButton
Scaffold
Slider
Snackbar
Surface
Switch
SystemBars
Text
TextField
Tooltip
TopBar
Next steps
Components
Explore all available components and their usage
Theming
Customize colors, typography, and theme configuration
Configuration
Learn about advanced configuration options
Examples
See real-world examples and patterns