StylishShapes

data class StylishShapes(val small: CornerBasedShape = RoundedCornerShape(6.dp), val medium: CornerBasedShape = RoundedCornerShape(12.dp), val large: CornerBasedShape = RoundedCornerShape(20.dp), val extraLarge: CornerBasedShape = RoundedCornerShape(28.dp))

Corner-radius shape tokens for the Stylish UI design system.

The default values produce the standard Stylish look (Clear, Simple, Modern): a soft small step for chips and badges, a medium step for cards and connected layouts, a large step for dialogs and sheets, and a fully-rounded extra-large step for capsules and FABs. Override globally via the com.segnities007.stylishui.theme.StylishTheme composable's shapes parameter, or per-component through individual component parameters.

Access the active instance inside composables with StylishTheme.shapes (see com.segnities007.stylishui.theme.StylishTheme).

See also

Constructors

Link copied to clipboard
constructor(small: CornerBasedShape = RoundedCornerShape(6.dp), medium: CornerBasedShape = RoundedCornerShape(12.dp), large: CornerBasedShape = RoundedCornerShape(20.dp), extraLarge: CornerBasedShape = RoundedCornerShape(28.dp))

Properties

Link copied to clipboard

The fully-rounded corner radius (28 dp): capsules, extended FABs, floating headers.

Link copied to clipboard

The large corner radius (20 dp): dialogs, bottom sheets, menus.

Link copied to clipboard

The standard corner radius (12 dp): cards, connected items, inputs.

Link copied to clipboard

The smallest corner radius (6 dp): chips, badges, small controls.