JengaScheme

class JengaScheme(val light: JengaColors, val dark: JengaColors)(source)

A light + dark JengaColors pair: a complete custom color theme as one object. Pass it to JengaTheme(scheme = ...) and the right scheme is chosen for the current darkTheme, so the caller never wires the selection themselves.

val brandColors = JengaScheme(
light = jengaLightColors().copy(
brand = BrandPurple,
),
dark = jengaDarkColors().copy(
brand = BrandPurpleLight,
),
)
JengaTheme(
scheme = brandColors,
content = { App() },
)

Constructors

Link copied to clipboard
constructor(light: JengaColors, dark: JengaColors)

Properties

Link copied to clipboard
Link copied to clipboard