Google unveils Android Compose 2.0 with live design tokens and auto-layout
Design ยท 5 min read
Compose 2.0 brings a token system that syncs directly with design files and remote token stores, enabling runtime updates to color, typography, and spacing without requiring app redeploys. The token format is JSON-first and supports semantic theming, multiple color modes, and platform-specific overrides.
A new auto-layout feature draws on constraint-based layout patterns to let components respond to content and screen shape changes more fluidly. Google demonstrated Compose UIs that adapt seamlessly to foldables, dynamically resizing windows, and different input modalities with minimal code.
Google also improved Compose tooling in Android Studio, adding a live preview that reflects runtime tokens and a collaboration mode where designers can annotate previews for developers. The company released migration scripts to help teams move from classic Views and Compose 1.x patterns.
Designers and engineers welcomed the enhanced parity with web CSS variables and tokens, but some concerns remain about binary size and runtime performance on low-end devices. Google stated that token updates can be gated behind feature flags and that the runtime includes caching and validation to mitigate costs.