Skip to content

Commit 3e2c354

Browse files
committed
Colors
Signed-off-by: Daniel Valdivia <[email protected]>
1 parent b825c5c commit 3e2c354

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

portal-ui/src/screens/Console/Tenants/ListTenants/ListTenants.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ const styles = (theme: Theme) =>
9494
},
9595
},
9696
redState: {
97-
color: "red",
97+
color: theme.palette.error.main,
9898
},
9999
yellowState: {
100-
color: "yellow",
100+
color: theme.palette.warning.main,
101101
},
102102
greenState: {
103-
color: "green",
103+
color: theme.palette.success.main,
104104
},
105105
greyState: {
106106
color: "grey",

portal-ui/src/screens/Console/Tenants/TenantDetails/TenantDetails.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ const styles = (theme: Theme) =>
134134
color: "black",
135135
},
136136
redState: {
137-
color: "red",
137+
color: theme.palette.error.main,
138138
},
139139
yellowState: {
140-
color: "yellow",
140+
color: theme.palette.warning.main,
141141
},
142142
greenState: {
143-
color: "green",
143+
color: theme.palette.success.main,
144144
},
145145
greyState: {
146146
color: "grey",

portal-ui/src/theme/newtheme.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ const newTheme = createMuiTheme({
1414
dark: "#01262E",
1515
contrastText: "#000",
1616
},
17-
error: {
18-
light: "#e03a48",
19-
main: "#dc1f2e",
20-
contrastText: "#ffffff",
21-
},
2217
grey: {
2318
100: "#F7F7F7",
2419
200: "#D8DDDE",
@@ -33,6 +28,17 @@ const newTheme = createMuiTheme({
3328
background: {
3429
default: "#F4F4F4",
3530
},
31+
success: {
32+
main: "#32c787",
33+
},
34+
warning: {
35+
main: "#ffb300",
36+
},
37+
error: {
38+
light: "#e03a48",
39+
main: "#dc1f2e",
40+
contrastText: "#ffffff",
41+
},
3642
},
3743
typography: {
3844
fontFamily: ["Lato", "sans-serif"].join(","),

0 commit comments

Comments
 (0)