KPDesign
A central object for accessing design system properties such as colors and typography in the Komposto design system.
The KPDesign
object provides a standardized interface to retrieve theme-specific color and typography configurations, ensuring consistency across the application's UI components.
Properties
Colors
Access the current color palette for the Komposto design system. The colors are derived from the LocalKPDesignTheme and are dynamically updated based on the current theme.
Example usage:
val backgroundColor = KPDesign.colors.colorPrimary
Return
KPDesignColors representing the active color scheme.
Typography
Access the current typography settings for the Komposto design system. The typography is derived from the LocalKPDesignTheme and is dynamically updated based on the current theme.
Example usage:
val bodyTextStyle = KPDesign.typography.body1
KPDesignTypography representing the active typography styles.
See also
Properties
Provides access to the color palette defined in the current LocalKPDesignTheme.
Provides access to the typography settings defined in the current LocalKPDesignTheme.