with Brand
fun JengaColors.withBrand(brand: Color, onBrand: Color = this.onBrand, brandSubtle: Color = this.brandSubtle, onBrandSubtle: Color = this.onBrandSubtle): JengaColors(source)
Multi-brand convenience: returns a copy of this scheme rebranded to brand. The semantic structure (surfaces, text, lines, status) is untouched; only the brand accent and its subtle/on pairs change.
JengaTheme(
colors = jengaLightColors().withBrand(
brand = Color(
color = 0xFF6D28D9,
),
),
content = { … },
)Content copied to clipboard