ColorMode

Entries

Link copied to clipboard
Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A CSS class representing the given color mode.

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun provide(): ProvidedValue<MutableState<ColorMode>>

Provide this color, useful within a CompositionLocalProvider call.

Link copied to clipboard
fun ColorMode.saveToLocalStorage(key: String = DEFAULT_COLOR_MODE_STORAGE_KEY_NAME)
Link copied to clipboard

Convenience method for fetching the silk palette associated with the target color mode, useful for when you aren't in a @Composable scope (which is common when defining CssStyles).

Link copied to clipboard
fun valueOf(value: String): ColorMode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.