Metadata-Version: 2.4
Name: lumo-mobile
Version: 0.2.3
Summary: Deterministic mobile UI/UX checks for Compose / SwiftUI / XML / UIKit — WCAG validator with OKLCH auto-correct, cross-platform parity diff, cognitive-science (Fitts / Hick / Gestalt) layout checks. Ships with an MCP server.
Author: Viktor Savchik
License-Expression: MIT
Project-URL: Homepage, https://github.com/OneXeor-Dev/lumo
Project-URL: Repository, https://github.com/OneXeor-Dev/lumo
Project-URL: Issues, https://github.com/OneXeor-Dev/lumo/issues
Keywords: mobile,design,ui,ux,wcag,accessibility,jetpack-compose,swiftui,uikit,android,ios,fitts,gestalt,design-system,cross-platform,mcp
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: numpy<2.5,>=1.26
Requires-Dist: mcp<2,>=1.27
Requires-Dist: tree-sitter>=0.23
Requires-Dist: tree-sitter-kotlin>=1.1
Requires-Dist: tree-sitter-swift>=0.7
Requires-Dist: httpx>=0.27
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.24; extra == "dev"
Requires-Dist: ruff>=0.4; extra == "dev"
Requires-Dist: mypy>=1.10; extra == "dev"
Requires-Dist: pillow>=10.0; extra == "dev"
Provides-Extra: viz
Requires-Dist: pillow>=10.0; extra == "viz"
Provides-Extra: spec
Requires-Dist: anthropic>=0.40; extra == "spec"

# lumo-mobile

Deterministic mobile UI/UX checks invoked by [Lumo](https://github.com/OneXeor-Dev/lumo) — a
Claude Code skill / MCP server / CLI toolkit for designing polished mobile
apps on Jetpack Compose, Android XML, SwiftUI, and UIKit.

Install:

```bash
pipx install lumo-mobile
```

Eight CLIs ship:

| Command | What it does |
|---|---|
| `lumo-wcag check --fg <hex> --bg <hex>` | WCAG AA / AAA contrast verdict using the W3C luminance formula. |
| `lumo-wcag fix   --fg <hex> --bg <hex>` | OKLCH auto-correct that preserves hue and chroma while pushing the contrast above the threshold. |
| `lumo-theory check --layout <path>` | Cognitive-science layout checks: Fitts (undersized targets, relative difficulty for primaries), Hick overload, Gestalt proximity, one-handed reachability. |
| `lumo-parity diff --android <path> --ios <path> [--config <path>]` | Cross-platform diff between Android (dp) and iOS (pt) layouts, with optional design-system token validation. |
| `lumo-source check --file <path>` | AST-based design-system drift checks for Jetpack Compose and SwiftUI source files. |
| `lumo-audit scan --root <path>` | Whole-repository aggregation of `lumo-source` findings and measured hardcoded spacing / radius scales. |
| `lumo-figma diff ...` | Figma variable diff against audited code values. |
| `lumo-figma render ...` | Render a Figma frame into Lumo layout JSON from measured `absoluteBoundingBox` coordinates. |
| `lumo-figma annotate ...` | Draw Lumo finding overlays on a Figma frame PNG for visual review. |
| `lumo-render compose --file <path>` / `lumo-render swiftui --file <path>` | Static AST layout evaluator that produces measured-like coordinates from Compose / SwiftUI source. |
| `lumo-mcp` | Model Context Protocol server (stdio) exposing all of the above to Claude Code, Cursor, Continue, Aider, Goose, Zed, Codex. |

See the [main repo](https://github.com/OneXeor-Dev/lumo) for the full SKILL.md,
examples, and rationale.

## License

MIT
