Skip to content

ThemeData

@Immutable



data class ThemeData(
    val mode: String, 
    val type: String, 
    val darkTextColor: KColor, 
    val lightTextColor: KColor, 
    val namespace: String = Archie.MOD_ID
)

Immutable data holder describing the active theme context for composables.

Provided through LocalTheme to all composables under a Theme wrapper.

Constructors

ThemeData

constructor(
    mode: String, 
    type: String, 
    darkTextColor: KColor, 
    lightTextColor: KColor, 
    namespace: String = Archie.MOD_ID
)

Properties

darkTextColor

lightTextColor

mode

val mode: String

namespace

resolvedMode

type

val type: String

Functions

getComposableTheme

Resolves the ComposableTheme for the given composable name using the active namespace, type, and global mode.

Return

The ComposableTheme definition loaded from resources.

Parameters

  • composable: The composable theme name (e.g. "button", "slot").