How to add customized Color to Kotlin Multiplatform Compose?

23 Views Asked by At

For each customized color, i want to specify rgb values for both light and dark mode.

Is that possible? And how?

1

There are 1 best solutions below

0
Dan Gerchcovich On

Take a look at this library here: https://github.com/icerockdev/moko-resources

It's fully multiplatform compatible, so you don't need to write any platform specific logic, or interfaces.

You will need ksp plugin to compile your colors, fonts, images, strings, or any other resources into the appropriate target folders.

https://github.com/icerockdev/moko-resources?tab=readme-ov-file#example-9---pass-colors