Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Design System] Create color foundation #13

Merged
merged 3 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,42 @@ package com.b1nd.dodam.designsystem.theme

import androidx.compose.ui.graphics.Color

val Purple80 = Color(0xFFD0BCFF)
val PurpleGrey80 = Color(0xFFCCC2DC)
val Pink80 = Color(0xFFEFB8C8)
// Blue
val Blue900 = Color(0xFF001A30)
val Blue800 = Color(0xFF003560)
val Blue700 = Color(0xFF004F90)
val Blue600 = Color(0xFF0069C0)
val Blue500 = Color(0xFF0083F0)
val Blue400 = Color(0xFF339CF3)
val Blue300 = Color(0xFF66B5F6)
val Blue200 = Color(0xFF99CEF9)
val Blue100 = Color(0xFFCCE6FC)
val Blue50 = Color(0xFFE2F1FD)

val Purple40 = Color(0xFF6650a4)
val PurpleGrey40 = Color(0xFF625b71)
val Pink40 = Color(0xFF7D5260)
// Red
val Red900 = Color(0xFF7D0800)
val Red800 = Color(0xFF9F0A01)
val Red700 = Color(0xFFBF0A03)
val Red600 = Color(0xFFDA120D)
val Red500 = Color(0xFFEF2B2A)
val Red400 = Color(0xFFFF5454)
val Red300 = Color(0xFFFF8585)
val Red200 = Color(0xFFFFBFBF)
val Red100 = Color(0xFFFFDADB)
val Red50 = Color(0xFFFFF5F5)

// Gray
val Gray900 = Color(0xFF222222)
val Gray800 = Color(0xFF424242)
val Gray700 = Color(0xFF616161)
val Gray600 = Color(0xFF757575)
val Gray500 = Color(0xFF9E9E9E)
val Gray400 = Color(0xFFBDBDBD)
val Gray300 = Color(0xFFE0E0E0)
val Gray200 = Color(0xFFEEEEEE)
val Gray100 = Color(0xFFF5F5F5)
val Gray50 = Color(0xFFFAFAFA)

// Black
val Black = Color(0xFF000000)
val White = Color(0xFFFFFFFF)
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,46 @@ import androidx.core.view.WindowCompat

private val DarkColorScheme =
darkColorScheme(
primary = Purple80,
secondary = PurpleGrey80,
tertiary = Pink80,
primary = Blue500,
onPrimary = White,
secondary = Gray800,
tertiary = Gray600,
surface = Black,
onSurface = Gray100,
background = White,
onBackground = Black,
error = Red500,
onError = White,
surfaceVariant = Gray900,
onSurfaceVariant = White,
outline = Gray700,
)

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 = Blue500,
onPrimary = White,
secondary = Gray200,
tertiary = Gray400,
surface = Blue50,
onSurface = Gray900,
background = White,
onBackground = Black,
error = Red500,
onError = White,
surfaceVariant = White,
onSurfaceVariant = Gray900,
outline = Gray300,

/* 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),
*/
)

@Composable
Expand Down