What problem does it solve?
It helps you quickly detect when a Jetpack Compose screen hardcodes UI styles or bypasses your shared theme/components, which leads to inconsistent design and lower maintainability.
Core Features & Use Cases
- Theme compliance checking: Verifies whether the screen uses LegadoTheme and required page-level color functions instead of hardcoded colors.
- Reusable component usage audit: Flags missing usage of project components such as GlassCard/TextCard, AppModalBottomSheet, TopFloatingStickyItem, and CheckboxItem.
- MaterialTheme consistency review: Ensures proper use of MaterialTheme.colorScheme and MaterialTheme.typography for standard components.
- Use Case: Before refactoring a Compose screen, run this to confirm it already follows the project’s reuse and theming conventions to avoid redundant work.
Quick Start
Use compose-reuse-checker on the target Compose .kt file (the one containing @Composable functions) to get a report of incorrect theme usage, missing shared components, and actionable migration suggestions.