Package-level declarations

Types

Link copied to clipboard

Represents different levels of contrast for UI components.

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
annotation class PaletteonDsl
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 modifyColorScheme: PaletteonTheme.(ColorScheme) -> ColorScheme? = null)

Data class representing the theme configuration for Paletteon.

Link copied to clipboard

Represents different styles for generating color palettes, aligned with Variant in the Material Design guidelines.

Properties

Link copied to clipboard

Returns the on-success color from the current ColorScheme.

Link copied to clipboard

Returns the on-success container color from the current ColorScheme.

Link copied to clipboard

Returns the on-warning color from the current ColorScheme.

Link copied to clipboard

Returns the on-warning container color from the current ColorScheme.

Link copied to clipboard

Returns the success color from the current ColorScheme.

Link copied to clipboard

Returns the success container color from the current ColorScheme.

Link copied to clipboard

Returns the warning color from the current ColorScheme.

Link copied to clipboard

Returns the warning container color from the current ColorScheme.

Functions

Link copied to clipboard

Configures the current PaletteonTheme using a DSL-style builder.

Configures a new PaletteonTheme using a DSL-style builder.

Link copied to clipboard
fun paletteonColorScheme(seedColor: Color, isDark: Boolean, isAmoled: Boolean, style: PaletteStyle = PaletteStyle.TonalSpot, contrast: Contrast = Contrast.Default, isExtendedFidelity: Boolean = false, modifyColorScheme: (ColorScheme) -> ColorScheme? = null): ColorScheme

Creates a ColorScheme based on the given seedColor and isDark mode.

Link copied to clipboard
fun PaletteonDynamicTheme(seedColor: Color, useDarkTheme: Boolean = isSystemInDarkTheme(), withAmoled: Boolean = false, style: PaletteStyle = PaletteStyle.TonalSpot, contrast: Contrast = Contrast.Default, isExtendedFidelity: Boolean = false, shapes: Shapes = MaterialTheme.shapes, typography: Typography = MaterialTheme.typography, animate: Boolean = false, animationSpec: AnimationSpec<Color> = spring(stiffness = Spring.StiffnessLow), content: @Composable () -> Unit)

A custom theme based on Paletteon, which adapts to the provided seed color and other configuration parameters.

Link copied to clipboard

Remembers and returns a Color associated with a specific DynamicColor role.

Link copied to clipboard
fun rememberPaletteonColorScheme(seedColor: Color, isDark: Boolean, isAmoled: Boolean = false, style: PaletteStyle = PaletteStyle.TonalSpot, contrast: Contrast = Contrast.Default, isExtendedFidelity: Boolean = false, modifyColorScheme: (ColorScheme) -> ColorScheme? = null): ColorScheme

Creates and remember a ColorScheme based on the given seedColor and isDark mode.