Package-level declarations

Types

Link copied to clipboard

Mutable implementation of PaletteonConfig to allow changes to configuration settings.

Link copied to clipboard
interface PaletteonConfig

Interface for managing Paletteon configuration settings.

Link copied to clipboard
data class PaletteonTheme(val seedColor: Color = Color.Blue, val useDarkTheme: Boolean = false, val withAmoled: Boolean = false, val style: PaletteStyle = PaletteStyle.TonalSpot, val contrast: Contrast = Contrast.Default, val isExtendedFidelity: Boolean = false, val animate: Boolean = false)

Data class representing the theme configuration for Paletteon.

Functions

Link copied to clipboard

Retrieves the current Paletteon theme from local storage or provides default values if not found.

Link copied to clipboard
fun initPaletteon(ctx: InitSilkContext)

Initializes the Paletteon configuration based on values stored in local storage.

Link copied to clipboard
@Composable
fun PaletteonKobwebProvider(content: @Composable () -> Unit)

A Composable provider for managing the Paletteon theme and color mode within a Kobweb application.

Link copied to clipboard

Saves the given PaletteonTheme to local storage.