Skip to content

Commit

Permalink
[CHORE/#6] 코드 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyobeen-Park committed Jul 5, 2024
1 parent 3b807b4 commit e020353
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ package com.terning.core.designsystem.theme

import androidx.compose.ui.graphics.Color

val Purple80 = Color(0xFFD0BCFF)
val PurpleGrey80 = Color(0xFFCCC2DC)
val Pink80 = Color(0xFFEFB8C8)

val Purple40 = Color(0xFF6650a4)
val PurpleGrey40 = Color(0xFF625b71)
val Pink40 = Color(0xFF7D5260)

// Grey Scale
val White = Color(0xFFFFFFFF)
val Grey100 = Color(0xFFF5F5F5)
Expand Down
21 changes: 1 addition & 20 deletions core/src/main/java/com/terning/core/designsystem/theme/Theme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,14 @@ package com.terning.core.designsystem.theme

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.runtime.CompositionLocalProvider
import androidx.compose.runtime.remember
import androidx.compose.runtime.staticCompositionLocalOf

private val DarkColorScheme = darkColorScheme(
primary = Purple80,
secondary = PurpleGrey80,
tertiary = Pink80
)

private val LightColorScheme = lightColorScheme(
primary = Purple40,
secondary = PurpleGrey40,
tertiary = Pink40

/* Other default colors to override
background = Color(0xFFFFFBFE),
surface = Color(0xFFFFFBFE),
onPrimary = Color.White,
onSecondary = Color.White,
onTertiary = Color.White,
onBackground = Color(0xFF1C1B1F),
onSurface = Color(0xFF1C1B1F),
*/
primary = TerningMain,
)

private val LocalTerningTypography = staticCompositionLocalOf<TerningTypography> {
Expand Down
28 changes: 0 additions & 28 deletions core/src/main/java/com/terning/core/designsystem/theme/Type.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.terning.core.designsystem.theme

import androidx.compose.material3.Typography
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue
Expand All @@ -19,33 +18,6 @@ val PretendardMedium = FontFamily(Font(R.font.pretendard_medium))
val PretendardRegular = FontFamily(Font(R.font.pretendard_regular))
val PretendardLight = FontFamily(Font(R.font.pretendard_light))

// Set of Material typography styles to start with
val Typography = Typography(
bodyLarge = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontSize = 16.sp,
lineHeight = 24.sp,
letterSpacing = 0.5.sp
)
/* Other default text styles to override
titleLarge = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontSize = 22.sp,
lineHeight = 28.sp,
letterSpacing = 0.sp
),
labelSmall = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Medium,
fontSize = 11.sp,
lineHeight = 16.sp,
letterSpacing = 0.5.sp
)
*/
)

@Stable
class TerningTypography internal constructor(
heading1: TextStyle,
Expand Down

0 comments on commit e020353

Please sign in to comment.