Stylish Theme
Root theme composable that applies the Stylish UI design language to all descendant content.
Wraps MaterialTheme with a CompositionLocalProvider for StylishDimensions, StylishAnimationTokens, StylishShapes, and StylishComponentColors, giving every Stylish component access to consistent spacing, corner-radius, elevation, outline, motion, shape, and derived-color tokens. Place this at the top of your composable hierarchy (typically in your Activity or App composable) so that all child components inherit the design tokens.
Parameters
Whether to use the dark color scheme. Typically derived from isSystemInDarkTheme().
When true and the platform supports it (Android 12+), the wallpaper derived Material You scheme overrides colorScheme. On other platforms this parameter has no effect. Ignored while seedColor resolves a scheme.
When non-null, a seed color used to generate a Material You style ColorScheme on every platform via MaterialKolor, overriding both dynamicColor and colorScheme. Use this for brand-colored themes that still follow the tonal Material 3 color system.
The Material 3 ColorScheme to apply. Defaults to StylishDarkColorScheme when darkTheme is true, otherwise StylishLightColorScheme. Ignored when seedColor or dynamicColor resolves a dynamic scheme.
The Material 3 Typography scale. Defaults to StylishTypography.
The StylishDimensions spatial tokens. Defaults to DefaultStylishDimensions. Override globally here, or per-component via individual parameters.
The StylishShapes corner-radius tokens. Defaults to DefaultStylishShapes. Override globally here, or per-component via individual parameters.
The StylishAnimationTokens motion tokens. Defaults to DefaultStylishAnimationTokens. Override globally here, or per-component via individual parameters where available.
The StylishComponentColors used by Stylish components. When null (the default) they are computed from the resolved ColorScheme; pass an instance to override the derived colors globally.
The composable content that will be themed.