package com.flagship.abox.manager.designsystem

import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color

private val LightColorScheme = lightColorScheme(
    primary = Color(0xFF006780),
    onPrimary = Color.White,
    primaryContainer = Color(0xFFB8EAFF),
    onPrimaryContainer = Color(0xFF001F29),
    secondary = Color(0xFF4D616A),
    surface = Color(0xFFF8FAFC),
    background = Color(0xFFF8FAFC),
)

private val DarkColorScheme = darkColorScheme(
    primary = Color(0xFF5DD5F8),
    onPrimary = Color(0xFF003544),
    primaryContainer = Color(0xFF004D61),
    onPrimaryContainer = Color(0xFFB8EAFF),
    secondary = Color(0xFFB4CBD4),
    surface = Color(0xFF101416),
    background = Color(0xFF101416),
)

@Composable
fun ABoxTheme(
    darkTheme: Boolean = isSystemInDarkTheme(),
    content: @Composable () -> Unit,
) {
    MaterialTheme(
        colorScheme = if (darkTheme) DarkColorScheme else LightColorScheme,
        typography = ABoxTypography,
        shapes = ABoxShapes,
        content = content,
    )
}
