Package-level declarations

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun autoContentColor(background: Color): Color

Simple heuristic to pick white or black text based on the color’s luminance.

Link copied to clipboard
fun lighten(color: Color, fraction: Float): Color

Naively lighten a color by blending it toward white by fraction. fraction = 0.0f -> unchanged color fraction = 1.0f -> fully white

Link copied to clipboard
fun minimalDarkColorScheme(primary: Color, secondary: Color, tertiary: Color, surface: Color, background: Color, error: Color): ColorScheme
Link copied to clipboard
fun minimalLightColorScheme(primary: Color, secondary: Color, tertiary: Color, surface: Color, background: Color, error: Color): ColorScheme