Skip to content

Commit

Permalink
Add DarkGray color
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolegeorgieva committed Nov 28, 2024
1 parent fe88fe5 commit 3bcb0b1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
5 changes: 3 additions & 2 deletions composeApp/src/commonMain/kotlin/ui/theme/Colors.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ val Orange = Color(0xFFF59331)
val OrangeVariant = Color(0xFFE87A0B)
val Red = Color(0xFFF53D3D)
val Green = Color(0xFF12B880)
val Light = Color(0xFFEBEBF0)
val LightGray = Color(0xFFCBCBD6)
val Gray = Color(0xFF74747A)
val Dark = Color(0xFF1C1C1F)
val Light = Color(0xFFEBEBF0)
val DarkGray = Color(0xFF303033)
val Dark = Color(0xFF1C1C1F)
30 changes: 15 additions & 15 deletions composeApp/src/commonMain/kotlin/ui/theme/Theme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ private val LightColorScheme = lightColors(
onError = Color.White
)

private val DarkColorScheme = darkColors(
primary = Blue,
primaryVariant = BlueVariant,
secondary = Orange,
secondaryVariant = OrangeVariant,
background = Color.Black,
surface = Color.Black,
error = Red,
onPrimary = Color.White,
onSecondary = Color.White,
onBackground = Color.White,
onSurface = Color.White,
onError = Color.White
)

val MaterialTheme.colorsExt: ExtendedColors
@Composable
@ReadOnlyComposable
Expand All @@ -51,21 +66,6 @@ data class ExtendedColors(
val onSuccess: Color
)

private val DarkColorScheme = darkColors(
primary = Blue,
primaryVariant = BlueVariant,
secondary = Orange,
secondaryVariant = OrangeVariant,
background = Color.Black,
surface = Color.Black,
error = Red,
onPrimary = Color.White,
onSecondary = Color.White,
onBackground = Color.White,
onSurface = Color.White,
onError = Color.White
)

@Composable
fun LearnTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
Expand Down

0 comments on commit 3bcb0b1

Please sign in to comment.