Package-level declarations

Contains the OudsThemeContract interface that can be implemented to create a new theme by overriding semantic and components tokens. Other files contains helpers to manage themes.

Types

Link copied to clipboard
data class OudsAdaptiveTokenValue<T>(val extraCompact: T, val compact: T, val medium: T)

Allows to manage adaptive display. It contains multiple values for a token according to the display type.

Link copied to clipboard

Adaptive windows types managed in OUDS.

Link copied to clipboard

Available border styles in OUDS.

Link copied to clipboard

An interface to create an OUDS supported theme.

Functions

Link copied to clipboard

Returns the current window width in dp.

Link copied to clipboard
fun Modifier.dashedBorder(width: Dp, color: Color, shape: Shape = RectangleShape): Modifier

Modify element to add a dashed border styled with appearance specified with a width, a color and a shape, and clip it.

Link copied to clipboard
fun Modifier.dottedBorder(width: Dp, color: Color, shape: Shape = RectangleShape): Modifier

Modify element to add a dotted border styled with appearance specified with a width, a color and a shape, and clip it.

Link copied to clipboard
fun Modifier.outerBorder(width: Dp, color: Color, shape: Shape = RectangleShape, insetWidth: Dp = Dp.Unspecified, insetColor: Color = Color.Unspecified): Modifier

Modify element to add an outer border (drawn outside the element) with appearance specified with a width, a color and a shape.