Package-level declarations

Types

Link copied to clipboard
object SilkStyleSheet : StyleSheet

A stylesheet that will be used for configuring Silk components.

Functions

Link copied to clipboard
@Composable
fun ColorModeAware(elementId: String)

Set the CSS class representing the active color mode on the element with the target ID. This will enable color mode aware styles for all the element's descendants and set the necessary CSS variables for Silk widgets, if being used.

@Composable
fun ColorModeAware(element: HTMLElement = document.documentElement.unsafeCast<HTMLElement>())

Set the CSS class representing the active color mode on element. This will enable color mode aware styles for all descendants of element and set the necessary CSS variables for Silk widgets, if being used.

Link copied to clipboard

Set the CSS class representing the provided color mode on this. This will set the color mode for styles on the element's descendants and set the necessary CSS variables for Silk widgets, if being used.

Link copied to clipboard
@Composable
fun SilkFoundationStyles(initSilk: (InitSilkContext) -> Unit = {})

Handle initialization so that the rest of your application can use Silk widgets.