Work / Pantrix UI
Personal project · case study · 2026 · 4 platforms
Pantrix UI: one design system, four platforms
I designed and wrote a design system for Compose Multiplatform on Compose Foundation, with no Material: 108 components for Android, iOS, the desktop and the web, one theme that follows each platform’s conventions, and rules that machines keep.
- Role
- Designer and sole author, with AI coding agents held to the library’s gates
- Period
- 2026 · first release 29 October, 0.2.1 on 11 November
- Platforms
- Android, iOS, the desktop (JVM), the web (Wasm and JS)
- Stack
- Kotlin, Compose Multiplatform on Compose Foundation, no Material
- License
- Apache 2.0; packages and releases are public
- Outcome
- 108 components, 6,600+ tests at 97% line coverage
Context
Compose Multiplatform lets one Kotlin codebase draw an app on Android, iOS, the desktop and the web. Its components come from Material, Google’s design language for Android.
The problem
Material looks like Android everywhere. On an iPhone, a Mac or in a browser, people expect their platform’s touch targets, focus rings and shapes, and a brand wants its own look on all four. A library that has to keep that promise on six targets also has to keep its own rules as it grows.
My role
A personal project, outside work. I designed the library’s architecture, its tokens and its components’ APIs, and the gates every change passes: lint rules, API tracking, coverage and screenshots. AI coding agents wrote code for it too; none of it got in without passing those gates.
Decisions
01 Compose Foundation, no Material
- Options
- Material 3, themed · Compose Foundation alone
- Chosen
- Every component on Compose Foundation; a separate bridge for apps that move from Material screen by screen
- Why
- Each platform’s conventions without fighting Material’s defaults, and no Material in an app’s dependencies.
- Cost
- Every component written from the ground up: 108 of them.
02 One theme that follows the platform
- Options
- One look everywhere · a theme per platform · one theme that adapts
- Chosen
- One DesignPreset for the brand; each component’s style follows the platform it runs on
- Why
- A brand is set once, and every platform still feels like itself: its touch targets, its focus rings, its geometry.
- Cost
- Each component drawn and checked on every platform.
03 Rules in the build, not in a document
- Options
- A style guide · review alone · checks in the build
- Chosen
- 16 detekt rules, API tracking, a coverage gate and screenshot tests
- Why
- A rule holds when nobody is watching: for me, and for the coding agents.
- Cost
- Slower changes; every intended change to the public API is recorded.
04 Documents for coding assistants
- Options
- A documentation site alone · documents written from the sources
- Chosen
- Documents written from the sources at every build, a skill, and an MCP server
- Why
- An assistant answers from the library’s real API, not from memory.
- Cost
- One more artifact to build, test and publish.
Architecture
The library’s layers: the components on the foundation, drawn on four platforms, with the testing helpers, the detekt rules and the MCP server beside them.
- components: 108 components, each with its screenshot scenes
- foundation: theme, tokens, accessibility, adaptive layout, localisation, platform services
- Android: touch, haptics, the back gesture
- iOS: iosArm64, iosSimulatorArm64
- desktop: the JVM: focus rings, the keyboard
- web: Wasm, with a JavaScript build
components → foundation · foundation → Android · foundation → iOS · foundation → desktop · foundation → web
Beside them: testing, an app’s test helpers; detekt-rules, the 16 rules; mcp, the MCP server; material3, the bridge from Material.
Outcomes
- 108 Components: on Compose Foundation
- 6,600+ Tests: unit, UI and screenshot
- 97.3% Line coverage: 48,821 of 50,155 lines
- 762 Screenshots: on three platforms
From the library’s repository, November 2026.
What’s next
A native Jetpack Compose edition, for Android projects without Kotlin Multiplatform, is in progress as a codebase of its own. A SwiftUI edition and server-driven UI are planned. Until the source opens, the packages and the releases are public.