StylishAnimationTokens

data class StylishAnimationTokens(val durationShort: Int = 180, val durationMedium: Int = 300, val durationLong: Int = 500, val durationEmphasized: Int = 350, val defaultEasing: Easing = FastOutSlowInEasing, val emphasizedEasing: Easing = CubicBezierEasing(0.2f, 0f, 0f, 1f), val gentleEasing: Easing = LinearOutSlowInEasing)

Motion tokens for the Stylish UI design system.

The default values produce the standard Stylish motion language: short, decisive state-change animations with a single defaultEasing used across components. Override globally via the com.segnities007.stylishui.theme.StylishTheme composable's animation parameter, or per-component through individual component parameters where available.

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

See also

Constructors

Link copied to clipboard
constructor(durationShort: Int = 180, durationMedium: Int = 300, durationLong: Int = 500, durationEmphasized: Int = 350, defaultEasing: Easing = FastOutSlowInEasing, emphasizedEasing: Easing = CubicBezierEasing(0.2f, 0f, 0f, 1f), gentleEasing: Easing = LinearOutSlowInEasing)

Properties

Link copied to clipboard

The easing curve applied to all standard Stylish animations. Default FastOutSlowInEasing — fast start, gentle settle.

Link copied to clipboard

Duration (ms) for emphasized motion: elements that need extra attention (e.g. primary action entrances, state transitions that must be noticeable). Default 350 ms.

Link copied to clipboard

Duration (ms) for page-level motion: sheets, large surfaces. Default 500 ms.

Link copied to clipboard

Duration (ms) for element-level transitions: appearance, expansion, dialog entrances. Default 300 ms.

Link copied to clipboard

Duration (ms) for micro-interactions: color state changes, icon swaps, selection highlights. Default 180 ms.

Link copied to clipboard

The easing curve for emphasized motion that should feel more expressive. Default EmphasizedEasing — a strong accelerating start that decelerates smoothly into place.

Link copied to clipboard

The easing curve for gentle, slow-feeling motion such as fade-in and decorative ambient animation. Default LinearOutSlowInEasing — slow start that settles into place.