StylishDimensions

data class StylishDimensions(val connectedSpacing: Dp = 3.dp, val outlineWidth: Dp = 0.4.dp, val interactiveElevation: Dp = 1.dp, val focusedElevation: Dp = 1.dp, val hoveredElevation: Dp = 2.dp, val pressedElevation: Dp = 0.dp, val disabledElevation: Dp = 0.dp, val floatingElevation: Dp = 2.dp, val connectedCornerRadius: Dp = 12.dp, val joinedCornerRadius: Dp = 2.dp, val floatingCornerRadius: Dp = 28.dp, val spacingNone: Dp = 0.dp, val spacingXxs: Dp = 2.dp, val spacingXs: Dp = 4.dp, val spacingSm: Dp = 8.dp, val spacingMd: Dp = 12.dp, val spacingLg: Dp = 16.dp, val spacingXl: Dp = 20.dp, val spacingXxl: Dp = 24.dp, val spacingXxxl: Dp = 32.dp, val inlineSpacing: Dp = 4.dp, val itemSpacing: Dp = 8.dp, val contentSpacing: Dp = 16.dp, val sectionSpacing: Dp = 32.dp, val buttonMinHeight: Dp = 52.dp, val cardMinHeight: Dp = 77.dp, val iconButtonMinSize: Dp = 48.dp, val roundedIconButtonMinWidth: Dp = 80.dp, val fabSize: Dp = 56.dp, val fabSmallSize: Dp = 40.dp, val fabLargeSize: Dp = 96.dp, val screenPadding: Dp = 20.dp, val contentPadding: Dp = 16.dp, val controlPadding: Dp = 16.dp, val controlVerticalPadding: Dp = 12.dp, val pieChartSize: Dp = 160.dp, val barChartHeight: Dp = 180.dp, val lineChartHeight: Dp = 200.dp)

Spatial, outline, and elevation design tokens for the Stylish UI design system.

The default values produce the standard Stylish look (Clear, Simple, Modern). Override globally via the com.segnities007.stylishui.theme.StylishTheme composable's dimensions parameter, or per-component through individual component parameters that accept Dp values.

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

See also

Constructors

Link copied to clipboard
constructor(connectedSpacing: Dp = 3.dp, outlineWidth: Dp = 0.4.dp, interactiveElevation: Dp = 1.dp, focusedElevation: Dp = 1.dp, hoveredElevation: Dp = 2.dp, pressedElevation: Dp = 0.dp, disabledElevation: Dp = 0.dp, floatingElevation: Dp = 2.dp, connectedCornerRadius: Dp = 12.dp, joinedCornerRadius: Dp = 2.dp, floatingCornerRadius: Dp = 28.dp, spacingNone: Dp = 0.dp, spacingXxs: Dp = 2.dp, spacingXs: Dp = 4.dp, spacingSm: Dp = 8.dp, spacingMd: Dp = 12.dp, spacingLg: Dp = 16.dp, spacingXl: Dp = 20.dp, spacingXxl: Dp = 24.dp, spacingXxxl: Dp = 32.dp, inlineSpacing: Dp = 4.dp, itemSpacing: Dp = 8.dp, contentSpacing: Dp = 16.dp, sectionSpacing: Dp = 32.dp, buttonMinHeight: Dp = 52.dp, cardMinHeight: Dp = 77.dp, iconButtonMinSize: Dp = 48.dp, roundedIconButtonMinWidth: Dp = 80.dp, fabSize: Dp = 56.dp, fabSmallSize: Dp = 40.dp, fabLargeSize: Dp = 96.dp, screenPadding: Dp = 20.dp, contentPadding: Dp = 16.dp, controlPadding: Dp = 16.dp, controlVerticalPadding: Dp = 12.dp, pieChartSize: Dp = 160.dp, barChartHeight: Dp = 180.dp, lineChartHeight: Dp = 200.dp)

Properties

Link copied to clipboard

The minimum height of primary buttons (including the connected button family). Default 52 dp matches the standard 44–56 dp touch-target guidance.

Link copied to clipboard

The minimum height of cards and connected card items. Default 77 dp gives the compact card silhouette used across the design system.

Link copied to clipboard

The outer corner radius for Connected UI items — the corners that face away from neighboring items (e.g. the top corners of the first item in a vertical list). Default 12 dp gives a soft, modern rounded-rectangle silhouette.

Link copied to clipboard

The gap between adjacent items in Connected UI layouts (connected cards, connected list items, connected chips, connected buttons). A small value (default 3 dp) keeps items visually grouped while remaining individually distinguishable.

Link copied to clipboard

The standard padding inside content areas (cards, dialogs, sheets). Default 16 dp.

Link copied to clipboard

The medium spacing step (16 dp): gap between distinct content blocks within a section. Part of the Rhythm spacing scale (S6).

Link copied to clipboard

The standard horizontal padding inside controls (buttons, fields, cards). Default 16 dp.

Link copied to clipboard

The standard vertical padding inside controls. Default 12 dp.

Link copied to clipboard

The elevation applied to disabled interactive elements. Default 0 dp keeps disabled elements visually flat, matching the Material 3 disabled treatment.

Link copied to clipboard

The size of the large floating action button. Default 96 dp.

Link copied to clipboard
val fabSize: Dp

The size of the regular floating action button. Default 56 dp.

Link copied to clipboard

The size of the small floating action button. Default 40 dp.

Link copied to clipboard

The corner radius for floating elements such as FABs and pill-shaped headers. Default 28 dp produces the fully-rounded capsule look typical of Material 3 extended FABs.

Link copied to clipboard

The elevation for floating elements such as FABs, sticky headers, and bottom bars. Default 2 dp keeps them clearly above scrollable content.

Link copied to clipboard

The elevation applied while an interactive element has keyboard or focus-ring focus. Default 1 dp matches interactiveElevation because the focus ring, not a higher shadow, is the primary focus cue.

Link copied to clipboard

The elevation applied while a pointer hovers over an interactive element (pointer devices). Default 2 dp lifts the element slightly to acknowledge the hovered state without competing with floating surfaces.

Link copied to clipboard

The minimum touch-target size for icon buttons. Default 48 dp matches Material touch-target guidance.

Link copied to clipboard

The smallest spacing step (4 dp): gap between tightly related inline elements such as an icon and its label. Part of the Rhythm spacing scale (S6).

Link copied to clipboard

The tonal elevation applied to tappable cards and list items to signal interactivity. Default 1 dp produces a subtle lift without a heavy shadow.

Link copied to clipboard

The small spacing step (8 dp): gap between items within a group or list. Part of the Rhythm spacing scale (S6).

Link copied to clipboard

The inner (junction) corner radius where two Connected UI items meet. Default 2 dp creates a tight notch that visually links adjacent items while preserving a slight separation cue.

Link copied to clipboard

The stroke width of the hairline border drawn around Connected UI items via com.segnities007.stylishui.foundation.connectedOutline. The default 0.4 dp renders as a sub-pixel hairline that rounds to approximately 1 physical pixel on many device densities.

Link copied to clipboard
Link copied to clipboard

The elevation applied while an interactive element is pressed. Default 0 dp presses the element flat, reinforcing the pressed feedback.

Link copied to clipboard

The minimum width of rounded (label-carrying) icon buttons. Default 80 dp.

Link copied to clipboard

The standard horizontal screen-edge padding for page-level layouts. Default 20 dp.

Link copied to clipboard

The large spacing step (32 dp): gap between top-level sections of a page. Part of the Rhythm spacing scale (S6).

Link copied to clipboard

Large spacing (16 dp): gap between distinct content blocks within a section. Part of the semantic spacing scale.

Link copied to clipboard

Medium-small spacing (12 dp): gap between related but distinct elements, e.g. a label and its associated control. Part of the semantic spacing scale.

Link copied to clipboard

Zero spacing — no gap. Use when components should touch with no separation. Part of the semantic spacing scale.

Link copied to clipboard

Small spacing (8 dp): gap between items within a group or list. Part of the semantic spacing scale.

Link copied to clipboard

Extra-large spacing (20 dp): standard screen-edge padding and gap between major content regions. Part of the semantic spacing scale.

Link copied to clipboard

Extra-small spacing (4 dp): gap between tightly related inline elements such as an icon and its label. Part of the semantic spacing scale.

Link copied to clipboard

Extra-extra-large spacing (24 dp): gap between loosely related groups. Part of the semantic spacing scale.

Link copied to clipboard

Extra-extra-small spacing (2 dp): the finest visible gap, e.g. between a badge and its anchor. Part of the semantic spacing scale.

Link copied to clipboard

Extra-extra-extra-large spacing (32 dp): gap between top-level sections of a page. Part of the semantic spacing scale.