OudsSpaces

data class OudsSpaces(val fixed: OudsSpaces.Fixed, val scaled: OudsSpaces.Scaled, val paddingInline: OudsSpaces.PaddingInline, val paddingBlock: OudsSpaces.PaddingBlock, val inset: OudsSpaces.Inset, val columnGap: OudsSpaces.ColumnGap, val rowGap: OudsSpaces.RowGap)

Holds the spacing values defined in the OUDS theme.

Spacing tokens are used to define margins, paddings, and gaps between elements, ensuring a consistent rhythm and layout structure across the application.

Constructors

Link copied to clipboard
constructor(fixed: OudsSpaces.Fixed, scaled: OudsSpaces.Scaled, paddingInline: OudsSpaces.PaddingInline, paddingBlock: OudsSpaces.PaddingBlock, inset: OudsSpaces.Inset, columnGap: OudsSpaces.ColumnGap, rowGap: OudsSpaces.RowGap)

Types

Link copied to clipboard
data class ColumnGap(val none: Dp, val threeExtraSmall: Dp, val twoExtraSmall: Dp, val extraSmall: Dp, val small: Dp, val medium: Dp, val large: Dp, val extraLarge: Dp, val twoExtraLarge: Dp)

Spacing values used for gaps between columns.

Link copied to clipboard
data class Fixed(val none: Dp, val threeExtraSmall: Dp, val twoExtraSmall: Dp, val extraSmall: Dp, val small: Dp, val medium: Dp, val large: Dp, val extraLarge: Dp, val twoExtraLarge: Dp, val threeExtraLarge: Dp, val fourExtraLarge: Dp, val fiveExtraLarge: Dp)

Fixed spacing values that remain constant regardless of the screen size context.

Link copied to clipboard
data class Inset(val none: Dp, val fourExtraSmall: Dp, val threeExtraSmall: Dp, val twoExtraSmall: Dp, val extraSmall: Dp, val small: Dp, val medium: Dp, val large: Dp, val extraLarge: Dp, val twoExtraLarge: Dp, val threeExtraLarge: Dp)

Spacing values used for inset positioning.

Link copied to clipboard
data class PaddingBlock(val none: Dp, val fourExtraSmall: Dp, val threeExtraSmall: Dp, val twoExtraSmall: Dp, val extraSmall: Dp, val small: Dp, val medium: Dp, val large: Dp, val extraLarge: Dp, val twoExtraLarge: Dp, val threeExtraLarge: Dp, val fourExtraLarge: Dp)

Spacing values specifically designed for block padding (Top/Bottom).

Link copied to clipboard
data class PaddingInline(val none: Dp, val fourExtraSmall: Dp, val threeExtraSmall: Dp, val twoExtraSmall: Dp, val extraSmall: Dp, val small: Dp, val medium: Dp, val large: Dp, val extraLarge: Dp, val twoExtraLarge: Dp, val threeExtraLarge: Dp, val fourExtraLarge: Dp)

Spacing values specifically designed for inline padding (Start/End).

Link copied to clipboard
data class RowGap(val none: Dp, val threeExtraSmall: Dp, val twoExtraSmall: Dp, val extraSmall: Dp, val small: Dp, val medium: Dp, val large: Dp)

Spacing values used for gaps between rows.

Link copied to clipboard
data class Scaled(val none: Dp, val threeExtraSmall: Dp, val twoExtraSmall: Dp, val extraSmall: Dp, val small: Dp, val medium: Dp, val large: Dp, val extraLarge: Dp, val twoExtraLarge: Dp, val threeExtraLarge: Dp)

Scaled spacing values that adapt based on the window size class (e.g. larger on tablets).

Properties

Link copied to clipboard

Spacing used for gaps between columns in a grid or layout.

Link copied to clipboard

Fixed spacing values that do not change based on screen size.

Link copied to clipboard

Spacing used for inset distances (e.g., distance from the edge of a container).

Link copied to clipboard

Spacing used for vertical padding (top/bottom).

Link copied to clipboard

Spacing used for horizontal padding (start/end).

Link copied to clipboard

Spacing used for gaps between rows in a grid or layout.

Link copied to clipboard

Spacing values that scale adaptively based on the screen size (e.g., Mobile vs Tablet).