Skip to content

Commit

Permalink
feat: 컬러토근 변경사항을 반영한다
Browse files Browse the repository at this point in the history
  • Loading branch information
jhn3981 committed Jul 17, 2024
1 parent 646f545 commit baf9135
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/vibrant-theme/src/lib/palettes/palettes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export const palettes = {

whiteAlpha: {
5: '#ffffff0d',
8: '#ffffff14',
10: '#ffffff1a',
15: '#ffffff26',
20: '#ffffff33',
Expand Down
7 changes: 4 additions & 3 deletions packages/vibrant-theme/src/lib/theme/darkModeColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ export const darkModeColors: Colors = {
surface2: palettes.neutral['10'],
surface3: palettes.globalBlack,
surface4: palettes.neutral['40'],
surfaceOnMedia: `${palettes.neutral['50']}66`,
disable: palettes.whiteAlpha['15'],
outline1: palettes.whiteAlpha['15'],
outline2: palettes.whiteAlpha['5'],
outline1: palettes.whiteAlpha['8'],
outline2: palettes.whiteAlpha['15'],
outlineNeutral: palettes.neutral['95'],
outlineDisable: palettes.whiteAlpha['10'],
outlinePrimary: palettes.orange['60'],
Expand All @@ -40,7 +41,7 @@ export const darkModeColors: Colors = {
outlineSuccess: palettes.green['50'],
outlineWarning: palettes.yellow['75'],
onView1: palettes.neutral['95'],
onView2: palettes.neutral['70'],
onView2: `${palettes.neutral['95']}a6`,
onView3: palettes.neutral['50'],
onViewPrimary: palettes.orange['65'],
onViewInformative: palettes.blue['60'],
Expand Down
9 changes: 5 additions & 4 deletions packages/vibrant-theme/src/lib/theme/lightModeColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ export const lightModeColors: Colors = {
surface2: palettes.globalWhite,
surface3: palettes.globalWhite,
surface4: palettes.neutral['80'],
surfaceOnMedia: `${palettes.neutral['50']}33`,
disable: palettes.blackAlpha['10'],
outline1: palettes.blackAlpha['10'],
outline2: palettes.blackAlpha['5'],
outline1: palettes.blackAlpha['5'],
outline2: palettes.blackAlpha['10'],
outlineNeutral: palettes.neutral['5'],
outlineDisable: palettes.blackAlpha['5'],
outlinePrimary: palettes.orange['60'],
Expand All @@ -40,13 +41,13 @@ export const lightModeColors: Colors = {
outlineSuccess: palettes.green['50'],
outlineWarning: palettes.yellow['75'],
onView1: palettes.neutral['5'],
onView2: palettes.neutral['40'],
onView2: `${palettes.neutral['25']}cc`,
onView3: palettes.neutral['60'],
onViewPrimary: palettes.orange['65'],
onViewInformative: palettes.blue['55'],
onViewError: palettes.red['55'],
onViewSuccess: palettes.green['55'],
onViewWarning: palettes.yellow['50'],
onViewWarning: palettes.yellow['65'],
background: palettes.globalWhite,
inverseSurface: palettes.neutral['15'],
onInverseSurface: palettes.neutral['95'],
Expand Down
2 changes: 2 additions & 0 deletions packages/vibrant-theme/src/types/Colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const colorTokens = [
'surface2',
'surface3',
'surface4',
'surfaceOnMedia',
'disable',
'outline1',
'outline2',
Expand Down Expand Up @@ -92,6 +93,7 @@ export const BaseColorOnColorMap: { [color in BaseColorToken]: OnColorToken } =
surface2: 'onView1',
surface3: 'onView1',
surface4: 'onView1',
surfaceOnMedia: 'onView1',
disable: 'onView3',
background: 'onView1',
inverseSurface: 'onInverseSurface',
Expand Down

0 comments on commit baf9135

Please sign in to comment.