https://developer.android.com/agents/skills/jetpack-compose/theming/styles/skill
CommunityMigrate to Compose Styles without breaking UI
Software Engineering#theming#design tokens#jetpack compose#ui migration#styles api#state-based styling#experimental api
Authorfornewid
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps you migrate Jetpack Compose UI styling from per-parameter and Modifier-based styling into the experimental Compose Styles API while preserving visual consistency.
Core Features & Use Cases
- Guided migration plan: Walks you through analyzing your theme structure, introducing shared
ComponentStyles, and migrating each custom component. - State-aware styling: Shows how to use
MutableStyleStateand interaction sources so styles react correctly to enabled/disabled and other interactive states. - Safe validation workflow: Recommends screenshot baselining and verification (including Compose Preview comparisons) to prevent layout regressions.
- What it targets: Supports custom UI components and custom themes, and explicitly avoids Material Design component Styles.
Quick Start
Use the skill to migrate a custom component to Styles by creating a ComponentStyles.kt file, adding a Style for your component, switching the component signature to accept style: Style, and applying Modifier.styleable() with a state-backed style state.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: https://developer.android.com/agents/skills/jetpack-compose/theming/styles/skill Download link: https://github.com/fornewid/android-developers-changelog/archive/main.zip#https-developer-android-com-agents-skills-jetpack-compose-theming-styles-skill Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.