From 6bba43b5870aac16d59d4c835b9d00c781286462 Mon Sep 17 00:00:00 2001 From: Chaeyeon Seo <94633589+seocylucky@users.noreply.github.com> Date: Thu, 31 Oct 2024 02:39:27 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20snackbar=20semantic=20color=20=ED=86=A0?= =?UTF-8?q?=ED=81=B0(info,=20error)=20=EC=B6=94=EA=B0=80=20(#164)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../foundation/color/semanticColor/semanticColor.type.ts | 5 ++++- .../foundation/color/semanticColor/semanticColorPalette.ts | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/style/foundation/color/semanticColor/semanticColor.type.ts b/src/style/foundation/color/semanticColor/semanticColor.type.ts index b81cc3d..c1e47e0 100644 --- a/src/style/foundation/color/semanticColor/semanticColor.type.ts +++ b/src/style/foundation/color/semanticColor/semanticColor.type.ts @@ -102,6 +102,8 @@ export type SemanticPaginationBasicColor = MergeVariants<'pagination', 'basic', export type SemanticSwitchColor = MergeVariants<'switch', SelectableVariantWithDisabled | 'thumb'>; +export type SemanticSnackbarColor = MergeVariants<'snackbar', 'info' | 'error'>; + export type SemanticColorType = | SemanticBackgroundBasicColor | SemanticBackgroundBrandColor @@ -126,6 +128,7 @@ export type SemanticColorType = | SemanticChipColor | SemanticPaginationBrandColor | SemanticPaginationBasicColor - | SemanticSwitchColor; + | SemanticSwitchColor + | SemanticSnackbarColor; export type SemanticColorPalette = Readonly>; diff --git a/src/style/foundation/color/semanticColor/semanticColorPalette.ts b/src/style/foundation/color/semanticColor/semanticColorPalette.ts index 20b3ddd..0f64d8d 100644 --- a/src/style/foundation/color/semanticColor/semanticColorPalette.ts +++ b/src/style/foundation/color/semanticColor/semanticColorPalette.ts @@ -93,4 +93,7 @@ export const semanticColorPalette: SemanticColorPalette = { switchUnselected: primitiveColorPalette.gray300, switchDisabled: primitiveColorPalette.gray200, switchThumb: primitiveColorPalette.neutralWhite, + + snackbarInfo: primitiveColorPalette.gray800, + snackbarError: primitiveColorPalette.statusRedSub, } as const;