Jenga Shapes
class JengaShapes(val none: RoundedCornerShape = RoundedCornerShape(0.dp), val xs: RoundedCornerShape = RoundedCornerShape(4.dp), val sm: RoundedCornerShape = RoundedCornerShape(8.dp), val md: RoundedCornerShape = RoundedCornerShape(12.dp), val lg: RoundedCornerShape = RoundedCornerShape(16.dp), val xl: RoundedCornerShape = RoundedCornerShape(24.dp), val control: RoundedCornerShape = RoundedCornerShape(10.dp), val card: RoundedCornerShape = RoundedCornerShape(16.dp), val cardLarge: RoundedCornerShape = RoundedCornerShape(20.dp), val pill: RoundedCornerShape = RoundedCornerShape(percent = 50))(source)
Shape token set: corner radii for Jenga surfaces.
Exposes both a mechanical scale (xs to xl) and semantic shapes (control, card, pill) that map directly to the frontend's --radius-control (10dp), --radius-card (16dp) and --radius-pill (full). Read via JengaTheme.shapes.
Constructors
Link copied to clipboard
constructor(none: RoundedCornerShape = RoundedCornerShape(0.dp), xs: RoundedCornerShape = RoundedCornerShape(4.dp), sm: RoundedCornerShape = RoundedCornerShape(8.dp), md: RoundedCornerShape = RoundedCornerShape(12.dp), lg: RoundedCornerShape = RoundedCornerShape(16.dp), xl: RoundedCornerShape = RoundedCornerShape(24.dp), control: RoundedCornerShape = RoundedCornerShape(10.dp), card: RoundedCornerShape = RoundedCornerShape(16.dp), cardLarge: RoundedCornerShape = RoundedCornerShape(20.dp), pill: RoundedCornerShape = RoundedCornerShape(percent = 50))
Properties
Link copied to clipboard
Cards, sheets and panels (16dp).
Link copied to clipboard
Large cards, heroes and expressive panels (20dp). A softer, more "M3-Expressive" corner than card for prominent, imagery-led surfaces; opt in per-surface or theme-wide via JengaTheme(shapes = …).
Link copied to clipboard
Buttons, inputs and other controls (10dp).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Fully rounded: pills, chips, avatars, FABs.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
fun copy(none: RoundedCornerShape = this.none, xs: RoundedCornerShape = this.xs, sm: RoundedCornerShape = this.sm, md: RoundedCornerShape = this.md, lg: RoundedCornerShape = this.lg, xl: RoundedCornerShape = this.xl, control: RoundedCornerShape = this.control, card: RoundedCornerShape = this.card, cardLarge: RoundedCornerShape = this.cardLarge, pill: RoundedCornerShape = this.pill): JengaShapes