Find hardcoded color literals inside @Composable

Proprietary

Color(0xFF…) literals inside composables break theming and accessibility (light/dark). Hoist into MaterialTheme.colorScheme.*.

org.openrewrite.kotlin.compose.FindHardcodedDesignTokens$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.compose.FindHardcodedDesignTokens$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Find Color(0xFF…) / Color.X literals inside @Composable