Skip to content

Commit

Permalink
feat: snackbar semantic color 토큰(info, error) 추가 (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
seocylucky authored Oct 30, 2024
1 parent 4ce4b2d commit 6bba43b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -126,6 +128,7 @@ export type SemanticColorType =
| SemanticChipColor
| SemanticPaginationBrandColor
| SemanticPaginationBasicColor
| SemanticSwitchColor;
| SemanticSwitchColor
| SemanticSnackbarColor;

export type SemanticColorPalette = Readonly<Record<SemanticColorType, string>>;
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 6bba43b

Please sign in to comment.