Package-level declarations

Types

Link copied to clipboard
class ImmutableSilkTheme(mutableSilkTheme: MutableSilkTheme)
Link copied to clipboard

Theme values that will get frozen at initialization time.

Properties

Link copied to clipboard

Return the class name associated with the given CssStyleVariant.

Return the class name associated with the given CssStyle.

Return the class name associated with the given Keyframes.

Link copied to clipboard

Functions

Link copied to clipboard
fun MutableSilkTheme.modifyStyle(style: CssStyle<*>, extraModifier: Modifier = Modifier, init: CssStyleScope.() -> Unit)

Use this method to tweak a style previously registered using MutableSilkTheme.registerStyle.

fun MutableSilkTheme.modifyStyle(style: CssStyle<*>, extraModifier: @Composable () -> Modifier, init: CssStyleScope.() -> Unit)
Link copied to clipboard
fun MutableSilkTheme.modifyStyleBase(style: CssStyle<*>, extraModifier: Modifier = Modifier, init: CssStyleBaseScope.() -> Modifier)
fun MutableSilkTheme.modifyStyleBase(style: CssStyle<*>, extraModifier: @Composable () -> Modifier, init: CssStyleBaseScope.() -> Modifier)
Link copied to clipboard
fun <K : ComponentKind> MutableSilkTheme.modifyVariant(variant: CssStyleVariant<K>, extraModifier: Modifier = Modifier, init: CssStyleScope.() -> Unit)

fun <K : ComponentKind> MutableSilkTheme.modifyVariant(variant: CssStyleVariant<K>, extraModifier: @Composable () -> Modifier, init: CssStyleScope.() -> Unit)

Use this method to tweak a variant previously registered using MutableSilkTheme.registerVariant.

Link copied to clipboard
fun <K : ComponentKind> MutableSilkTheme.modifyVariantBase(variant: CssStyleVariant<K>, extraModifier: Modifier = Modifier, init: CssStyleBaseScope.() -> Modifier)
fun <K : ComponentKind> MutableSilkTheme.modifyVariantBase(variant: CssStyleVariant<K>, extraModifier: @Composable () -> Modifier, init: CssStyleBaseScope.() -> Modifier)
Link copied to clipboard
fun MutableSilkTheme.replaceStyleBase(style: CssStyle<*>, extraModifier: Modifier = Modifier, init: CssStyleBaseScope.() -> Modifier)

fun MutableSilkTheme.replaceStyleBase(style: CssStyle<*>, extraModifier: @Composable () -> Modifier, init: CssStyleBaseScope.() -> Modifier)

Convenience method when you want to replace an upstream style but only need to define a base style.

Link copied to clipboard
fun <K : ComponentKind> MutableSilkTheme.replaceVariantBase(variant: CssStyleVariant<K>, extraModifier: Modifier = Modifier, init: CssStyleBaseScope.() -> Modifier)

fun <K : ComponentKind> MutableSilkTheme.replaceVariantBase(variant: CssStyleVariant<K>, extraModifier: @Composable () -> Modifier, init: CssStyleBaseScope.() -> Modifier)

Convenience method when you want to replace an upstream variant but only need to define a base style.