KindlingTheme

fun KindlingTheme(colorScheme: ColorScheme = MaterialTheme.colorScheme, typography: Typography = MaterialTheme.typography, shapes: KindlingShapes = KindlingShapes(), colors: KindlingColors = KindlingColors.fromMaterial3(), content: @Composable () -> Unit)(source)

Root theme wrapper for any app using Kindling.

Wraps MaterialTheme and provides KindlingShapes and KindlingColors via composition locals so every descendant composable can read them without explicit parameter threading.

Placement: call once at the top of your NavHost / Activity composition, just like MaterialTheme { … }.

// Minimal — library defaults (base = 10.dp, M3-derived chart colors)
KindlingTheme {
Scaffold { … }
}

// Custom corner radius + branded chart palette
KindlingTheme(
colorScheme = myDarkColorScheme,
shapes = KindlingShapes(base = 4.dp),
colors = KindlingColors(
chart1 = Color(0xFFFF6B35),
chart2 = Color(0xFF004E89),
chart3 = Color(0xFF1A936F),
chart4 = Color(0xFFC6AC8F),
chart5 = Color(0xFF5C4742),
),
) { … }

Parameters

colorScheme

Material3 color scheme. Defaults to MaterialTheme.colorScheme so you can nest KindlingTheme inside an existing MaterialTheme.

typography

Material3 typography.

shapes

Kindling shape tokens. Defaults to KindlingShapes (base = 10 dp).

colors

Five-slot chart palette. Defaults to KindlingColors.fromMaterial3 so dark/light mode is handled automatically when omitted.

content

The composition subtree.