package pl.firmatpp.kierowca.ui.theme

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

object TppColors {
    val Forest = Color(0xFF154212)
    val ContainerGreen = Color(0xFF2D5A27)
    val LogoLeaf = Color(0xFF609830)
    val Navy = Color(0xFF1B365D)
    val Surface = Color(0xFFF7FAF8)
    val Panel = Color(0xFFEBEFED)
    val Ink = Color(0xFF181C1B)
    val Muted = Color(0xFF42493E)
    val Outline = Color(0xFFC2C9BB)
    val Error = Color(0xFFBA1A1A)
}

private val TppScheme = lightColorScheme(
    primary = TppColors.Forest,
    onPrimary = Color.White,
    primaryContainer = TppColors.ContainerGreen,
    secondary = TppColors.Navy,
    background = TppColors.Surface,
    surface = Color.White,
    surfaceVariant = TppColors.Panel,
    onBackground = TppColors.Ink,
    onSurface = TppColors.Ink,
    onSurfaceVariant = TppColors.Muted,
    outline = TppColors.Outline,
    error = TppColors.Error,
)

@Composable
fun TppKierowcaTheme(content: @Composable () -> Unit) {
    MaterialTheme(
        colorScheme = TppScheme,
        content = content,
    )
}
