Package-level declarations

This package contains the logic for the OudsTheme composable, including the OudsThemeTweak mechanism and the implementation of the theme contract that injects visual data into the application.

Types

Link copied to clipboard
data class OudsBorders

Holds all the border-related properties defined in the OUDS theme.

Link copied to clipboard

Available border styles in OUDS.

Link copied to clipboard
data class OudsColorScheme

Holds all the colour-related properties defined in the OUDS theme.

Link copied to clipboard
data class OudsComponents

Holds component-specific tokens that are exposed for public use.

Link copied to clipboard
data class OudsEffects

Holds the visual effects defined in the OUDS theme.

Link copied to clipboard
data class OudsElevations

Holds the elevation values defined in the OUDS theme.

Link copied to clipboard
data class OudsGrids

Holds the grid-related properties defined in the OUDS theme.

Link copied to clipboard
data class OudsOpacities

Holds the opacity values defined in the OUDS theme.

Link copied to clipboard
data class OudsSizes

Holds the size values defined in the OUDS theme.

Link copied to clipboard
data class OudsSpaces

Holds the spacing values defined in the OUDS theme.

Link copied to clipboard
object OudsTheme

Object that stores tokens values for the current theme.

Link copied to clipboard
data class OudsTypography

Holds the typography styles defined in the OUDS theme.

Properties

Link copied to clipboard

Returns this if it is not equal to Dp.Hairline, otherwise returns null.

Functions

Link copied to clipboard
fun Modifier.dashedBorder(width: Dp, color: Color, shape: Shape = RectangleShape, intervals: List<Dp> = listOf(width * 2, width * 2), phase: Dp = 0.dp): 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

Determines if the OUDS theme is currently in dark mode.

Link copied to clipboard
fun OudsTheme(theme: OudsThemeContract, darkThemeEnabled: Boolean = isSystemInDarkTheme(), content: @Composable () -> Unit)

Applies the OUDS theme to the composable hierarchy.

Link copied to clipboard

Modifies the current OUDS theme configuration and applies it to the given content.