package ru.forbion.f7cloud.core.designsystem

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

private val F7LightScheme = lightColorScheme(
    primary = F7Colors.Primary,
    onPrimary = F7Colors.TextOnPrimary,
    primaryContainer = F7Colors.PrimaryLight,
    onPrimaryContainer = F7Colors.TextPrimary,
    secondary = F7Colors.PrimaryDark,
    onSecondary = F7Colors.TextOnPrimary,
    background = F7Colors.Background,
    onBackground = F7Colors.TextPrimary,
    surface = F7Colors.Surface,
    onSurface = F7Colors.TextPrimary,
    surfaceVariant = F7Colors.SurfaceMuted,
    onSurfaceVariant = F7Colors.TextSecondary,
    outline = F7Colors.Border,
    error = F7Colors.Error,
    onError = Color.White,
    errorContainer = F7Colors.ErrorBg,
    onErrorContainer = F7Colors.TextPrimary,
)

@Composable
fun F7Theme(
    content: @Composable () -> Unit,
) {
    MaterialTheme(
        colorScheme = F7LightScheme,
        typography = F7Typography,
        content = content,
    )
}
