Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
interface ColorPalette

A palette that provides a standard, gradient range of colors based on some unifying color concept.

Link copied to clipboard

A veritable rainbow of color palettes to choose from.

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

A CSS class representing the given color mode.

Link copied to clipboard

Returns the system color preference (which represents the user's device color preference).

Functions

Link copied to clipboard

Assuming this string represents a CSS class name, test whether it has the specified color mode suffix.

Link copied to clipboard
fun ColorMode.Companion.loadFromLocalStorage(key: String = DEFAULT_COLOR_MODE_STORAGE_KEY_NAME): ColorMode?
Link copied to clipboard
fun ColorMode.saveToLocalStorage(key: String = DEFAULT_COLOR_MODE_STORAGE_KEY_NAME)
Link copied to clipboard
@Composable
@ReadOnlyComposable
fun Color.shifted(byPercent: Float = Color.DEFAULT_SHIFTING_PERCENT): Color

Convenience function for when you're inside a Composable context, within which you can grab the current color mode.

fun Color.shifted(colorMode: ColorMode, byPercent: Float = Color.DEFAULT_SHIFTING_PERCENT): Color

Lighten or darken the color, as appropriate, based on the specified color mode.

Link copied to clipboard

For a String that represents a CSS class name, append the appropriate color mode suffix to it.

Link copied to clipboard

Assuming this string represents a CSS class name, remove its color mode suffix if it has one.