Package-level declarations

Types

Link copied to clipboard

Android-specific contract for design system image assets. Image keys generated or defined on Android must implement this interface to resolve to theme attributes.

Link copied to clipboard

Android-specific contract for design system string assets. String keys generated or defined on Android must implement this interface to resolve to theme attributes.

Link copied to clipboard

Defines the style family of a corner.

Link copied to clipboard
interface DsColors

Core design system color interface containing the standard set of Material 3 color properties. Implementing enums or classes provide ARGB hex values as Longs (e.g. 0xFF6200EE).

Link copied to clipboard
interface DsImages

Interface for application graphics assets/images. Client enum keys should implement this interface.

Link copied to clipboard
interface DsShapes

Core design system shapes interface containing the standard Material 3 corner scale.

Link copied to clipboard
interface DsStrings

Interface for application localized string keys. Client enum keys should implement this interface.

Link copied to clipboard

Defines the application's supported theme mode choices.

Link copied to clipboard
interface DsTypography

Core design system typography interface containing the standard Material 3 text style tokens.

Link copied to clipboard
data class FontSpec(val fontSize: Double, val lineHeight: Double)

A platform-agnostic text style/font token declaring target font size and line height. These are compiled to standard Android text appearances and Apple system fonts.

Link copied to clipboard
interface IosDsImages : DsImages

iOS-specific contract for design system image assets. Image keys generated or defined on iOS must implement this interface to resolve to bundle asset names.

Link copied to clipboard

iOS-specific contract for design system string assets. String keys generated or defined on iOS must implement this interface to resolve to bundle localization keys.

Link copied to clipboard
data class ShapeAppearance(val family: CornerFamily, val topLeft: Double, val topRight: Double, val bottomRight: Double, val bottomLeft: Double)

A platform-agnostic shape appearance specification declaring corner family and corner sizes. These are compiled to standard Android shapes and Apple corner radii.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Resolves and loads the localized string value for this DsStrings directly on iOS.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val DsImages.uiImage: UIImage

Resolves and loads this DsImages key to a native iOS UIImage instance from our bundle.

Functions

Link copied to clipboard
@Composable
actual fun DsImage(image: DsImages, contentDescription: String?, modifier: Modifier, tint: Color?, backgroundColor: Color?)

Composable function to display a synchronous vector/raster image across Android and iOS.

@Composable
expect fun DsImage(image: DsImages, contentDescription: String?, modifier: Modifier = Modifier, tint: Color? = null, backgroundColor: Color? = null)

Composable function to display a synchronous vector/raster image across Android and iOS.

actual fun DsImage(image: DsImages, contentDescription: String?, modifier: ERROR CLASS: Symbol not found for Modifier, tint: ERROR CLASS: Symbol not found for androidx.compose.ui.graphics.Color??, backgroundColor: ERROR CLASS: Symbol not found for androidx.compose.ui.graphics.Color??)
Link copied to clipboard
fun String.formatWithArgs(vararg args: Any): String

Extension function to format a Swift/Kotlin String using Cocoa's NSString engine.

Link copied to clipboard
fun NSBundle.getDesignSystemBundle(): NSBundle

Locates and returns the design system resource bundle (design-system.bundle) within this bundle, falling back to the receiver bundle if not found.

Link copied to clipboard
fun Context.getDrawableIdFromAttr(attr: Int): Int

Resolves a theme-dependent drawable resource ID from the specified theme attribute.

Link copied to clipboard
fun Context.getStringFromAttr(attr: Int): String

Resolves a dynamic theme-dependent string resource ID from the specified theme attribute.

fun Context.getStringFromAttr(attr: Int, vararg formatArgs: Any): String

Resolves a dynamic theme-dependent string resource ID from the specified theme attribute and formats it with the provided arguments.

Link copied to clipboard

Returns true if the host operating system platform is currently configured in dark theme.

Returns true if the host operating system platform is currently configured in dark theme.

Returns true if the host operating system platform is currently configured in dark theme.

Link copied to clipboard
fun NSBundle.loadImage(imageName: String, tintColor: UIColor?): UIImage

Loads an image from this bundle by its name, configured with template or original rendering modes based on whether a tint color is specified.

Link copied to clipboard
fun NSBundle.loadTemplateImage(imageName: String): UIImage

Loads a template image from this bundle by its name, configured with template rendering mode to allow tinting filters.

Link copied to clipboard
fun NSBundle.resolveImageFromBundle(imageName: String): UIImage?

Resolves a native iOS UIImage by its name from this bundle, falling back to the main application bundle.

Link copied to clipboard
@Composable
actual fun stringResource(dsStrings: DsStrings): String

Composable function to load a localized string synchronously.

@Composable
actual fun stringResource(dsStrings: DsStrings, vararg formatArgs: Any): String

Composable function to load a localized string synchronously and format it with arguments.

@Composable
expect fun stringResource(dsStrings: DsStrings): String

Composable function to load a localized string synchronously.

@Composable
expect fun stringResource(dsStrings: DsStrings, vararg formatArgs: Any): String

Composable function to load a localized string synchronously and format it with arguments.

actual fun stringResource(dsStrings: DsStrings): String

Composable function to load a localized string synchronously.

Loads a localized string synchronously from the design system bundle using the specified key.

actual fun stringResource(dsStrings: DsStrings, vararg formatArgs: Any): String

Composable function to load a localized string synchronously and format it with arguments.

fun stringResource(key: String, vararg formatArgs: Any): String

Loads a localized string synchronously from the design system bundle using the specified key and formats it with the provided arguments.

Link copied to clipboard
fun Double.toCGFloat(): CGFloat

Converts this Double value to a platform-native CGFloat.

Link copied to clipboard
@Composable
actual fun DsImages.toCoilModel(): Any

Resolves the DsImages asset to a platform-specific model suitable for third-party image loading libraries (such as Coil, Kamel, etc.) without introducing direct library dependencies into the design system.

@Composable
expect fun DsImages.toCoilModel(): Any

Resolves the DsImages asset to a platform-specific model suitable for third-party image loading libraries (such as Coil, Kamel, etc.) without introducing direct library dependencies into the design system.

actual fun DsImages.toCoilModel(): Any

Resolves the DsImages asset to a platform-specific model suitable for third-party image loading libraries (such as Coil, Kamel, etc.) without introducing direct library dependencies into the design system.

Link copied to clipboard
fun Long.toColor(): Color

Converts an ARGB hex Long (e.g. 0xFFFFFFFF) directly to a Compose Color.

Link copied to clipboard
fun DsColors.toColorScheme(isDark: Boolean): ColorScheme

Maps this DsColors definition to a Jetpack Compose Material 3 ColorScheme instance.

Link copied to clipboard
fun ShapeAppearance.toComposeShape(): CornerBasedShape

Converts this ShapeAppearance into a Compose CornerBasedShape.

Link copied to clipboard
fun DsShapes.toShapes(): Shapes

Maps this DsShapes definition to a Jetpack Compose Material 3 Shapes instance.

Link copied to clipboard
fun FontSpec.toTextStyle(fontWeight: FontWeight = FontWeight.Normal): TextStyle

Converts this FontSpec into a Compose TextStyle.

Link copied to clipboard
fun DsTypography.toTypography(): Typography

Maps this DsTypography definition to a Jetpack Compose Material 3 androidx.compose.material3.Typography instance.

Link copied to clipboard
fun Long.toUIColor(): UIColor

Converts an ARGB hex Long (e.g. 0xFF6200EE) to a native iOS UIColor.

Link copied to clipboard
fun ERROR CLASS: Symbol not found for androidx.compose.ui.graphics.Color.toUiColor(): UIColor

Converts a Compose Multiplatform androidx.compose.ui.graphics.Color to a native iOS UIColor.

Link copied to clipboard
fun FontSpec.toUIFont(isBold: Boolean = false): UIFont

Converts this platform-agnostic FontSpec into a native iOS UIFont.