Skip to content

Commit d172447

Browse files
authored
Merge pull request #349 from qdrant/CF-1463
2 parents 75fee93 + 2121846 commit d172447

File tree

2 files changed

+106
-50
lines changed

2 files changed

+106
-50
lines changed

src/theme/dark-theme.js

Lines changed: 53 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,58 @@ const darkPalette = {
108108
alertErrorColor: '#f4c7c7ff',
109109
stepperConnector: grey[600],
110110
chipDefaultFocusFill: '#ffffff33',
111-
alertErrorBackground: '#291414ff',
112-
alertWarningColor: '#ffe2b7ff',
113-
alertWarningBackground: '#291d0bff',
114-
alertInfoColor: '#b8e7fbff',
115-
alertInfoBackground: '#0c2029ff',
116-
alertSuccessColor: '#cce8cdff',
117-
alertSuccessBackground: '#1a291cff',
111+
alert: {
112+
dark: {
113+
standardSuccess: {
114+
backgroundColor: '#1A2928',
115+
color: '#CCE8E4',
116+
},
117+
standardError: {
118+
backgroundColor: '#291414',
119+
color: '#F4C7C7',
120+
},
121+
standardWarning: {
122+
backgroundColor: '#291D0B',
123+
color: '#FFE2B7',
124+
},
125+
standardInfo: {
126+
backgroundColor: '#0C2029',
127+
color: '#B8E7FB',
128+
},
129+
filledSuccess: {
130+
backgroundColor: '#26A69A',
131+
color: '#0B0F19',
132+
},
133+
filledError: {
134+
backgroundColor: '#F44336',
135+
color: '#FCFDFF',
136+
},
137+
filledWarning: {
138+
backgroundColor: '#FFA726',
139+
color: '#0B0F19',
140+
},
141+
filledInfo: {
142+
backgroundColor: '#29B6F6',
143+
color: '#0B0F19',
144+
},
145+
outlinedSuccess: {
146+
borderColor: '#26A69A',
147+
color: '#CCE8E4',
148+
},
149+
outlinedError: {
150+
borderColor: '#F44336',
151+
color: '#F4C7C7',
152+
},
153+
outlinedWarning: {
154+
borderColor: '#FFA726',
155+
color: '#FFE2B7',
156+
},
157+
outlinedInfo: {
158+
borderColor: '#29B6F6',
159+
color: '#B8E7FB',
160+
},
161+
},
162+
},
118163
switchKnowFillDisabled: grey[600],
119164
nativeScrollbarBg: grey[700],
120165
divider: '#ffffff1f',
@@ -125,24 +170,7 @@ export const darkThemeOptions = {
125170
components: {
126171
MuiAlert: {
127172
styleOverrides: {
128-
root: {
129-
'&.MuiAlert-standardSuccess': {
130-
backgroundColor: darkPalette.alertSuccessBackground,
131-
color: darkPalette.alertSuccessColor,
132-
},
133-
'&.MuiAlert-standardInfo': {
134-
backgroundColor: darkPalette.alertInfoBackground,
135-
color: darkPalette.alertInfoColor,
136-
},
137-
'&.MuiAlert-standardWarning': {
138-
backgroundColor: darkPalette.alertWarningBackground,
139-
color: darkPalette.alertWarningColor,
140-
},
141-
'&.MuiAlert-standardError': {
142-
backgroundColor: darkPalette.alertErrorBackground,
143-
color: darkPalette.alertErrorColor,
144-
},
145-
},
173+
...darkPalette.alert.dark,
146174
},
147175
},
148176
},

src/theme/light-theme.js

Lines changed: 53 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,58 @@ const lightPalette = {
108108
alertErrorColor: '#5f2120ff',
109109
stepperConnector: grey[400],
110110
chipDefaultFocusFill: '#00000033',
111-
alertErrorBackground: '#fdededff',
112-
alertWarningColor: '#663c00ff',
113-
alertWarningBackground: '#fff4e5ff',
114-
alertInfoColor: '#014361ff',
115-
alertInfoBackground: '#e5f6fdff',
116-
alertSuccessColor: '#1e4641ff',
117-
alertSuccessBackground: '#edf7f5ff',
111+
alert: {
112+
light: {
113+
standardSuccess: {
114+
backgroundColor: '#EDF7F5',
115+
color: '#1E4641',
116+
},
117+
standardError: {
118+
backgroundColor: '#FDEDED',
119+
color: '#5F2120',
120+
},
121+
standardWarning: {
122+
backgroundColor: '#FFF4E5',
123+
color: '#663C00',
124+
},
125+
standardInfo: {
126+
backgroundColor: '#E5F6FD',
127+
color: '#014361',
128+
},
129+
filledSuccess: {
130+
backgroundColor: '#00897B',
131+
color: '#FFFFFF',
132+
},
133+
filledError: {
134+
backgroundColor: '#D32F2F',
135+
color: '#FFFFFF',
136+
},
137+
filledWarning: {
138+
backgroundColor: '#EF6C00',
139+
color: '#FFFFFF',
140+
},
141+
filledInfo: {
142+
backgroundColor: '#0288D1',
143+
color: '#FFFFFF',
144+
},
145+
outlinedSuccess: {
146+
borderColor: '#1F978B',
147+
color: '#1E4641',
148+
},
149+
outlinedError: {
150+
borderColor: '#D32F2F',
151+
color: '#5F2120',
152+
},
153+
outlinedWarning: {
154+
borderColor: '#EF6C00',
155+
color: '#663C00',
156+
},
157+
outlinedInfo: {
158+
borderColor: '#0288D1',
159+
color: '#014361',
160+
},
161+
},
162+
},
118163
switchKnowFillDisabled: grey[100],
119164
nativeScrollbarBg: grey[200],
120165
divider: '#0000001f',
@@ -134,24 +179,7 @@ export const lightThemeOptions = {
134179
},
135180
MuiAlert: {
136181
styleOverrides: {
137-
root: {
138-
'&.MuiAlert-standardSuccess': {
139-
backgroundColor: lightPalette.alertSuccessBackground,
140-
color: lightPalette.alertSuccessColor,
141-
},
142-
'&.MuiAlert-standardInfo': {
143-
backgroundColor: lightPalette.alertInfoBackground,
144-
color: lightPalette.alertInfoColor,
145-
},
146-
'&.MuiAlert-standardWarning': {
147-
backgroundColor: lightPalette.alertWarningBackground,
148-
color: lightPalette.alertWarningColor,
149-
},
150-
'&.MuiAlert-standardError': {
151-
backgroundColor: lightPalette.alertErrorBackground,
152-
color: lightPalette.alertErrorColor,
153-
},
154-
},
182+
...lightPalette.alert.light,
155183
},
156184
},
157185
},

0 commit comments

Comments
 (0)