SwiftUiColorsTask

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

Implementation for generating a Swift file with all colors for SwiftUI.

Constructors

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

Functions

Link copied to clipboard
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.