JengaSizing

class JengaSizing(val minTouchTarget: Dp = 48.dp, val iconSmall: Dp = 16.dp, val iconMedium: Dp = 20.dp, val iconLarge: Dp = 24.dp, val controlHeightSmall: Dp = 36.dp, val controlHeightMedium: Dp = 48.dp, val controlHeightLarge: Dp = 56.dp, val fieldHeight: Dp = 52.dp)(source)

Sizing token set: component dimensions, kept separate from spacing.

Sizing (touch targets, icon sizes, control heights) is its own token category rather than being conflated with spacing or hardcoded per component. Read via JengaTheme.sizing.

minTouchTarget is the accessibility minimum (48dp, Material/Lyft); Jenga's interactive blocks expand their touch area to at least this even when drawn smaller.

Constructors

Link copied to clipboard
constructor(minTouchTarget: Dp = 48.dp, iconSmall: Dp = 16.dp, iconMedium: Dp = 20.dp, iconLarge: Dp = 24.dp, controlHeightSmall: Dp = 36.dp, controlHeightMedium: Dp = 48.dp, controlHeightLarge: Dp = 56.dp, fieldHeight: Dp = 52.dp)

Properties

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

Functions

Link copied to clipboard
fun copy(minTouchTarget: Dp = this.minTouchTarget, iconSmall: Dp = this.iconSmall, iconMedium: Dp = this.iconMedium, iconLarge: Dp = this.iconLarge, controlHeightSmall: Dp = this.controlHeightSmall, controlHeightMedium: Dp = this.controlHeightMedium, controlHeightLarge: Dp = this.controlHeightLarge, fieldHeight: Dp = this.fieldHeight): JengaSizing