KotlinComposeColorsTask

open class KotlinComposeColorsTask(packageName: String, checkColorCorrectness: Boolean, outputPath: String, themeFiles: ThemeFile) : ColorsTask

Implementation for generating a Kotlin file with all colors for Compose.

Constructors

Link copied to clipboard
fun KotlinComposeColorsTask(packageName: String, checkColorCorrectness: Boolean, outputPath: String, vararg themeFiles: ThemeFile)

Functions

Link copied to clipboard
Link copied to clipboard
fun contentColorFor(predicate: (List<Color>, ColorFile) -> String?)
Link copied to clipboard
suspend fun getColors(): List<Color>
open suspend fun getColors(themeFile: ThemeFile): List<Color>
Link copied to clipboard
open suspend override fun run(): List<TaskFile>

Properties

Link copied to clipboard
lateinit var figmaToken: String
Link copied to clipboard
open override val themeFiles: List<ThemeFile>

the list of figma files associated to a specific theme by name.

Inheritors

Link copied to clipboard