KindlingShapes

data class KindlingShapes(val base: Dp = 10.dp)(source)

Immutable shape token bag consumed by every Kindling component.

All slots default to a value derived from base so changing just base reskins the entire library — the same effect as editing --radius in CSS.

// Sharp / square UI
KindlingTheme(shapes = KindlingShapes(base = 0.dp)) { … }

// Pill-heavy / very round UI
KindlingTheme(shapes = KindlingShapes(base = 20.dp)) { … }

// Override one slot while keeping everything else default
KindlingTheme(shapes = KindlingShapes(base = 10.dp)) { … }

Constructors

Link copied to clipboard
constructor(base: Dp = 10.dp)

Properties

Link copied to clipboard
val base: Dp

The global base radius. Defaults to 10 dp (= 0.625 rem × 16).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rounded: Dp
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard