Skip to content

Commit 6ee99ba

Browse files
add shadow
1 parent 5618056 commit 6ee99ba

File tree

1 file changed

+29
-17
lines changed

1 file changed

+29
-17
lines changed

src/mui.tsx

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,43 +34,35 @@ function createMuiDsfrTheme(params: { isDark: boolean }): MuiTheme {
3434
"light": options.blueFrance.sun113_625.active,
3535
"dark": options.blueFrance.sun113_625.hover,
3636
"contrastText": options.blueFrance._975sun113.default
37-
/*
38-
"main": decisions.background.actionHigh.blueFrance.default,
39-
"light": decisions.background.actionLow.blueFrance.default
40-
*/
4137
},
4238
"secondary": {
4339
"main": options.redMarianne.main472.default,
4440
"light": options.redMarianne._850_200.default,
4541
"dark": options.redMarianne._425_625.default,
4642
"contrastText": options.redMarianne._975_75.default
47-
/*
48-
"main": decisions.background.actionHigh.redMarianne.default,
49-
"light": decisions.background.actionLow.redMarianne.default
50-
*/
5143
},
5244
"error": {
53-
"light": options.error._950_100.default,
45+
"light": options.error._425_625.active,
5446
"main": options.error._425_625.default,
55-
"dark": options.error._425_625.default,
47+
"dark": options.error._425_625.hover,
5648
"contrastText": options.grey._1000_50.default
5749
},
5850
"warning": {
59-
"light": options.warning._950_100.default,
51+
"light": options.warning._425_625.default,
6052
"main": options.warning._425_625.default,
61-
"dark": options.warning._425_625.default,
53+
"dark": options.warning._425_625.hover,
6254
"contrastText": options.grey._1000_50.default
6355
},
6456
"info": {
65-
"light": options.info._950_100.default,
57+
"light": options.info._425_625.active,
6658
"main": options.info._425_625.default,
67-
"dark": options.info._425_625.default,
59+
"dark": options.info._425_625.hover,
6860
"contrastText": options.grey._1000_50.default
6961
},
7062
"success": {
71-
"light": options.success._950_100.default,
63+
"light": options.success._425_625.active,
7264
"main": options.success._425_625.default,
73-
"dark": options.success._425_625.default,
65+
"dark": options.success._425_625.hover,
7466
"contrastText": options.grey._1000_50.default
7567
},
7668
"text": {
@@ -85,11 +77,12 @@ function createMuiDsfrTheme(params: { isDark: boolean }): MuiTheme {
8577
"background": options.blueFrance._925_125.default,
8678
"active": options.blueFrance.sun113_625.active,
8779
"hover": options.grey._975_100.default,
88-
"selected": options.blueFrance.sun113_625.active,
80+
"selected": options.blueFrance._925_125.default,
8981
"disabled": options.grey._625_425.default,
9082
"disabledBackground": options.grey._925_125.default,
9183
"focus": options.blueFrance.sun113_625.active
9284
},
85+
9386
"background": {
9487
"default": options.grey._1000_50.default,
9588
"paper": options.grey._1000_100.default,
@@ -147,6 +140,7 @@ function createMuiDsfrTheme(params: { isDark: boolean }): MuiTheme {
147140
return value === undefined ? abs : value;
148141
})();
149142
})()
143+
//shadows
150144
});
151145

152146
return muiTheme;
@@ -189,3 +183,21 @@ export function noAugmentation(params: { nonAugmentedMuiTheme: MuiTheme }) {
189183
const { nonAugmentedMuiTheme } = params;
190184
return nonAugmentedMuiTheme;
191185
}
186+
187+
//const shadows = [
188+
// "none",
189+
/** ButtonBar shadow */
190+
// "0px 6px 10px 0px rgba(0,0,0,0.07)",
191+
/** Explorer items */
192+
// "0px 4px 4px 0px rgba(0,0,0,0.1)",
193+
/** LeftBar */
194+
// "6px 0px 16px 0px rgba(0,0,0,0.15)",
195+
/** AccountTab default */
196+
// "4px 0px 10px 0px rgba(0,0,0,0.07)",
197+
/** AccountTab active */
198+
// "-4px 0px 10px 0px rgba(0,0,0,0.07)",
199+
/** Card over */
200+
// "0px 6px 10px 0px rgba(0,0,0,0.14)",
201+
/** Dialog **/
202+
// "0px 8px 10px -7px rgba(0,0,0,0.07)",
203+
//] as const;

0 commit comments

Comments
 (0)