Design language rollout
Status: plan, not built.
The app is the WebView page (server/examples/dummy-client/index.html, copied to android/app/src/main/assets/index.html) plus native Kotlin screens. There is no Compose. Most of the look lives in the page, so most steps are page steps. Each step is a small change that ships alone and keeps the app working. The gaps are listed at the end of each Design page.
Steps
- Token file. Add
design-tokens/tokens.jsonwith every value in Tokens. A small Rust program (a binary in the repo, no Node or Python) makestokens.css,res/values/ax_tokens.xml,res/values-night/ax_tokens.xmlanddimens.xml. Keep today's names (--page,--card...) so nothing breaks. - Page colours. Put the made CSS in the page's
:rootand dark block. Addaccent,raised,scrim,shadow-raised. Apply the contrast fixes (mute,ok,warn). Make the update bar useaccent. - Font. Bundle Inter (woff2, Latin subset) in the page. Drop
Space Grotesk. Move font sizes to the seven type tokens, in rem, so the phone's text size works. - Spacing and corners. Replace hand-set values with
space-*andradius-*. Remove the odd 9 and 34. - Motion. Replace hand-written curves and times with
dur-*andease-*variables. Check every animation is inside the reduced-motion block. - Icons. Keep
ICONSbut check each against Lucide and set sizes withicon-*. Add the animated icons: mic → stop, send, done check. - Native screens. Move
RingActivity.kt,AssistActivity.ktandVoiceGlow.ktto@color/ax_*and@dimen/ax_*. Voice and live states useaccent. Notification icons follow Icons. - Components. Add sheets, toasts and swipe row actions to the page. Unify the approval card, ringing card and voice card buttons with Components.
- Wide layouts. Replace the phone frame at 520 px with the breakpoints: rail at 600, list and detail at 840, side pane at 1200.
- Accessibility pass. TalkBack on native screens, 200% text, keyboard on desktop, row text selectable on desktop.
- Smart UI. Last, once the layout is stable: the "why this" card on Home, context cards and suggested replies, behind a Settings switch. See Smart UI.
Per step
- Screenshots before and after, light and dark, phone and desktop width.
- The page contract stays the same (
NativeApp.*,window.__*). See App structure. - Update the gap list on the design page that the step closes, and Done.
Later choice
If native screens grow, Compose could replace plain views. The token file can make an Ax Kotlin object for it. Not needed for these steps.