OudsOpacities

data class OudsOpacities(val disabled: Float, val invisible: Float, val weakest: Float, val weaker: Float, val weak: Float, val medium: Float, val strong: Float, val opaque: Float)

Holds the opacity values defined in the OUDS theme.

Opacity controls the transparency of elements, ranging from fully invisible (0.0) to fully opaque (1.0). It can help distinguish foreground elements from background elements, making content easier to read and important actions more noticeable.

Constructors

Link copied to clipboard
constructor(disabled: Float, invisible: Float, weakest: Float, weaker: Float, weak: Float, medium: Float, strong: Float, opaque: Float)

Properties

Link copied to clipboard

The opacity applied to disabled elements to indicate they are not interactive.

Link copied to clipboard

Fully transparent (0.0). The element is not visible.

Link copied to clipboard

A medium opacity level.

Link copied to clipboard

Fully opaque (1.0). The element is solid and blocks content behind it.

Link copied to clipboard

A high opacity level, almost opaque.

Link copied to clipboard
val weak: Float

A moderate opacity level.

Link copied to clipboard

A low opacity level.

Link copied to clipboard

A very low opacity level, barely visible.