Skip to content

Commit 7b2dc8d

Browse files
committed
fix: adjusted colors
1 parent d7c1856 commit 7b2dc8d

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

Diff for: src/components/MUI.stories.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ export const ButtonStory = () => (
7474
Colors
7575
</Typography>
7676
<Stack direction="row" spacing={1} sx={{ mb: 2 }}>
77-
<Button color="cobalt" variant="contained">
77+
<Button color="primary" variant="contained">
7878
Primary
7979
</Button>
80-
<Button color="monochrome" variant="contained">
80+
<Button color="secondary" variant="contained">
8181
Secondary
8282
</Button>
8383
<Button color="green" variant="contained">

Diff for: src/themes/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ declare module "@mui/material" {
1515

1616
declare module "@mui/material/Button" {
1717
interface ButtonPropsColorOverrides {
18-
primary: false;
19-
secondary: false;
18+
primary: true;
19+
secondary: true;
2020
success: false;
2121
error: false;
2222
info: false;

Diff for: src/themes/palette.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,22 @@ import { c as colors } from "@interactivethings/swiss-federal-ci";
22
import { type ThemeOptions } from "@mui/material";
33

44
export const palette = {
5+
...colors,
56
text: {
67
primary: colors.monochrome[800],
78
},
89
primary: {
9-
main: "#1D4ED8",
10-
light: "#60A5FA",
10+
main: "#D8232A",
1111
contrastText: "#FFFFFF",
1212
},
1313
cobalt: {
1414
main: colors.cobalt[700],
1515
...colors.cobalt,
1616
},
17+
secondary: {
18+
main: colors.cobalt[700],
19+
...colors.cobalt,
20+
},
1721
monochrome: {
1822
main: colors.monochrome[700],
1923
...colors.monochrome,

0 commit comments

Comments
 (0)