# How I prototype with colors in Jetpack Compose

DevFeed: [How I prototype with colors in Jetpack Compose](<https://devfeed.tech/articles/how-i-prototype-with-colors-in-jetpack-compose-25784.md>)

Original publisher: [Read original article](<https://www.sinasamaki.com/how-i-prototype-with-colors-in-jetpack-compose/>)

Author: sinasamaki

Published: 2025-02-21T07:25:13Z

Content type: article

Language: en

Sources: [sinasamaki](<https://devfeed.tech/sources/sinasamaki.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [UI/UX Design](<https://devfeed.tech/topics/ui-ux-design.md>), [Dark Mode](<https://devfeed.tech/topics/dark-mode.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [Tailwind CSS](<https://devfeed.tech/topics/tailwind.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [android-studio](<https://devfeed.tech/tags/android-studio.md>), [article](<https://devfeed.tech/tags/article.md>), [boolean](<https://devfeed.tech/tags/boolean.md>), [color](<https://devfeed.tech/tags/color.md>), [colors](<https://devfeed.tech/tags/colors.md>), [compose](<https://devfeed.tech/tags/compose.md>), [dark-mode](<https://devfeed.tech/tags/dark-mode.md>), [design](<https://devfeed.tech/tags/design.md>), [designs](<https://devfeed.tech/tags/designs.md>), [extension-function](<https://devfeed.tech/tags/extension-function.md>), [hex](<https://devfeed.tech/tags/hex.md>), [html](<https://devfeed.tech/tags/html.md>), [iteration](<https://devfeed.tech/tags/iteration.md>), [jetpack](<https://devfeed.tech/tags/jetpack.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [light-mode](<https://devfeed.tech/tags/light-mode.md>), [palette](<https://devfeed.tech/tags/palette.md>), [prototype](<https://devfeed.tech/tags/prototype.md>), [prototyping](<https://devfeed.tech/tags/prototyping.md>), [rgb](<https://devfeed.tech/tags/rgb.md>)

## AI overview

For fast Jetpack Compose prototypes without brand guidelines, the author avoids tuning arbitrary hex values by copying Tailwind CSS's predefined palette into Kotlin color objects. Tailwind's 22 color groups and 11 light-to-dark variants provide 242 ready options. The author also uses an infix extension that selects dark or light variants based on the system theme; apps with their own theme picker can use that setting instead. These shortcuts are presented as ways to speed up color selection and remember both appearance modes.

## Source excerpt

Don't waste time choosing colors in Jetpack Compose