package com.harshmallow.pilottoolkit.ui.theme

import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.compositionLocalOf

private val LocalToolkitColors = compositionLocalOf { LightColors }

object ToolkitTheme {
    val colors: ToolkitColors
        @Composable get() = LocalToolkitColors.current
}

@Composable
fun PilotToolkitTheme(darkTheme: Boolean = false, content: @Composable () -> Unit) {
    val colors = if (darkTheme) DarkColors else LightColors
    CompositionLocalProvider(LocalToolkitColors provides colors) {
        MaterialTheme(content = content)
    }
}
