from
Generates a brand scale from a single brandColor.
The input is placed at s500 (the core brand stop). Lighter stops are interpolated toward white and darker stops toward black using Oklab perceptual color space.
This is an approximation intended for quick re-branding. For pixel-perfect results, provide an explicit ColorScale.
Use inverted to obtain the dark-theme counterpart:
val purple = ColorScale.from(brandColor = Color(0xFF6200EE))
val light = Colors.default(brand = purple)
val dark = Colors.defaultDark(brand = purple.inverted())Content copied to clipboard
Parameters
brandColor
The core brand color (maps to s500).