{"id":13626907,"url":"https://github.com/godaddy/compose-color-picker","last_synced_at":"2025-07-27T10:21:14.015Z","repository":{"id":41958340,"uuid":"421457543","full_name":"godaddy/compose-color-picker","owner":"godaddy","description":"Jetpack Compose Android Color Picker 🎨","archived":false,"fork":false,"pushed_at":"2024-05-02T18:16:40.000Z","size":52736,"stargazers_count":378,"open_issues_count":22,"forks_count":23,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-11-08T17:47:51.570Z","etag":null,"topics":["android","color-picker","compose","hacktoberfest","jetpack-compose"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/godaddy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-26T14:25:49.000Z","updated_at":"2024-10-26T20:32:17.000Z","dependencies_parsed_at":"2024-01-14T08:25:54.380Z","dependency_job_id":"4dcd8541-44bb-451a-966d-16ba9b06c4a4","html_url":"https://github.com/godaddy/compose-color-picker","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaddy%2Fcompose-color-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaddy%2Fcompose-color-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaddy%2Fcompose-color-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godaddy%2Fcompose-color-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/godaddy","download_url":"https://codeload.github.com/godaddy/compose-color-picker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249268547,"owners_count":21240940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","color-picker","compose","hacktoberfest","jetpack-compose"],"created_at":"2024-08-01T22:00:25.011Z","updated_at":"2025-04-16T19:30:50.718Z","avatar_url":"https://github.com/godaddy.png","language":"Kotlin","funding_links":[],"categories":["UI experimentation"],"sub_categories":[],"readme":"# Android Jetpack Compose Color Picker 🎨\n\n![Maven Central](https://img.shields.io/maven-central/v/com.godaddy.android.colorpicker/compose-color-picker-android?style=flat-square)\n\nA component that provides two different HSV color pickers, written in Jetpack Compose.\n1. ClassicColorPicker - Square picker with alpha channel\n2. HarmonyColorPicker - Circular wheel with harmony modes (ie complementary, triadic, analogous, shades, monochromatic, tetradic)\n\n\nhttps://user-images.githubusercontent.com/9973046/154516879-495a6816-9595-49b9-beaf-dafc2e1110ec.mp4\n\nhttps://user-images.githubusercontent.com/9973046/154515203-f0818a14-3bb0-4e5a-91fc-f3cac2e2e770.mp4\n\n\n## How to get started\n\nAdd the dependency to your `build.gradle` file:\n\n```\nimplementation 'com.godaddy.android.colorpicker:compose-color-picker:\u003clatest-version\u003e'\n\n// with Android ColorInt extensions\nimplementation 'com.godaddy.android.colorpicker:compose-color-picker-android:\u003clatest-version\u003e'\n// desktop jvm version\nimplementation 'com.godaddy.android.colorpicker:compose-color-picker-jvm:\u003clatest-version\u003e'\n```\n\nAdd `ClassicColorPicker` to your Compose hierarchy:\n\n```kotlin\nimport com.godaddy.android.colorpicker.HsvColor\n\nColumn {\n    ClassicColorPicker(\n        onColorChanged = { color: HsvColor -\u003e\n            // Do something with the color\n        }\n    )\n}\n```\n\nOr add the `HarmonyColorPicker` to your Compose hierarchy for an HSV color wheel implementation:\n\n```kotlin\n HarmonyColorPicker(\n    harmonyMode = harmonyMode.value,\n    modifier = Modifier.size(400.dp),\n    onColorChanged = { color -\u003e\n        currentColor.value = color\n        extraColors.value = color.getColors(colorHarmonyMode = harmonyMode.value)\n})\n```\n\nThe `HarmonyColorPicker` allows for you to set a certain `ColorHarmonyMode` on the wheel.\nThis will then display multiple magnifiers on top of the wheel for the different harmony modes: ie complementary, triadic, analogous, shades, monochromatic, tetradic.\nIf you wish to not display other magnifiers - set `ColorHarmonyMode.NONE` as your `harmonyMode` on the wheel.\n\n# ClassicColorPicker:\n## Customizing the control\n\n### Size\n\nTo change the size of the control, pass in the `Modifier` option:\n\n```kotlin\nimport com.godaddy.android.colorpicker.HsvColor\n\nClassicColorPicker(\n    modifier = Modifier.height(200.dp),\n    onColorChanged = { color: HsvColor -\u003e\n        // Do something with the color\n    }\n)\n```\n\n### Alpha\n\nTo hide the alpha bar, change the `showAlphaBar` parameter:\n\n```kotlin\nimport com.godaddy.android.colorpicker.HsvColor\n\nClassicColorPicker(\n    showAlphaBar = false,\n    onColorChanged = { color: HsvColor -\u003e\n        // Do something with the color\n    }\n)\n```\n\n## HarmonyColorPicker\n\n## Customizing the control\n\n### Harmony Mode\n\nTo change the harmony mode of the picker, pass in a different mode into the function:\n\n```kotlin\nHarmonyColorPicker(\n    harmonyMode = ColorHarmonyMode.SHADES,\n    modifier = Modifier.size(400.dp),\n    onColorChanged = { color -\u003e\n               // do stuff with new color\n})\n```\n\n### Size\n\nTo change the size of the control, pass in the `Modifier` option:\n\n```kotlin\nimport com.godaddy.android.colorpicker.HsvColor\n\nHarmonyColorPicker(\n    modifier = Modifier.height(200.dp),\n    onColorChanged = { color: HsvColor -\u003e\n        // Do something with the color\n    }\n)\n```\n\n# Library Contribution Information\n\n## Code Formatting\n\nThis project uses spotless to enforce code formatting. Run `./gradlew spotlessApply` to run formatting before committing.\n\n### Releases\n\n1. Update the version number in color-picker/build.gradle.kts\n2. Make a PR into main and get that merged\n3. Run \"Deploy to Sonatype\" GitHub Action.\n4. Login to Sonatype and \"Close\" release. After a few minutes, click \"Release\".\n5. Release should then be available for download on maven (might take like 30 min to propagate).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodaddy%2Fcompose-color-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgodaddy%2Fcompose-color-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodaddy%2Fcompose-color-picker/lists"}