Theme.kt
43 lines · 1.1 KB
Changed in: 0.5.0
| 1 | package dev.stave.ui.theme |
| 2 | |
| 3 | import androidx.compose.runtime.Composable |
| 4 | import androidx.tv.material3.MaterialTheme |
| 5 | import androidx.tv.material3.darkColorScheme |
| 6 | |
| 7 | private val EarhornColorScheme = darkColorScheme( |
| 8 | primary = AccentAmber, |
| 9 | onPrimary = OnAmber, |
| 10 | primaryContainer = AccentAmberSoft, |
| 11 | onPrimaryContainer = OnPrimary, |
| 12 | |
| 13 | secondary = AccentSage, |
| 14 | onSecondary = SurfaceBase, |
| 15 | secondaryContainer = SurfaceHover, |
| 16 | onSecondaryContainer = OnPrimary, |
| 17 | |
| 18 | tertiary = AccentRose, |
| 19 | onTertiary = SurfaceBase, |
| 20 | tertiaryContainer = AccentRoseSoft, |
| 21 | onTertiaryContainer = OnPrimary, |
| 22 | |
| 23 | background = SurfaceBase, |
| 24 | onBackground = OnPrimary, |
| 25 | |
| 26 | surface = SurfaceBase, |
| 27 | onSurface = OnPrimary, |
| 28 | surfaceVariant = SurfaceRaised, |
| 29 | onSurfaceVariant = OnMuted, |
| 30 | |
| 31 | border = SurfaceDivider, |
| 32 | borderVariant = SurfaceDivider |
| 33 | ) |
| 34 | |
| 35 | @Composable |
| 36 | fun EarhornTheme(useFraunces: Boolean = true, content: @Composable () -> Unit) { |
| 37 | MaterialTheme( |
| 38 | colorScheme = EarhornColorScheme, |
| 39 | typography = staveTypography(useFraunces = useFraunces), |
| 40 | shapes = EarhornShapes, |
| 41 | content = content |
| 42 | ) |
| 43 | } |


