DesignLibrary
The central design token library providing color, spacing, border width, and border radius tokens.
Access through the DesignLibrary.shared singleton.
let designLibrary = DesignLibrary.shared| Property | Type | Required | Default | Description |
|---|---|---|---|---|
color | ColorTokens | - | - | Color tokens for backgrounds, text, and brand colors |
space | SpaceToken | - | - | Spacing tokens for margins and padding |
borderSize | BorderWidthToken | - | - | Border width tokens |
borderRadius | BorderRadiusToken | - | - | Border radius tokens for corner rounding |
import RealtimeKitUI
let designLibrary = DesignLibrary.shared
// Access color tokenslet backgroundColor = designLibrary.color.backgroundlet textColor = designLibrary.color.text
// Access spacing tokenslet padding = designLibrary.space.space4
// Access border tokenslet borderWidth = designLibrary.borderSize.thinlet cornerRadius = designLibrary.borderRadius.rounded