styles
OfficialMigrate to Jetpack Compose Styles safely
Software Engineering#theming#jetpack compose#ui migration#styles api#modifier.styleable#state-based styling#experimental api
Authorpremex-ab
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Adopting Jetpack Compose Styles reduces repeated styling and enables consistent, theme-driven UI—but migration is non-trivial and requires careful dependency, compiler, and code refactoring.
Core Features & Use Cases
- Dependency and API enablement: Guides you through required Compose versions and the exact Styles API import (
androidx.compose.foundation.style.Style), including experimental API opt-in. - Theme-first migration: Shows how to structure component styles (via a
ComponentStyles.ktfile) and connect them to custom themes for design-token-driven styling. - Component refactor workflow: Provides an end-to-end approach to replace hard-coded styling parameters with a
style: Styleparameter and applyModifier.styleable()with state tracking usingStyleStatefor interaction states. - Validation strategy: Recommends build checks plus screenshot-based visual parity validation (where possible) to prevent regressions.
Quick Start
Use the styles skill to migrate a custom design system component in your Jetpack Compose project to use the Styles API and stateful Modifier.styleable() styling.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: styles Download link: https://github.com/premex-ab/claude-marketplace/archive/main.zip#styles 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.